Created
January 2, 2018 01:33
-
-
Save RobinBeismann/f144dd8aeeb7080417325e8e8b00c643 to your computer and use it in GitHub Desktop.
PBIS Open Domain Joining
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/BeyondTrust/pbis-open/releases/download/8.5.7/pbis-open-8.5.7.385.linux.x86_64.deb.sh; | |
chmod +x pbis-open-*.sh; | |
./pbis-open-*.sh; | |
/opt/pbis/bin/domainjoin-cli join contoso.com binduser "bindpw"; | |
pam-auth-update --force; | |
/opt/pbis/bin/config UserDomainPrefix CONTOSO; | |
/opt/pbis/bin/config AssumeDefaultDomain true; | |
/opt/pbis/bin/config LoginShellTemplate /bin/bash; | |
/opt/pbis/bin/config HomeDirTemplate %H/%U; | |
/opt/pbis/bin/config RequireMembershipOf CONTOSE\\domain-users; | |
/opt/pbis/bin/config UserNotAllowedError "Active Directory: Access Denied"; | |
/opt/pbis/bin/update-dns --ipaddress $(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/'); | |
echo "/opt/pbis/bin/update-dns --ipaddress $(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/')" >> /etc/cron.hourly/ad-ddns-update; | |
chmod +x /etc/cron.hourly/ad-ddns-update; | |
echo "%g-s-glb-la-$(hostname | tr [A-Z] [a-z]) ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment