summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests/test-samba3sam.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/tests/test-samba3sam.sh')
-rwxr-xr-xsource4/lib/ldb/tests/test-samba3sam.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/lib/ldb/tests/test-samba3sam.sh b/source4/lib/ldb/tests/test-samba3sam.sh
new file mode 100755
index 0000000000..60d429e3b1
--- /dev/null
+++ b/source4/lib/ldb/tests/test-samba3sam.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+rm -f samba3.ldb
+
+$VALGRIND ldbadd -H tdb://samba3.ldb < samba3.ldif
+
+OPT="-o modules:samba3sam -H tdb://samba3.ldb "
+$VALGRIND ldbsearch $OPT "(cn=Administrator)"