From 9d9253a168625a34be18485eed4e0fe5020e9c2b Mon Sep 17 00:00:00 2001 From: chove Date: Fri, 28 Apr 2006 02:25:35 +0200 Subject: [PATCH] erreur de frappe darcs-hash:20060428002535-4ec08-ae7b5fd5485290206cd1e6a9625e7f1dfa8d2365.gz --- gestion/ldap_passwd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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