mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-19 07:53:00 +00:00
Bugfix: pam_normalize_username didn't return username
- A trivial bug caused by my last change to #2397 - made possible by the fact we didn't have a way to reliable test PAM stuff. - Thanks to @narnish for noticing. - Closes: #2875
This commit is contained in:

committed by
Erik Sundell

parent
68ad36e945
commit
0efb16793e
@@ -981,6 +981,7 @@ class PAMAuthenticator(LocalAuthenticator):
|
||||
uid = pwd.getpwnam(username).pw_uid
|
||||
username = pwd.getpwuid(uid).pw_name
|
||||
username = self.username_map.get(username, username)
|
||||
return username
|
||||
else:
|
||||
return super().normalize_username(username)
|
||||
|
||||
|
Reference in New Issue
Block a user