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 (parent:
6d63f8f
)
Locked account bugfix
author
jgg
<>
Sun, 30 Apr 2000 20:27:39 +0000
(20:27 +0000)
committer
jgg
<>
Sun, 30 Apr 2000 20:27:39 +0000
(20:27 +0000)
ud-mailgate
patch
|
blob
|
history
diff --git
a/ud-mailgate
b/ud-mailgate
index
8cf64c0
..
4e3b39d
100755
(executable)
--- a/
ud-mailgate
+++ b/
ud-mailgate
@@
-310,7
+310,7
@@
def HandleChPass(Reply,DnRecord,Key):
# Check for a locked account
Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,"uid="+GetAttr(DnRecord,"uid"));
# Check for a locked account
Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,"uid="+GetAttr(DnRecord,"uid"));
- if (string.find(GetAttr(Attrs[0],"user
P
assword"),"*LK*") != -1):
+ if (string.find(GetAttr(Attrs[0],"user
p
assword"),"*LK*") != -1):
raise Error, "This account is locked";
# Modify the password
raise Error, "This account is locked";
# Modify the password
@@
-397,7
+397,7
@@
try:
if Sender == None:
raise Error, "Unable to determine the sender's address";
if Sender == None:
raise Error, "Unable to determine the sender's address";
- if (string.find(GetAttr(Attrs[0],"user
P
assword"),"*LK*") != -1):
+ if (string.find(GetAttr(Attrs[0],"user
p
assword"),"*LK*") != -1):
raise Error, "This account is locked";
# Formulate a reply
raise Error, "This account is locked";
# Formulate a reply