From 2d0e9a95ddac429690ce07cedfb23a1cfb2c8293 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 6 Apr 2019 23:09:27 +0200 Subject: [PATCH] DoArbChange: actually initialize value --- ud-mailgate | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ud-mailgate b/ud-mailgate index d4e3f1d..02693b6 100755 --- 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) -- 2.20.1