diff --git a/gestion/ldap_passwd.py b/gestion/ldap_passwd.py index 300674b0..2033076e 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.5 2006-04-28 00:22:37 chove Exp $ +# $Id: ldap_passwd.py,v 1.6 2006-04-28 00:25:35 chove Exp $ ############################################################################### # The authors of this code are # Bjorn Ove Grotan @@ -130,7 +130,7 @@ def checkpwd(pwd, pwdhash): if not algo in algos.keys(): raise TypeError, 'Algorithm <%s> not supported in this version.' % algo - if alg[algo].startswith('Seeded '): + if algos[algo].startswith('Seeded '): salt = base64.decodestring(pwdhash.split('}')[1])[-16:] else: salt = None