erreur de frappe
darcs-hash:20060428002535-4ec08-ae7b5fd5485290206cd1e6a9625e7f1dfa8d2365.gz
This commit is contained in:
parent
42a295928e
commit
9d9253a168
1 changed files with 2 additions and 2 deletions
|
@ -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 <bgrotan@grotan.com>
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue