Add Ubuntu system to a Windows domain

From Organic Design
Jump to: navigation, search
Procedure.svg Add Ubuntu system to a Windows domain
Organic Design procedure
“Error: Unable to resolve DC name [code 0x00080026]resolving ‘test.example.org’ failed. 
Check that the domain name is correctly entered. Also check that your DNS server is reachable,  
and that your system is configured to use DNS in nsswitch.”
  • Edit your /etc/nsswitch.conf using
sudo gedit /etc/nsswitch.conf
  • and make sure it contains references to winbind, like in this example:
# /etc/nsswitch.conf
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference’ and `info’ packages installed, try:
# `info libc “Name Service Switch”‘ for information about this file.
passwd: compat winbind lwidentity
group: compat winbind lwidentity
shadow: compat winbind
hosts: files dns winbind
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
  • The new domain user will not have sudo rights, so one domain account will need to be set up as sudo on the Ubuntu system for the purpose of performing admin tasks, with the default domain account being a guest with limited access.
  • Add the domain user to be used for administration to the sudoers file
sudo gedit /etc/group
  • Find the admin group and add the active directory user so that it looks something like this:
admin:x:117:olduser,ActiveDirectoryUser
  • where olduser is your current linux user and ActiveDirectoryUser is the name of the active directory user to have sudo rights.
See also