From 2544a320b9bd5aaef02c0676ce753eabbe182b1d Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 13 May 2005 06:43:06 +0000 Subject: [PATCH] extend manageDIT test cases (now just need to find time to implement this) --- servers/slapd/slap.h | 2 +- tests/data/test.schema | 14 +++++++++++++- tests/scripts/test037-manage | 10 ++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index c8ffe0ba33..16ed4a632c 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -110,7 +110,7 @@ LDAP_BEGIN_DECL #endif #define SERVICE_NAME OPENLDAP_PACKAGE "-slapd" -#define SLAPD_ANONYMOUS "cn=anonymous" +#define SLAPD_ANONYMOUS "" /* LDAPMod.mod_op value ===> Must be kept in sync with ldap.h! * This is a value used internally by the backends. It is needed to allow diff --git a/tests/data/test.schema b/tests/data/test.schema index 373d8ca10f..63366e1472 100644 --- a/tests/data/test.schema +++ b/tests/data/test.schema @@ -44,6 +44,18 @@ attributetype ( 1.3.6.1.4.1.4203.666.1.37 syntax 1.3.6.1.4.1.1466.115.121.1.24 single-value ) -objectClass ( 1.3.6.1.4.1.4203.666.1.38 +attributetype ( 1.3.6.1.4.1.4203.666.1.38 + name 'testObsolete' + obsolete + equality booleanMatch + syntax 1.3.6.1.4.1.1466.115.121.1.7 + single-value ) + +objectClass ( 1.3.6.1.4.1.4203.666.3.15 name 'testPerson' sup OpenLDAPperson may testTime ) + +objectClass ( 1.3.6.1.3.1.4203.666.3.16 + name 'obsoletePerson' + obsolete auxiliary + must ( testObsolete ) ) diff --git a/tests/scripts/test037-manage b/tests/scripts/test037-manage index 0267c91b6b..28af98caa9 100755 --- a/tests/scripts/test037-manage +++ b/tests/scripts/test037-manage @@ -65,6 +65,16 @@ version: 1 # LEADING COMMENT AND WHITE SPACE +dn: cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example, + dc=com +# add obsolete objectclass +changetype: modify +add: objectClass +objectClass: obsoletePerson +- +add: testObsolete +testObsolete: TRUE + dn: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com # update structural object class of entry via objectClass replace changetype: modify -- 2.39.5