diff --git a/gestion/ldap_passwd.py b/gestion/ldap_passwd.py index 2033076e..07cf4f20 100644 --- a/gestion/ldap_passwd.py +++ b/gestion/ldap_passwd.py @@ -1,7 +1,7 @@ # -*- coding: iso8859-15 -*- ############################################################################### # ldap_passwd.py : manipulation des mots de passes LDAP -# $Id: ldap_passwd.py,v 1.6 2006-04-28 00:25:35 chove Exp $ +# $Id: ldap_passwd.py,v 1.7 2006-05-04 17:46:58 chove Exp $ ############################################################################### # The authors of this code are # Bjorn Ove Grotan @@ -131,7 +131,7 @@ def checkpwd(pwd, pwdhash): raise TypeError, 'Algorithm <%s> not supported in this version.' % algo if algos[algo].startswith('Seeded '): - salt = base64.decodestring(pwdhash.split('}')[1])[-16:] + salt = base64.decodestring(pwdhash.split('}')[1])[20:] else: salt = None