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:
c27eb9f
)
DoArbChange: actually initialize value
author
Peter Palfrader
<peter@palfrader.org>
Sat, 6 Apr 2019 21:09:27 +0000
(23:09 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Sat, 6 Apr 2019 21:09:27 +0000
(23:09 +0200)
ud-mailgate
patch
|
blob
|
history
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])
+ value = G[1];
+
Attrs.append((ldap.MOD_REPLACE, attrName, value))
return "Changed entry %s to %s" % (attrName, value)