Connecting active directory via terminal

sushanth486
New Contributor

Hi Guys,

I wish to connect Active directory server / domain via terminal for mac .

Can anyone help for commands to connect Active directory through terminal .

Regards
Sushanth Gopinath

3 REPLIES 3

chrispetersmark
New Contributor

Provided that the computer in question has already been added to your JSS, and the user account signed in is a domain account, you can use this - keep in mind, make sure the computer you're joining is connected to your company's network at the time.

sudo jamf policy -trigger bindforce

alexjdale
Valued Contributor III

If you are asking how to do it with the CLI (to use in a script, for example), look up the man page for dsconfigad.

rtrouton
Release Candidate Programs Tester

I have a post that includes information on how to bind to AD using dsconfigad. It's available here:

http://derflounder.wordpress.com/2012/03/29/diagnosing-ad-binding-problems-from-the-command-line/