Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2284 by eivi...@gmail.com: ldap authentication with anonymous bind fails due to referrals
http://code.google.com/p/reviewboard/issues/detail?id=2284

* NOTE: Do not post confidential information in this bug report. *
*       If you need immediate support, please contact            *
*       reviewbo...@googlegroups.com                             *

What version are you running?
1.5.6

What steps will reproduce the problem?

When authenticating by LDAP against a windows domain controller, using an "anonymous user", the search operation fails if the ldap server replies with a referral.

See http://www.python-ldap.org/faq.shtml, question 12 for more details.

I've fixed this by adding
            ldapo.set_option(ldap.OPT_REFERRALS, 0)
in backends.py:LDAPBackend.authenticate and LDAPBackend.get_or_create_user (just after setting protocol version).

Maybe a better fix would be to set this only if LDAP_ANON_BIND_UID is set.

What is the expected output? What do you see instead?

This is the logged error message:

2011-09-14 09:03:17,800 - WARNING - LDAP error: {'info': '000004DC: LdapErr: DSI D-0C0906DD, comment: In order to perform this operation a successful bind must b
e completed on the connection., data 0, v1772', 'desc': 'Operations error'}


What operating system are you using? What browser?

Gentoo linux.



--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to reviewboard-issues@googlegroups.com.
To unsubscribe from this group, send email to 
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/reviewboard-issues?hl=en.

Reply via email to