2978: cannot log with an ldap account when password contains accent character or requires another encoding charset

nan****@gmai***** (Google Code) (Is this you? Claim this profile.)
Jan. 17, 2014
What version are you running?
1.7.6

What's the URL of the page containing the problem?
xxxx/account/login

What steps will reproduce the problem?
1. ldap or active directory authentication configured on server
2. a user has modified his password and it contains one or several accent
3. try to login with this username

What is the expected output?
people should be authentified

What do you see instead?
no exception catched and notified to user


What operating system are you using? What browser?
Linux OS with chromium or firefox

fix is to call simple_bind_s with "password.encode('utf-8')" instead of "password"

Can we force encode('utf-8') for ldap or should there be an encoding system option in admin section ?
david
#1 david
It looks like LDAP is generally assumed to be UTF-8 (assuming my reading of http://tools.ietf.org/search/rfc4514 is correct). I'll get a fix for this in master (the 2.0 series).
  • +PendingReview
  • +Component-Accounts
david
#2 david
Fixed in master (a4852f6). Thanks!
  • -PendingReview
    +Fixed