summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2023-02-23 17:07:20 +0100
committerAndrew Bartlett <abartlet@samba.org>2023-03-22 22:10:32 +0000
commit65294d56bdf82aa68ff9087810e593e245b3cb4d (patch)
treee85e75191551dfded74f5775505e62ad55fbaf73
parentc35ae5a77d5883383b5e26358222948dcb79b4d2 (diff)
downloadsamba-65294d56bdf82aa68ff9087810e593e245b3cb4d.tar.gz
python/tests: use changetype: modify in order to delete a single attribute
'changetype: delete' is used to delete a whole object! Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--python/samba/tests/audit_log_dsdb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/tests/audit_log_dsdb.py b/python/samba/tests/audit_log_dsdb.py
index 82535dcaf2d..09850961731 100644
--- a/python/samba/tests/audit_log_dsdb.py
+++ b/python/samba/tests/audit_log_dsdb.py
@@ -587,7 +587,7 @@ class AuditLogDsdbTests(AuditLogTestBase):
self.discardMessages()
self.ldb.modify_ldif(
"dn: " + dn + "\n" +
- "changetype: delete\n" +
+ "changetype: modify\n" +
"delete: carLicense\n" +
"carLicense: license-03\n" +
"carLicense: license-04\n")
@@ -613,7 +613,7 @@ class AuditLogDsdbTests(AuditLogTestBase):
self.discardMessages()
self.ldb.modify_ldif(
"dn: " + dn + "\n" +
- "changetype: delete\n" +
+ "changetype: modify\n" +
"replace: carLicense\n" +
"carLicense: license-05\n" +
"carLicense: license-06\n")