projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated
[mirror/userdir-ldap.git]
/
ud-mailgate
diff --git
a/ud-mailgate
b/ud-mailgate
index
6e94c75
..
4e3b39d
100755
(executable)
--- a/
ud-mailgate
+++ b/
ud-mailgate
@@
-27,6
+27,7
@@
ArbChanges = {"c": "..",
"loginshell": ".*",
"emailforward": "^([^<>@]+@.+)?$",
"ircnick": ".*",
"loginshell": ".*",
"emailforward": "^([^<>@]+@.+)?$",
"ircnick": ".*",
+ "icquin": "^[0-9]*$",
"onvacation": ".*",
"labeledurl": ".*"};
"onvacation": ".*",
"labeledurl": ".*"};
@@
-42,6
+43,7
@@
DelItems = {"c": None,
"labeledurl": None,
"latitude": None,
"longitude": None,
"labeledurl": None,
"latitude": None,
"longitude": None,
+ "icquin": None,
"sshrsaauthkey": None};
# Decode a GPS location from some common forms
"sshrsaauthkey": None};
# Decode a GPS location from some common forms
@@
-308,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
@@
-395,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