r6877: added CLDAP testing to test_ldap.sh
authorAndrew Tridgell <tridge@samba.org>
Wed, 18 May 2005 04:23:12 +0000 (04:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:53 +0000 (13:16 -0500)
source/script/tests/test_ldap.sh

index 1aeb74baa8ee5ec25f3e28b7345b791303c33a00..ea2e6ad7aa17e9b85ccd8efc9ec1296439ecc43d 100755 (executable)
@@ -13,8 +13,11 @@ echo "BASEDN is $BASEDN"
 
 
 echo "Listing Users"
-ldbsearch -H ldap://$SERVER -b "$BASEDN" '(objectclass=user)' sAMAccountName
+ldbsearch -H ldap://$SERVER -b "$BASEDN" '(objectclass=user)' sAMAccountName || exit 1
 
 echo "Listing Groups"
-ldbsearch -H ldap://$SERVER -b "$BASEDN" '(objectclass=group)' sAMAccountName
+ldbsearch -H ldap://$SERVER -b "$BASEDN" '(objectclass=group)' sAMAccountName || exit 1
+
+echo "CLDAP test"
+bin/smbtorture //$SERVER/_none_ LDAP-CLDAP || exit 1