These command-line tools can bind your Mac to any open directory (LDAP) server.
UPDATE 1: You can do an authenticated bind by adding the -u
and -p
options. Its extremely useful when managing lots of Macs since it automatically creates the corresponding computer accounts in Workgroup Manager.
UPDATE 2: Use the -N
option to assume “yes” when prompting to add certificates (OS X 10.9+ only).
sudo dsconfigldap -sfa server.domain.com -n "server_name" -u diradmin -p "p@ssw0rd" -N
STEPS:
1) Open Terminal
2) Run:
sudo dsconfigldap -sa server.domain.com -n "server_name" -N