if attrName not in ArbChanges:
return None
- if re.match(ArbChanges[attrName], G[1]) is None:
+ value = G[1]
+ if re.match(ArbChanges[attrName], value) 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)