KrisSaxton / salt-ldap

LDAP module and external pillar backend for salt
7 stars 5 forks source link

Binding to Microsoft Active Directory #1

Open chumbri opened 10 years ago

chumbri commented 10 years ago

In order to get a successful connection to MS AD, I had to insert the following line into the ldap.py module before line 166:

_self.ldap.set_option(ldap.OPTREFERRALS,0)

See the following FAQ from the python-ldap module: http://www.python-ldap.org/faq.shtml 12th topic of the FAQ

As long as it doesn't break other things, it might be added to a future release.

KrisSaxton commented 10 years ago

Seems like a sensible change to me.