3257: LDAP Authentication Error with Email Attribute

friko*****@gmai***** (Google Code) (Is this you? Claim this profile.)
david
david
Feb. 20, 2014
3206
What version are you running?

1.7.21

What's the URL of the page containing the problem?

Intranet instance


What steps will reproduce the problem?
1.Configure LDAP with "E-Mail LDAP Attribute" set to "mail"
  All others fields are set and TLS Authentication is OFF.
2.Try to log in with username not existing in system
3.Push login

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

Observe "Please enter a correct username and password. Note that both fields are case-sensitive." message. In ReviewBoard log you can see entry
 - WARNING -  - An error while LDAP-authenticating: KeyError(u'mail',)


What operating system are you using? What browser?
Windows 7 Enterprise, Firefox ESR 24.3.0

Please provide any additional information below.

If you will try to use different LDAP attribute as e-mail address, for example "userPrincipalName", it will accept it and populate ReviewBoard account list with it. Problem is not present if you will try to log in to user already existing in database, it is issue only for new users.
#1 friko*****@gmai***** (Google Code) (Is this you? Claim this profile.)
I'm using BitNami pre-packaged version of ReviewBoard 1.7.21 and python-ldap-2.4.13.win32-py2.7 package for LDAP support.
david
#3 david
  • +PendingReview
  • +Component-Accounts
  • +david
david
#4 david
Fixed in release-1.7.x (f32c957). Thanks!
  • -PendingReview
    +Fixed
#5 friko*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Thanks for quick response:)