projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DoArbChange: actually initialize value
[mirror/userdir-ldap.git]
/
ud-mailgate
diff --git
a/ud-mailgate
b/ud-mailgate
index
d4e3f1d
..
02693b6
100755
(executable)
--- a/
ud-mailgate
+++ b/
ud-mailgate
@@
-195,6
+195,8
@@
def DoArbChange(Str, Attrs):
if re.match(ArbChanges[attrName], G[1]) is None:
raise UDFormatError("Item does not match the required format" + ArbChanges[attrName])
if re.match(ArbChanges[attrName], G[1]) is None:
raise UDFormatError("Item does not match the required format" + ArbChanges[attrName])
+ value = G[1];
+
Attrs.append((ldap.MOD_REPLACE, attrName, value))
return "Changed entry %s to %s" % (attrName, value)
Attrs.append((ldap.MOD_REPLACE, attrName, value))
return "Changed entry %s to %s" % (attrName, value)