From 0dad5a34273bf5cadcfd4a36d69bdffbf69eb073 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 1 May 2004 09:45:56 +0000 Subject: r435: a major upgrade for ldb - added the ability to mark record attributes as being CASE_INSENSITIVE, WILDCARD or INTEGER. - added the ability to support objectclass subclasses, and to search by a parent class - added internal support for case insensitive versus case sensitive indexing (not UTF8 compliant yet) - cleaned up a number of const warnings - added a number of helper functions for fetching integers, strings and doubles - added a in-memory cache for important database properties, supported by a database sequence number - changed some variable names to avoid conflicts with C++ (This used to be commit f2bf06f25c2e6c744817711c7bedbd1d3b52f994) --- source4/lib/ldb/tests/test-attribs.ldif | 13 +++++++++++++ source4/lib/ldb/tests/test-generic.sh | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 source4/lib/ldb/tests/test-attribs.ldif (limited to 'source4/lib/ldb/tests') diff --git a/source4/lib/ldb/tests/test-attribs.ldif b/source4/lib/ldb/tests/test-attribs.ldif new file mode 100644 index 0000000000..bfa51b05fa --- /dev/null +++ b/source4/lib/ldb/tests/test-attribs.ldif @@ -0,0 +1,13 @@ +dn: @ATTRIBUTES +uid: CASE_INSENSITIVE WILDCARD +dn: CASE_INSENSITIVE + +dn: @SUBCLASSES +top: domain +top: person +domain: domainDNS +person: organizationalPerson +person: fooPerson +organizationalPerson: user +organizationalPerson: OpenLDAPperson +user: computer diff --git a/source4/lib/ldb/tests/test-generic.sh b/source4/lib/ldb/tests/test-generic.sh index 41f5707e9c..79db49bb48 100755 --- a/source4/lib/ldb/tests/test-generic.sh +++ b/source4/lib/ldb/tests/test-generic.sh @@ -1,8 +1,8 @@ echo "Adding base elements" -bin/ldbadd < tests/test.ldif +bin/ldbadd tests/test.ldif echo "Modifying elements" -bin/ldbmodify < tests/test-modify.ldif +bin/ldbmodify tests/test-modify.ldif echo "Showing modified record" bin/ldbsearch '(uid=uham)' -- cgit