diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-08-18 15:29:19 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-08-18 15:29:47 +0200 |
commit | 79209ee3892a7ec19400e5ef80573f17883e1aab (patch) | |
tree | 08fecccb2307a99d55bfa712016d3c14f9cdd26d /pynslcd/pam.py | |
parent | e0491d2536c59dfa264542e3c621972cafb5b87a (diff) |
Rename isvalidname() to is_valid_name() in pynslcd
Diffstat (limited to 'pynslcd/pam.py')
-rw-r--r-- | pynslcd/pam.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pynslcd/pam.py b/pynslcd/pam.py index 7c01517..3a3d55d 100644 --- a/pynslcd/pam.py +++ b/pynslcd/pam.py @@ -131,7 +131,7 @@ class PAMRequest(common.Request): logging.warning('%s: is missing a %s attribute', entry[0], passwd.attmap['uid']) value = values[0] # check the username - if value and not common.isvalidname(value): + if value and not common.is_valid_name(value): raise ValueError('%s: has invalid %s attribute', entry[0], passwd.attmap['uid']) # check if the username is different and update it if needed if value != parameters['username']: |