I tried likewise following the tutorial on youtube.
Seems that it cannot connect to my server,
~$ domainjoin-cli join <FQDN> <username>
Error: NERR_DCNotFound [code 0x00000995]
Do you have idea on this?
Here is my quick and dirty tutorial I made. I basically copied and pasted various info across the net.
Before you attempt to join an Active Directory domain, make sure the
/etc/nsswitch.conf file contains the following line:
hosts: files dns
The hosts line can contain additional information, but it must include the
dns entry, and it is recommended that the dns entry appear after the files
Computers running Solaris, in particular, may not contain this line in
nsswitch.conf until you add it.
When you use PowerBroker Identity Services with Multicast DNS 4
(mDNS4) and have a domain in your environment that ends in .local, you
must place the dns entry before the mdns4_minimal entry and before the
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
The default setting for many Linux systems is to list the mdns4 entries
before the dns entry—a configuration that leaves PBIS unable to find the
Important: For PBIS to process changes to your nsswitch.conf file, you
must restart the PBIS input-output service (lwio) and the authentication
service (lsass). Running the following command as root restarts both
/opt/pbis/bin/lwsm restart lwio
For PBIS to work correctly, the nsswitch.conf file must be readable by
user, group, and world.
For more information on configuring nsswitch, see the man page for
Before you attempt to join an Active Directory domain, make sure that
/etc/resolv.conf on your Linux, Unix, or Mac client includes a DNS
server that can resolve SRV records for your domain.
Example: [root@rhel5d Desktop]# vi /etc/resolvconf/resolv.conf.d/head
Step 2: Install PBIS Open on Linux
You install PBIS Open by using a shell script that contains a self-extracting
executable—an SFX installer with a file name that ends in sh. Example:
1. As root, run the installer, substituting the file name of the installer that
you have selected for the one shown below:
Alternatively, you can run the installer as a regular user:
sudo sh ./pbis-open-126.96.36.19999-linux-i386-rpm.sh
2. Follow the instructions in the installer.
Note: On SLES and other systems on which the pager is set to less, you
must exit the end user license agreement, or EULA, by typing the
following command: q
Enable Other Login
1) You have to be root to perform this how-to.
If you are not root then be root by executing following command :-
ubuntu-12.04lts@tejas-barot-linux-ahmedabad:~$ sudo su – ( Single Hyphen )
2) First of all Please take backup of original file, execute following command :-
root@tejas-barot-linux-ahmedabad:~# cp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.orig
3) Execute Following command :-
root@tejas-barot-linux-ahmedabad:~#/usr/lib/lightdm/lightdm-set-defaults -m true
Disable Guest Account
Open /etc/lightdm/lightdm.conf file from your terminal using the following command
sudo gedit /etc/lightdm/lightdm.conf Add the following line
allow-guest=false Save and exit the file
After adding the above line you should see similar to the following in lightdm.conf file
Finally you have to restart lightdm using the following command from your terminal
sudo restart lightdm Enjoy