LDAP group membership verification crashes with UnicodeDecodeError when username contains non-ASCII chars
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
High
|
Morten Brekkevold | ||
3.15 |
Fix Released
|
High
|
Morten Brekkevold | ||
4.0 |
Fix Released
|
High
|
Morten Brekkevold |
Bug Description
If a user's login name contains non-ASCII characters, and the "required_group" option is set in the `ldap` section of `webfront.conf`, that user will experience a crash at login time.
The group verification step raises a UnicodeDecodeError, traceback looking like this:
Traceback (most recent call last):
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
return view(request, *args, **kwargs)
File "/usr/lib/
return do_login(request)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
account = auth.authentica
File "/usr/lib/
user = ldapauth.
File "/usr/lib/
if user.is_
File "/usr/lib/
result = self.ldap.
File "/usr/lib/
return self.search_
File "/usr/lib/
msgid = self.search_
File "/usr/lib/
timeout,
File "/usr/lib/
result = func(*args,
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 26: ordinal not in range(128)
Changed in nav: | |
status: | Confirmed → In Progress |
Changed in nav: | |
status: | Fix Committed → Fix Released |
fix here: https:/ /nav.uninett. no/hg/stable/ rev/08eaf8c0338 c