Windows Server VM with Active Directory, DNS, and DHCP installed. Works over VMnet 2 private network, within the 10.1.1.1 /24 subnet.
Note* the 10.1.1.1 network is not required, it’s just the private class A range I chose because it works, and is easy to work with.
Windows Server VM with Active Directory installed as a member server for an existing domain, in this case chad.com. Both Windows Domain Controllers MUST be able to replicate their connections.
For the purposes of testing, create a NEW user called unix(or something to that effect) to verify logging in with a unique account.
Linux Client (Ubuntu 12.04LTS)
The following features must be installed:
For the purposes of this documentation, only the “likewise-open5” product should be a requirement. The other features listed there could be used in place of likewise.
On the Linux VM:
root@ubuntu:~# apt-get install likewise-open5
Running the above command should resolve all dependencies required.
Information you need at this point:
- Domain Name: chad.com
- DNS: 10.1.1.1
- Account: email@example.com
Join The Domain:
root@ubuntu:~# domainjoin-cli join DOMAIN USER
Note, DOMAIN = yourdomainname, USER = the user you wish to login as. So in my case:
root@ubuntu:~# domainjoin-cli join chad.com administrator
You will be prompted for a password for the user (unix), if you authenticate successfully, you have joined the domain.
You may use likewise’s GUI feature, if the CLI becomes troublesome:
root@ubuntu:~# apt-get install likewise-open-gui
Setup likewise to use the default domain (login from logon screen):
root@ubuntu:~# vi /etc/samba/lwiauthd.conf
Note: The above syntax CREATES the lwiauthd.conf file
Add the following line:
winbind use default domain = yes
Restart the likewise daemon:
root@ubuntu:~# /etc/init.d/likewise restart
Edit the lightdm.conf file to allow more GUI login options
root@ubuntu:~# vi /etc/lightdm/lightdm.conf
Add the following line: greeter-show-manual-login=true
To leave a Domain:
root@ubuntu:~# domainjoin-cli leave
When adding your Linux Client to VMnet 2, make sure you assign a static IP in the 10.1.1.0 /24 range. In Debian (Debian, Pear, Mint, Ubuntu) distros, make sure you run the network connections editor as ROOT or your config will NOT be saved, and therefore will not work:
Ensure everything works by pinging your Domain Controllers IP address, a successful response means you are ready to go!
Join Linux to Windows Domain: