Git Product home page Git Product logo

vagrant-samba4-dc's Introduction

This demonstrates a simple Samba 4 Active Directory proof-of-concept with two domain controllers and a single client.

The two domain controllers run Fedora 34, and the client runs CentOS Stream 8. The two domain controllers are using the stock Fedora packages.

To test, simply do the following on a system with Git, Bolt, Vagrant, and a Vagrant provider (VirtualBox or libvirt) installed:

git clone https://github.com/silug/vagrant-samba4-dc.git
cd vagrant-samba4-dc
vagrant up

vagrant-samba4-dc's People

Contributors

silug avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vagrant-samba4-dc's Issues

Network systemd service missing

The network.service Unit file does not appear to ship by default in the Fedora 29 image used by vagrant.

Stack trace:

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

# Update sysconfig
sed -i 's/\(HOSTNAME=\).*/\1dc1.samba4.local/' /etc/sysconfig/network

# Update DNS
sed -i 's/\(DHCP_HOSTNAME=\).*/\1"dc1"/' /etc/sysconfig/network-scripts/ifcfg-*

# Set the hostname - use hostnamectl if available
echo 'dc1.samba4.local' > /etc/hostname
if command -v hostnamectl; then
  hostnamectl set-hostname --static 'dc1.samba4.local'
  hostnamectl set-hostname --transient 'dc1.samba4.local'
else
  hostname -F /etc/hostname
fi

# Prepend ourselves to /etc/hosts
grep -w 'dc1.samba4.local' /etc/hosts || {
  sed -i'' '1i 127.0.0.1\tdc1.samba4.local\tdc1' /etc/hosts
}

# Restart network
service network restart


Stdout from the command:

/usr/bin/hostnamectl

Stderr from the command:

Redirecting to /bin/systemctl restart network.service
Failed to restart network.service: Unit network.service not found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.