Issue 719: Ldap auth not working with AD

Comment #2 by paolo.ferracin:
     def authenticate(self, username, password):
             import ldap
             ldapo = ldap.initialize(settings.LDAP_URI)
             ldapo.set_option(ldap.OPT_PROTOCOL_VERSION, 3)
             if settings.LDAP_TLS:

             if settings.LDAP_ANON_BIND_UID:

             search = ldapo.search_s(settings.LDAP_BASE_DN,  
                                     settings.LDAP_UID_MASK % username)

             ldapo.bind_s(search[0][0], password)

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to