diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-09-20 06:05:59 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-09-20 06:44:19 +0200 |
commit | c5d38fd45abb037ff03dfb196c7fd0e2f59b1f28 (patch) | |
tree | 5db63de621487d8fa3b20a8dd54e061eb11497da /testprogs/blackbox | |
parent | 93e1e8bec92a828ab343c6a4cc53f3759de557ba (diff) | |
download | samba-c5d38fd45abb037ff03dfb196c7fd0e2f59b1f28.tar.gz samba-c5d38fd45abb037ff03dfb196c7fd0e2f59b1f28.tar.bz2 samba-c5d38fd45abb037ff03dfb196c7fd0e2f59b1f28.zip |
blackbox/test_ldb.sh: test searching using OIDs instead of names for attributes and classes
metze
Diffstat (limited to 'testprogs/blackbox')
-rwxr-xr-x | testprogs/blackbox/test_ldb.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testprogs/blackbox/test_ldb.sh b/testprogs/blackbox/test_ldb.sh index ba4f01f4a8..9a4780f10b 100755 --- a/testprogs/blackbox/test_ldb.sh +++ b/testprogs/blackbox/test_ldb.sh @@ -210,4 +210,20 @@ for SPDN in $SPECIALDNS; do fi done +echo "Search using OIDs instead of names" +nentries1=`$ldbsearch $options $CONFIGURATION -H $p://$SERVER '(objectClass=user)' name | grep "^name: " | wc -l` +nentries2=`$ldbsearch $options $CONFIGURATION -H $p://$SERVER '(2.5.4.0=1.2.840.113556.1.5.9)' name | grep "^name: " | wc -l` +if [ $nentries1 -lt 1 ]; then + echo "Error: Searching user via (objectClass=user): '$nentries1' < 1" + failed=`expr $failed + 1` +fi +if [ $nentries2 -lt 1 ]; then + echo "Error: Searching user via (2.5.4.0=1.2.840.113556.1.5.9) '$nentries2' < 1" + failed=`expr $failed + 1` +fi +if [ x"$nentries1" != x"$nentries2" ]; then + echo "Error: Searching user with OIDS[$nentries1] doesn't return the same as STRINGS[$nentries2]" + failed=`expr $failed + 1` +fi + exit $failed |