projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
162b1cc
)
fix change password variable name, too
author
rmurray
<>
Thu, 16 Aug 2007 14:12:38 +0000
(14:12 +0000)
committer
rmurray
<>
Thu, 16 Aug 2007 14:12:38 +0000
(14:12 +0000)
ud-mailgate
patch
|
blob
|
history
diff --git
a/ud-mailgate
b/ud-mailgate
index
6e24f10
..
60baacd
100755
(executable)
--- a/
ud-mailgate
+++ b/
ud-mailgate
@@
-416,7
+416,7
@@
def HandleChPass(Reply,DnRecord,Key):
# Check for a locked account
Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,"uid="+GetAttr(DnRecord,"uid"));
if (string.find(GetAttr(Attrs[0],"userPassword"),"*LK*") != -1) \
# Check for a locked account
Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,"uid="+GetAttr(DnRecord,"uid"));
if (string.find(GetAttr(Attrs[0],"userPassword"),"*LK*") != -1) \
- or GetAttr(
x
,"userPassword").startswith("!"):
+ or GetAttr(
Attrs[0]
,"userPassword").startswith("!"):
raise Error, "This account is locked";
# Modify the password
raise Error, "This account is locked";
# Modify the password