From: Pierangelo Masarati Date: Thu, 13 Sep 2007 17:55:45 +0000 (+0000) Subject: further rework URI parsing X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~656 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af9e17379b34370f933f503220665f4fba3250f8;p=openldap further rework URI parsing --- diff --git a/servers/slapd/back-meta/config.c b/servers/slapd/back-meta/config.c index 92947b8bec..7a113034e0 100644 --- a/servers/slapd/back-meta/config.c +++ b/servers/slapd/back-meta/config.c @@ -1292,11 +1292,10 @@ idassert-authzFrom "dn:" fname, lineno, argv[ 1 ] ); return 1; } - - tmp_bd = select_backend( &nvnc, 0 ); - if ( tmp_bd != NULL && tmp_bd->be_private != be->be_private ) { - Debug( LDAP_DEBUG_ANY, - "%s: line %d: \"%s\" already in use by another database, in " + + if (!dnIsSuffix( &nvnc, &be->be_nsuffix[ 0 ] ) ) { + Debug( LDAP_DEBUG_ANY, "%s: line %d: " + "%s: line %d: \"%s\" must be within the database naming context, in " "\"suffixMassage \"\n", fname, lineno, pvnc.bv_val ); free( pvnc.bv_val ); @@ -1317,12 +1316,9 @@ idassert-authzFrom "dn:" tmp_bd = select_backend( &nrnc, 0 ); if ( tmp_bd != NULL && tmp_bd->be_private == be->be_private ) { Debug( LDAP_DEBUG_ANY, - "%s: line %d: warning: \"%s\" point to this database, in " + "%s: line %d: warning: \"%s\" resolves to this database, in " "\"suffixMassage \"\n", fname, lineno, prnc.bv_val ); - free( pvnc.bv_val ); - free( nvnc.bv_val ); - return 1; } /*