Skip to content
PierreGoude edited this page Feb 10, 2017 · 28 revisions

Welcome to the Linux-Active-Directory-join-script wiki!

On AD: Prepare with creating a computer object in AD matching the hostname of the client or server. Example: DNSserver01 then create an Group obejct in AD named DNSserver01sudoers, in the Group DNSserver01sudoers add user with sudo rights and linux admins group or users.

On Client:

  1. Download script using git clone.
  2. cd Linux-Active-Directory-join-script
  3. sudo sh Linux-Active-Directory-join-script
  4. for client setup press 1 for server setup press 2
  5. Script will start installing pakages and verify success.
  6. Script will search the network for a realm and suggest to use it or type an own realm.
  7. Script will determin if Ubuntu 14 or 16 is the OS and prepare for setup.
  8. Admin will be prompted to enter admin user. type in your admin user without domain Example:Pierreadmin
  9. Admin will be prompted to enter password
  10. Script will promt if success and check for errors.
  11. reboot and then login with AD user Example Pierre and password.

Folders will be crated for each user that logs in and the format is /home/netbios.domain/pierre user will show as Example: pierre . all / and @ is removed from user and folder.

script will create ssh login.group.allowed where it puts administrator, domain admins and grupobject (DNSserver01sudoers in example) all other users are not allowed to ssh to the client.

If script fail to find your domain you can try to type it in.

If script fails at start with error message : Installing pakages failed.. please check connection and dpkg and try again. then try to reboot and verify the ethernet has connection and try running the script again or verify dpkg first with sudo apt-get update.