if len(res) > 0 and len(res2) == 0:
message(CHANGE, "Existing object %s must be replaced by %s,"
"Renaming old object" % (str(oldDn), str(dn)))
- samdb.rename(oldDn, objDn, ["relax:0", "local_oid:1.3.6.1.4.1.7165.4.3.16:0"])
+ samdb.rename(oldDn, objDn, ["relax:0", "provision:0"])
return 0
delta.dn = dn
if not skip:
message(CHANGE,"Object %s will be added" % dn)
- samdb.add(delta, ["relax:0", "local_oid:1.3.6.1.4.1.7165.4.3.16:0"])
+ samdb.add(delta, ["relax:0", "provision:0"])
else:
message(CHANGE,"Object %s was skipped" % dn)
for att in hashAttrNotCopied.keys():
delta.remove(att)
- modcontrols = ["relax:0", "local_oid:1.3.6.1.4.1.7165.4.3.16:0"]
+ modcontrols = ["relax:0", "provision:0"]
samdb.add(delta, modcontrols)
listwko = []
#for checkedatt in relaxedatt:
for attr in delta.keys():
if attr.lower() in relaxedatt:
- modcontrols = ["relax:0", "local_oid:1.3.6.1.4.1.7165.4.3.16:0"]
+ modcontrols = ["relax:0", "provision:0"]
message(CHANGE, "%s is different from the reference one, changed"
" attributes: %s\n" % (dn, attributes))
changed += 1