Skip to content

Instantly share code, notes, and snippets.

@RobinBeismann
Created January 2, 2018 01:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobinBeismann/f144dd8aeeb7080417325e8e8b00c643 to your computer and use it in GitHub Desktop.
Save RobinBeismann/f144dd8aeeb7080417325e8e8b00c643 to your computer and use it in GitHub Desktop.
PBIS Open Domain Joining
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