# HG changeset patch # User Mads Kiilerich # Date 2015-10-20 20:15:04 # Node ID 92ebcf7d80429df49b67af4ffe58449ed543b5e0 # Parent 03975e4a8532f60ab47f82ab5f174b1a3d0cfdcd auth_pam: fix crash caused by colliding variable names Regression introduced in 03afa7766ac7. diff --git a/kallithea/lib/auth_modules/auth_pam.py b/kallithea/lib/auth_modules/auth_pam.py --- a/kallithea/lib/auth_modules/auth_pam.py +++ b/kallithea/lib/auth_modules/auth_pam.py @@ -123,9 +123,9 @@ class KallitheaAuthPlugin(auth_modules.K } try: - user_data = pwd.getpwnam(username) + user_pw_data = pwd.getpwnam(username) regex = settings["gecos"] - match = re.search(regex, user_data.pw_gecos) + match = re.search(regex, user_pw_data.pw_gecos) if match: user_data["firstname"] = match.group('first_name') user_data["lastname"] = match.group('last_name')