linux labs

Windows Setup:
Windows Server VM with Active Directory, DNS, and DHCP installed. Works over VMnet 2 private network, within the /24 subnet.
Note* the 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 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:
- Samba4
- Slapd
- Likewise-open5
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:
- DNS:
- Account:

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 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
root@ubuntu:~# domainjoin-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
Troubleshooting Documentation:
When adding your Linux Client to VMnet 2, make sure you assign a static IP in the /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:

root@ubuntu:~# nm-connection-editor
Ensure everything works by pinging your Domain Controllers IP address, a successful response means you are ready to go!
Join Linux to Windows Domain: