-
Notifications
You must be signed in to change notification settings - Fork 45
Home
Welcome to the Linux-Active-Directory-join-script wiki!
On AD: Prepare with creating a group object in AD matching the hostname of the client or server. Example: DNSserver01 in the Group DNSserver01 add users
On Client:
- Download script using git clone.
- cd Linux-Active-Directory-join-script
- sudo sh Linux-Active-Directory-join-script
- for client setup press 1 for server setup press 2
- Script will start installing packages and verify success.
- Script will search the network for a realm and suggest to use it or promt for it.(If script fail to find your domain you can try to type it in.)
- Script will determine if Ubuntu 14, 16,17 or 18 is the OS and prepare for setup.
- Admin will be prompted to enter admin user. type in your admin user without domain Example:Pierreadmin
- Admin will be prompted to enter password
- Script will promt if success and check for errors.
- reboot and then login with AD user Example ADadmin 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 (DNSserver01 in example) all other users are not allowed to ssh or login to the client NOTE ALL other users will be banned.
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.
At the end of the script it will print out what it has written to sudoers and ssh-allow verify those are correct before restarting.