Fixed slapd rewrite session var set bug (ITS#4023)
Fixed slapd syncrepl empty uniqueMember bug (ITS#4040)
Fixed slapd alias resolution bug (ITS#4030)
+ Fixed slapd password-hash cleartext bug (ITS#4021)
+ Fixed slapd realloc zero bug (ITS#3981)
+ Fixed slapd nested overlay configuration bug (ITS#4047)
+ Fixed slapd password modify oldPassword ignore bug (ITS#4049)
+ Updated slapd authz backend detection (ITS#4018)
Fixed slapd-bdb/hdb pointer/integer size mismatch (ITS#4015)
Updated slapd-hdb index management
Fixed slapd-glue mixtures bug (ITS#3979)
Fixed slapcat out-of-memory problem (ITS#4010)
Fixed slurpd unrecognized slave names bug (ITS#4012)
Fixed liblber dgram len bug (ITS#4046)
- Updated slapd authz backend detection (ITS#4018)
- Fixed slapd realloc zero bug (ITS#3981)
Documentation
Added slapo-valsort(5) man page (ITS#3994)
Added slap tool -F option documentation (ITS#4026)
Fixed misc POSIX conformance issues (ITS#2667)
Fixed --without-threads build issue (ITS#4006)
Fixed test script exit checks (ITS#4045)
+ Added test suite parameterized directory support
OpenLDAP 2.3.7 Release
Updated slapd ManageDIT support
lutil_cryptfunc *lutil_cryptptr = lutil_crypt;
#endif
+/* KLUDGE:
+ * chk_fn is NULL iff name is {CLEARTEXT}
+ * otherwise, things will break
+ */
struct pw_scheme {
struct berval name;
LUTIL_PASSWD_CHK_FUNC *chk_fn;
#ifdef SLAPD_CLEARTEXT
/* pseudo scheme */
- { {0, "{CLEARTEXT}"}, NULL, hash_clear },
+ { BER_BVC("{CLEARTEXT}"), NULL, hash_clear },
#endif
{ BER_BVNULL, NULL, NULL }
*/
if (( passwd->bv_val[0] == '{' ) &&
( strchr( passwd->bv_val, '}' ) > passwd->bv_val+1 ))
+ {
return 1;
+ }
if( is_allowed_scheme("{CLEARTEXT}", schemes ) ) {
return ( passwd->bv_len == cred->bv_len ) ?
memcmp( passwd->bv_val, cred->bv_val, passwd->bv_len )
}
/* check parent for "children" acl */
- if ( ! access_allowed( op, p, children, NULL,
+ rs->sr_err = access_allowed( op, p, children, NULL,
op->oq_modrdn.rs_newSup != NULL ?
ACL_WDEL : ACL_WRITE,
- NULL ) )
+ NULL );
+
+ if ( BER_BVISEMPTY( &p_ndn ))
+ p = NULL;
+
+ if ( !rs->sr_err )
{
Debug( LDAP_DEBUG_TRACE, "no access to parent\n", 0,
0, 0 );
goto return_results;
}
- if ( BER_BVISEMPTY( &p_ndn ))
- p = NULL;
-
Debug( LDAP_DEBUG_TRACE,
"ldbm_back_modrdn: wr to children of entry %s OK\n",
p_ndn.bv_val, 0, 0 );
int
glue_sub_init()
{
- int rc;
-
glue.on_bi.bi_type = "glue";
glue.on_bi.bi_db_init = glue_db_init;
}
for(i = 1; i < c->argc; i++) {
if(!lutil_passwd_scheme(c->argv[i])) {
- sprintf( c->msg, "<%s> schema not available", c->argv[0] );
+ sprintf( c->msg, "<%s> scheme not available", c->argv[0] );
Debug(LDAP_DEBUG_ANY, "%s: %s (%s)\n",
c->log, c->msg, c->argv[i]);
} else {
struct sync_cookie *scp = NULL;
struct sync_cookie *scp_entry = NULL;
+ char *serverNamePrefix = "";
+ size_t l;
+
#ifdef CSRIMALLOC
FILE *leakfile;
if( ( leakfile = fopen( "slapd.leak", "w" )) == NULL ) {
leakfile = stderr;
}
#endif
- char *serverNamePrefix = "";
- size_t l;
slap_sl_mem_init();
return LDAP_STRONG_AUTH_REQUIRED;
}
+ qpw->rs_old.bv_len = 0;
qpw->rs_old.bv_val = NULL;
+ qpw->rs_new.bv_len = 0;
qpw->rs_new.bv_val = NULL;
qpw->rs_mods = NULL;
qpw->rs_modtail = NULL;
- rs->sr_err = slap_passwd_parse( op->ore_reqdata, &id, &qpw->rs_old,
- &qpw->rs_new, &rs->sr_text );
+ rs->sr_err = slap_passwd_parse( op->ore_reqdata, &id,
+ &qpw->rs_old, &qpw->rs_new, &rs->sr_text );
if ( rs->sr_err == LDAP_SUCCESS && !BER_BVISEMPTY( &id ) ) {
Statslog( LDAP_DEBUG_STATS, "%s PASSMOD id=\"%s\"%s%s\n",
}
if( op->o_bd == NULL ) {
+ if ( qpw->rs_old.bv_val != NULL ) {
+ rs->sr_text = "unwilling to verify old password";
+ rc = LDAP_UNWILLING_TO_PERFORM;
+ goto error_return;
+ }
+
#ifdef HAVE_CYRUS_SASL
rc = slap_sasl_setpass( op, rs );
#else
goto error_return;
}
+ if ( qpw->rs_old.bv_val != NULL ) {
+ rs->sr_text = "unwilling to verify old password";
+ rc = LDAP_UNWILLING_TO_PERFORM;
+ goto error_return;
+ }
+
ml = ch_malloc( sizeof(Modifications) );
if ( !qpw->rs_modtail ) qpw->rs_modtail = &ml->sml_next;
goto decoding_error;
}
+ if( oldpass->bv_len == 0 ) {
+ Debug( LDAP_DEBUG_TRACE, "slap_passwd_parse: OLD empty.\n",
+ 0, 0, 0 );
+
+ *text = "old password value is empty";
+ rc = LDAP_UNWILLING_TO_PERFORM;
+ goto done;
+ }
+
tag = ber_peek_tag( ber, &len );
}
goto decoding_error;
}
+ if( newpass->bv_len == 0 ) {
+ Debug( LDAP_DEBUG_TRACE, "slap_passwd_parse: NEW empty.\n",
+ 0, 0, 0 );
+
+ *text = "new password value is empty";
+ rc = LDAP_UNWILLING_TO_PERFORM;
+ goto done;
+ }
+
tag = ber_peek_tag( ber, &len );
}
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-include ./testdata/test.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+include @DATADIR@/test.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
# global ACLs
#
database @BACKEND@
#ldbm#cachesize 0
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
#ldbm#cachesize 0
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.2.pid
-argsfile ./testrun/slapd.2.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.2.pid
+argsfile @TESTDIR@/slapd.2.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
#ldbm#cachesize 0
suffix "dc=example,dc=com"
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
-include ./testdata/test.schema
-include ./testdata/ditcontentrules.conf
+include @DATADIR@/test.schema
+include @DATADIR@/ditcontentrules.conf
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
-moduleload ./testdata/comp_libs/compmatch.la
+moduleload @DATADIR@/comp_libs/compmatch.la
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-pidfile ./test-db/slapd.pid
-argsfile ./test-db/slapd.args
+include @SCHEMADIR@/core.schema
+pidfile @TESTDIR@/slapd.pid
+argsfile @TESTDIR@/slapd.args
sasl-secprops noanonymous
#sasl-secprops none
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
access to dn.exact=""
by * read
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
database @BACKEND@
suffix ""
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "cn=Manager,c=US"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-include ./schema/ppolicy.schema
-pidfile ./test-db/slapd.m.pid
-argsfile ./test-db/slapd.m.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+include @SCHEMADIR@/ppolicy.schema
+pidfile @TESTDIR@/slapd.m.pid
+argsfile @TESTDIR@/slapd.m.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "ou=Information Technology Division,ou=People,dc=example,dc=com"
subordinate
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager 1,dc=example,dc=com"
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
database @BACKEND@
suffix "ou=Groups,dc=example,dc=com"
subordinate
-directory ./testrun/db.1.b
+directory @TESTDIR@/db.1.b
rootdn "cn=Manager 1,dc=example,dc=com"
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.c
+directory @TESTDIR@/db.1.c
rootdn "cn=Manager 1,dc=example,dc=com"
rootpw secret
#bdb#index objectclass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.2.pid
-argsfile ./testrun/slapd.2.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.2.pid
+argsfile @TESTDIR@/slapd.2.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "ou=Information Technology Division,ou=People,dc=example,dc=com"
subordinate
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "cn=Manager 2,dc=example,dc=com"
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
database @BACKEND@
suffix "ou=Groups,dc=example,dc=com"
subordinate
-directory ./testrun/db.2.b
+directory @TESTDIR@/db.2.b
rootdn "cn=Manager 2,dc=example,dc=com"
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.2.c
+directory @TESTDIR@/db.2.c
rootdn "cn=Manager 2,dc=example,dc=com"
rootpw secret
#bdb#index objectclass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "ou=Information Technology Division,ou=People,dc=example,dc=com"
subordinate
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager, dc=example,dc=com"
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
database @BACKEND@
suffix "ou=Groups,dc=example,dc=com"
subordinate
-directory ./testrun/db.1.b
+directory @TESTDIR@/db.1.b
rootdn "cn=Manager, dc=example,dc=com"
#bdb#index objectclass eq
#bdb#index uid pres,eq,sub
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.c
+directory @TESTDIR@/db.1.c
rootdn "cn=Manager, dc=example,dc=com"
rootpw secret
#bdb#index objectclass eq
## <http://www.OpenLDAP.org/license.html>.
#ucdata-path ./ucdata
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
#ldbm#cachesize 0
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
database @BACKEND@
#ldbm#cachesize 0
suffix "dc=example,dc=it"
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "cn=Manager,dc=example,dc=it"
rootpw secret
#bdb#index objectClass eq
## <http://www.OpenLDAP.org/license.html>.
#ucdata-path ./ucdata
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
# root
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## <http://www.OpenLDAP.org/license.html>.
#ucdata-path ./ucdata
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.3.pid
-argsfile ./testrun/slapd.3.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.3.pid
+argsfile @TESTDIR@/slapd.3.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
# people branch
database @BACKEND@
suffix "ou=Groups,dc=example,dc=com"
-directory ./testrun/db.3.a
+directory @TESTDIR@/db.3.a
rootdn "cn=Manager,ou=Groups,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## <http://www.OpenLDAP.org/license.html>.
#ucdata-path ./ucdata
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.2.pid
-argsfile ./testrun/slapd.2.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.2.pid
+argsfile @TESTDIR@/slapd.2.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
# people branch
database @BACKEND@
suffix "ou=People,dc=example,dc=com"
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "cn=Manager,ou=People,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
# Need quality indices on "uid" to check "unchecked" limits...
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
-include ./testdata/ditcontentrules.conf
+include @DATADIR@/ditcontentrules.conf
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-include ./schema/ppolicy.schema
-pidfile ./test-db/slapd.m.pid
-argsfile ./test-db/slapd.m.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+include @SCHEMADIR@/ppolicy.schema
+pidfile @TESTDIR@/slapd.m.pid
+argsfile @TESTDIR@/slapd.m.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-include ./schema/ppolicy.schema
-pidfile ./test-db/slapd.2.pid
-argsfile ./test-db/slapd.2.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+include @SCHEMADIR@/ppolicy.schema
+pidfile @TESTDIR@/slapd.2.pid
+argsfile @TESTDIR@/slapd.2.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "ou=Meta,dc=example,dc=com"
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "cn=Manager,ou=Meta,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/others_nis.at.conf
-include ./schema/others_nis.oc.conf
-include ./schema/nis.at.conf
-include ./schema/nis.oc.conf
-include ./schema/internet_mail.at.conf
-include ./schema/internet_mail.oc.conf
-pidfile ./test-db/slapd.pid
-argsfile ./test-db/slapd.args
+include @SCHEMADIR@/others_nis.at.conf
+include @SCHEMADIR@/others_nis.oc.conf
+include @SCHEMADIR@/nis.at.conf
+include @SCHEMADIR@/nis.oc.conf
+include @SCHEMADIR@/internet_mail.at.conf
+include @SCHEMADIR@/internet_mail.oc.conf
+pidfile @TESTDIR@/slapd.pid
+argsfile @TESTDIR@/slapd.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database ldbm
cachesize 4
suffix "o=SGI, c=US"
-directory ./test-db
+directory @TESTDIR@
rootdn "cn=Manager, o=SGI, c=US"
rootpw secret
index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./test-db/slapd.pid
-argsfile ./test-db/slapd.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.pid
+argsfile @TESTDIR@/slapd.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-include ./schema/ppolicy.schema
-pidfile ./test-db/slapd.pid
-argsfile ./test-db/slapd.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+include @SCHEMADIR@/ppolicy.schema
+pidfile @TESTDIR@/slapd.pid
+argsfile @TESTDIR@/slapd.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
-pidfile ./testrun/slapd.2.pid
-argsfile ./testrun/slapd.2.args
+pidfile @TESTDIR@/slapd.2.pid
+argsfile @TESTDIR@/slapd.2.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
#bdb#cachesize 20
#hdb#cachesize 20
#ldbm#cachesize 20
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
#bdb#index objectClass eq
#bdb#index cn,sn,uid,mail pres,eq,sub
#hdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
#ldbm#cachesize 0
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.2.pid
-argsfile ./testrun/slapd.2.args
+pidfile @TESTDIR@/slapd.2.pid
+argsfile @TESTDIR@/slapd.2.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
#hdb#cachesize 0
#ldbm#cachesize 0
suffix "o=University of Mich,c=US"
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "cn=Manager,o=University of Mich,c=US"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.pid
-argsfile ./testrun/slapd.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.pid
+argsfile @TESTDIR@/slapd.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "c=us"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,c=us"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "o=refint"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,o=refint"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-include ./schema/ppolicy.schema
-pidfile ./test-db/slapd.pid
-argsfile ./test-db/slapd.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+include @SCHEMADIR@/ppolicy.schema
+pidfile @TESTDIR@/slapd.pid
+argsfile @TESTDIR@/slapd.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
#ldbm#cachesize 0
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
#ldbm#index objectClass eq
#ldbm#index cn,sn,uid pres,eq,sub
-replogfile ./testrun/slapd.1.replog
+replogfile @TESTDIR@/slapd.1.replog
replica host=localhost:@PORT2@
binddn="cn=Replica,dc=example,dc=com"
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.2.pid
-argsfile ./testrun/slapd.2.args
+pidfile @TESTDIR@/slapd.2.pid
+argsfile @TESTDIR@/slapd.2.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
#ldbm#cachesize 0
suffix "dc=example,dc=com"
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
updatedn "cn=Replica,dc=example,dc=com"
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-include ./testdata/test.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+include @DATADIR@/test.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
overlay retcode
retcode-parent "ou=RetCodes,dc=example,dc=com"
-include testdata/retcode.conf
+include @DATADIR@/retcode.conf
#monitor#database monitor
## <http://www.OpenLDAP.org/license.html>.
#
-include ./schema/core.schema
-include ./schema/cosine.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
#
-include ./schema/corba.schema
-include ./schema/java.schema
-include ./schema/inetorgperson.schema
-include ./schema/misc.schema
-include ./schema/nis.schema
-include ./schema/openldap.schema
+include @SCHEMADIR@/corba.schema
+include @SCHEMADIR@/java.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/misc.schema
+include @SCHEMADIR@/nis.schema
+include @SCHEMADIR@/openldap.schema
#
-include ./schema/dyngroup.schema
-include ./schema/ppolicy.schema
+include @SCHEMADIR@/duaconf.schema
+include @SCHEMADIR@/dyngroup.schema
+include @SCHEMADIR@/ppolicy.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#
-rootdse ./testdata/rootdse.ldif
+rootdse @DATADIR@/rootdse.ldif
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "o=OpenLDAP Project,l=Internet"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
#bdb#index objectClass eq
#hdb#index objectClass eq
#ldbm#index objectClass eq
#database @BACKEND@
#suffix "dc=example,dc=com"
-#directory ./testrun/db.1.b
+#directory @TESTDIR@/db.1.b
#index objectClass eq
#monitor#database monitor
## <http://www.OpenLDAP.org/license.html>.
#ucdata-path ./ucdata
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#sqlmod#modulepath ../servers/slapd/back-sql/
#sqlmod#moduleload back_sql.la
## <http://www.OpenLDAP.org/license.html>.
#ucdata-path ./ucdata
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#sqlmod#modulepath ../servers/slapd/back-sql/
#sqlmod#moduleload back_sql.la
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.4.pid
-argsfile ./testrun/slapd.4.args
+pidfile @TESTDIR@/slapd.4.pid
+argsfile @TESTDIR@/slapd.4.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.4.a
+directory @TESTDIR@/db.4.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
# $OpenLDAP: pkg/ldap/tests/data/slapd-syncrepl-slave-persist2.conf,v 1.4.2.4
2003/12/15 22:05:29 kurt Exp $
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.5.pid
-argsfile ./testrun/slapd.5.args
+pidfile @TESTDIR@/slapd.5.pid
+argsfile @TESTDIR@/slapd.5.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.5.a
+directory @TESTDIR@/db.5.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.6.pid
-argsfile ./testrun/slapd.6.args
+pidfile @TESTDIR@/slapd.6.pid
+argsfile @TESTDIR@/slapd.6.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.6.a
+directory @TESTDIR@/db.6.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.2.pid
-argsfile ./testrun/slapd.2.args
+pidfile @TESTDIR@/slapd.2.pid
+argsfile @TESTDIR@/slapd.2.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.3.pid
-argsfile ./testrun/slapd.3.args
+pidfile @TESTDIR@/slapd.3.pid
+argsfile @TESTDIR@/slapd.3.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.3.a
+directory @TESTDIR@/db.3.a
rootdn "cn=Replica,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## <http://www.OpenLDAP.org/license.html>.
ucdata-path ./ucdata
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.2.pid
-argsfile ./testrun/slapd.2.args
+pidfile @TESTDIR@/slapd.2.pid
+argsfile @TESTDIR@/slapd.2.args
#mod#modulepath ../servers/slapd/back-@BACKEND@
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "o=translucent"
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "o=translucent"
rootpw secret
#bdb#index objectClass eq
## <http://www.OpenLDAP.org/license.html>.
ucdata-path ./ucdata
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/:../servers/slapd/overlays
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "o=translucent"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "o=translucent"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "o=unique"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,o=unique"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "o=valsort"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,o=valsort"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
#ldbm#cachesize 0
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
-include ./testdata/test.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
+include @DATADIR@/test.schema
#
-pidfile ./testrun/slapd.1.pid
-argsfile ./testrun/slapd.1.args
+pidfile @TESTDIR@/slapd.1.pid
+argsfile @TESTDIR@/slapd.1.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.1.a
+directory @TESTDIR@/db.1.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
#bdb#index objectClass eq
## top-level directory of the distribution or, alternatively, at
## <http://www.OpenLDAP.org/license.html>.
-include ./schema/core.schema
-include ./schema/cosine.schema
-include ./schema/inetorgperson.schema
-include ./schema/openldap.schema
-include ./schema/nis.schema
+include @SCHEMADIR@/core.schema
+include @SCHEMADIR@/cosine.schema
+include @SCHEMADIR@/inetorgperson.schema
+include @SCHEMADIR@/openldap.schema
+include @SCHEMADIR@/nis.schema
#
-pidfile ./testrun/slapd.2.pid
-argsfile ./testrun/slapd.2.args
+pidfile @TESTDIR@/slapd.2.pid
+argsfile @TESTDIR@/slapd.2.args
#mod#modulepath ../servers/slapd/back-@BACKEND@/
#mod#moduleload back_@BACKEND@.la
database @BACKEND@
suffix "dc=example,dc=com"
-directory ./testrun/db.2.a
+directory @TESTDIR@/db.2.a
rootdn "cn=Manager,dc=example,dc=com"
rootpw secret
index objectClass eq
export AC_translucent AC_WITH_SASL AC_WITH_TLS AC_WITH_MODULES_ENABLED AC_ACI_ENABLED
export AC_valsort
+# need defines.sh for the definitions of the directories
+. $SRCDIR/scripts/defines.sh
+
if test ! -x ../servers/slapd/slapd ; then
echo "Could not locate slapd(8)"
exit 1
-c | -clean)
CLEAN=yes
- shift; shift ;;
+ shift ;;
-k | -kill)
KILLSERVERS=no
exit 1;
fi
-if test ! -r testdata/test.ldif ; then
- ${LN_S} ${SRCDIR}/data testdata
+if test ! -r ${DATADIR}/test.ldif ; then
+ ${LN_S} ${SRCDIR}/data ${DATADIR}
fi
-if test ! -r schema/core.schema ; then
- ${LN_S} ${TOPSRCDIR}/servers/slapd/schema schema
+if test ! -r ${SCHEMADIR}/core.schema ; then
+ ${LN_S} ${TOPSRCDIR}/servers/slapd/schema ${SCHEMADIR}
fi
-if test -d testrun ; then
+if test -d ${TESTDIR} ; then
if test $PRESERVE = no ; then
echo "Cleaning up test run directory leftover from previous run."
- /bin/rm -rf testrun
+ /bin/rm -rf ${TESTDIR}
elif test $PRESERVE = yes ; then
echo "Cleaning up only database directories leftover from previous run."
- /bin/rm -rf testrun/db.*
+ /bin/rm -rf ${TESTDIR}/db.*
fi
fi
echo "User data directory (userdata) does not exist."
exit 1
fi
- mkdir -p testrun
- cp -R userdata/* testrun
+ mkdir -p ${TESTDIR}
+ cp -R userdata/* ${TESTDIR}
fi
# disable LDAP initialization
if test $CLEAN = yes ; then
echo "Cleaning up test run directory from this run."
- /bin/rm -rf testrun
+ /bin/rm -rf ${TESTDIR}
echo "Cleaning up symlinks."
- /bin/rm -f testdata schema
+ /bin/rm -f ${DATADIR} ${SCHEMADIR}
fi
exit $RC
-e "s;@PORT6@;${PORT6};" \
-e "s/@SASL_MECH@/${SASL_MECH}/" \
-e "s/@CACHETTL@/${CACHETTL}/" \
- -e "s/@ENTRY_LIMIT@/${CACHE_ENTRY_LIMIT}/"
+ -e "s/@ENTRY_LIMIT@/${CACHE_ENTRY_LIMIT}/" \
+ -e "s;@TESTDIR@;${TESTDIR};" \
+ -e "s;@DATADIR@;${DATADIR};" \
+ -e "s;@SCHEMADIR@;${SCHEMADIR};"
DATADIR=./testdata
PROGDIR=./progs
TESTDIR=./testrun
+SCHEMADIR=./schema
DBDIR1A=$TESTDIR/db.1.a
DBDIR1B=$TESTDIR/db.1.b
echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
-mkdir -p $TESTRUN $DBDIR1
+mkdir -p $TESTDIR $DBDIR1
echo "Starting slapd on TCP/IP port $PORT1..."
. $CONFFILTER $BACKEND $MONITORDB < $CONF > $CONF1
-b "$BASEDN" \
'objectclass=*' >> $SEARCHOUT 2>&1
+echo "Using ldappasswd to test a few error conditions ..."
+echo "Pass 0" >> $TESTOUT
+$LDAPPASSWD -h $LOCALHOST -p $PORT1 \
+ -w secret -a "" -s newsecret \
+ -D "cn=md5, $BASEDN" >> $TESTOUT 2>&1
+RC=$?
+if test $RC = 0 ; then
+ echo "ldappasswd unexpectantly passed ($RC)! old empty"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit $RC
+fi
+$LDAPPASSWD -h $LOCALHOST -p $PORT1 \
+ -w secret -a oldsecret -s "" \
+ -D "cn=md5, $BASEDN" >> $TESTOUT 2>&1
+RC=$?
+if test $RC = 0 ; then
+ echo "ldappasswd unexpectantly passed ($RC)! new empty"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit $RC
+fi
+$LDAPPASSWD -h $LOCALHOST -p $PORT1 \
+ -w secret -a oldsecret -s newsecret \
+ -D "cn=md5, $BASEDN" >> $TESTOUT 2>&1
+RC=$?
+if test $RC = 0 ; then
+ echo "ldappasswd unexpectantly passed ($RC)! wrong old"
+ test $KILLSERVERS != no && kill -HUP $KILLPIDS
+ exit $RC
+fi
+
echo "Using ldappasswd (PASS 1) ..."
echo "Pass 1" >> $TESTOUT
$LDAPPASSWD -h $LOCALHOST -p $PORT1 \
echo "Logging end state with ldapsearch..."
echo "" >> $TESTOUT
-echo "++ Initial search" >> $TESTOUT
+echo "++ End search" >> $TESTOUT
$LDAPSEARCH -h $LOCALHOST -p $PORT1 \
-D "$MANAGERDN" -w $PASSWD \
-b "$BASEDN" \