Advertisement
Guest User

PBIS Join Domain Script

a guest
Jan 1st, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.84 KB | None | 0 0
  1. #!/bin/sh
  2. read -p "Enter your DA user name: " DANAME
  3. DOMNAME=dom.local
  4. DOMPREFIX=dom
  5. cd ~
  6. /opt/pbis/bin/domainjoin-cli join $DOMNAME $DANAME@$DOMNAME
  7. /opt/pbis/bin/config UserDomainPrefix $DOMPREFIX
  8. /opt/pbis/bin/config AssumeDefaultDomain true
  9. /opt/pbis/bin/config LoginShellTemplate /bin/bash
  10. /opt/pbis/bin/config HomeDirUmask 077
  11. /opt/pbis/bin/config RequireMembershipOf DOM\\Your^Group
  12. /opt/pbis/bin/ad-cache --delete-all
  13. /opt/pbis/bin/update-dns --loglevel info
  14. sed -i 's/sufficient/[success=ok default=ignore]/' /etc/pam.d/common-session
  15. echo "Check for errors, and then reboot the system."
  16. ## change "dom.local" to your windows domain name.
  17. ##  change "dom" to your windows domain name.
  18. ##  change "DOM" to your windows domain name.
  19. ## change Your^Group to your own group. the "^" replaces a space in a group name (if you have it).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement