From 65294d56bdf82aa68ff9087810e593e245b3cb4d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 23 Feb 2023 17:07:20 +0100 Subject: [PATCH] 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 Reviewed-by: Andrew Bartlett --- python/samba/tests/audit_log_dsdb.py | 4 ++-- 1 file 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")