erreur de frappe

darcs-hash:20060428002535-4ec08-ae7b5fd5485290206cd1e6a9625e7f1dfa8d2365.gz
This commit is contained in:
chove 2006-04-28 02:25:35 +02:00
parent 42a295928e
commit 9d9253a168

View file

@ -1,7 +1,7 @@
# -*- coding: iso8859-15 -*- # -*- coding: iso8859-15 -*-
############################################################################### ###############################################################################
# ldap_passwd.py : manipulation des mots de passes LDAP # 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 # The authors of this code are
# Bjorn Ove Grotan <bgrotan@grotan.com> # Bjorn Ove Grotan <bgrotan@grotan.com>
@ -130,7 +130,7 @@ def checkpwd(pwd, pwdhash):
if not algo in algos.keys(): if not algo in algos.keys():
raise TypeError, 'Algorithm <%s> not supported in this version.' % algo 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:] salt = base64.decodestring(pwdhash.split('}')[1])[-16:]
else: else:
salt = None salt = None