From: Peter Palfrader Date: Sat, 6 Apr 2019 21:09:27 +0000 (+0200) Subject: DoArbChange: actually initialize value X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=2d0e9a95ddac429690ce07cedfb23a1cfb2c8293 DoArbChange: actually initialize value --- 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)