From e17d12c23b2f56d8d29f7ee43148be85d28154c6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 4 Apr 2012 15:17:32 +1000 Subject: ldb-tools: Place the whole of an ldif file in a transaction This ensures that when operating ldbadd and ldbmodify against local ldb files, either an ldif file succeeds or fails as a whole. Also tests to verify that this is working correctly, and an ABI bump due to the extra (private, but exported to ldb* tools) symbol and behaviour change. Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Tue Apr 10 11:14:43 CEST 2012 on sn-devel-104 --- lib/ldb/tests/test-modify-unmet.ldif | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/ldb/tests/test-modify-unmet.ldif (limited to 'lib/ldb/tests/test-modify-unmet.ldif') diff --git a/lib/ldb/tests/test-modify-unmet.ldif b/lib/ldb/tests/test-modify-unmet.ldif new file mode 100644 index 0000000000..6a46cdf611 --- /dev/null +++ b/lib/ldb/tests/test-modify-unmet.ldif @@ -0,0 +1,15 @@ +dn: cn=Sentinel,ou=Alumni Association,ou=People,o=University of Michiga + n,c=TEST +changetype: modify +add: drink +drink: water + +dn: cn=Sentinel,ou=Alumni Association,ou=People,o=University of Michiga + n,c=TEST +changetype: modify +add: sn +sn: TEST +- +delete: sn +sn: USER2 + -- cgit