On Tue, 1 Apr 2014 11:29:27 +0000 Sjøholt Steinar Otto ssj@hials.no wrote:
I'm happy to say the fix works for MOST of our users.
Unfortunately not for me...
I have traced it down to the fact that i have a "ø" in my last name. Users with names not containing "æøå" can log in just fine.
[snip]
[Tue Apr 01 11:29:17 2014] [error] self.ldap.simple_bind_s(user_dn.encode(encoding), [Tue Apr 01 11:29:17 2014] [error] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 18: ordinal not in range(128)
Oops. The code does not consider that the user search result from the LDAP server is already encoded as UTF-8. Attempting to encode an already encoded string will cause Python to attempt to decode it from ASCII to unicode, before encoding that as UTF-8 again.
And I'm sorry to say, your name is not ASCII compatible ,)
It's a quick fix; I've taken the liberty of patching your server so you can log in again, Steinar :)