Binding Google Secure LDAP

rajrajan
New Contributor III

Dear All,

Binding Google Secure LDAP in MacBook is working. I need help pushing this configuration to all the devices.

Has anyone done this before? 

Can I use Profile? Or bash script?

 

Thoughts?

 

Please share if you have any info on this.

 

Thanks,

Raj.

1 REPLY 1

gmorgan
New Contributor III

You should be able to set it up under Settings/LDAP servers if you configure it manually. You could also make a policy that runs a script.  Ours does more than just that, but here's the binding part:

 

LOGGING "Binding to Active Directory"
dsconfigad -force \
-add "DOMAINNAME" \
  -username "USERNAME" \
  -password "PASSWORD" \
-computer "$computer_name" \
-mobile enable \
-mobileconfirm disable \
-localhome enable \
-useuncpath enable \
-protocol smb \
-shell /bin/bash \
-ou "OU" \
-groups "GROUP" \
-alldomains enable \
-passinterval 0 | tee -a $LOG
 
I hope this helps.