I'm wondering if anyone knows or has stumbled upon a script for Binding to AD that prompts to select an OU out of multiple selections. I work for a company that has multiple department OUs. The Windows side has a power shell script that prompts the user to select the OU, I would love to have something similar on the Mac side. I did some searching around to no avail, my guess is that there might be a better way to do this that I'm not considering. Any help on this would be greatly appreciated :)
Answer
AD binding script that allows user to pick OU
Best answer by koalatee
I do this with cocoa dialog, we have 3 main OUs with several OUs inside those (with OUs inside those, with OUs inside those...), so I let people choose and it drills down each time.
Definitely didn't want to hardcode anything in, so using ldapsearch to search OUs
**edit: just sanitized my script and put the whole thing here, with a few comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
