adeutscher / DirectoryTools

0 stars 0 forks source link

Active Directory Port 389 #9

Closed adeutscher closed 10 years ago

adeutscher commented 10 years ago

Unable to use DirectoryTools with AD using 389 port for some reason. Didn't notice earlier, as my go-to port for testing the module with AD was 3268 (Global Catalog).

adeutscher commented 10 years ago

Problem was with not telling Python not to chase referrals.

Sources: http://www.python-ldap.org/faq.shtml and http://stackoverflow.com/questions/18793040/python-ldap-not-able-to-bind-successfully

Will be implementing a dictionary within properties called 'ldap-properties' that will be loaded into each LDAP handle. The AD schema will automatically have OPT_REFERRALS set to 0.

adeutscher commented 10 years ago

Added field and tested with TCP/389. Closing ticket.