]> git.sur5r.net Git - openldap/commitdiff
further rework URI parsing
authorPierangelo Masarati <ando@openldap.org>
Thu, 13 Sep 2007 17:55:45 +0000 (17:55 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 13 Sep 2007 17:55:45 +0000 (17:55 +0000)
servers/slapd/back-meta/config.c

index 92947b8bec67040aa6d3e14e6a1688fba6bb45b4..7a113034e0d548462f343c0855a71243f95b32ac 100644 (file)
@@ -1292,11 +1292,10 @@ idassert-authzFrom      "dn:<rootdn>"
                                        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: <suffix> \"%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: <suffix> \"%s\" must be within the database naming context, in "
        "\"suffixMassage <suffix> <massaged suffix>\"\n",
                                fname, lineno, pvnc.bv_val );
                        free( pvnc.bv_val );
@@ -1317,12 +1316,9 @@ idassert-authzFrom       "dn:<rootdn>"
                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: <massaged suffix> \"%s\" point to this database, in "
+       "%s: line %d: warning: <massaged suffix> \"%s\" resolves to this database, in "
        "\"suffixMassage <suffix> <massaged suffix>\"\n",
                                fname, lineno, prnc.bv_val );
-                       free( pvnc.bv_val );
-                       free( nvnc.bv_val );
-                       return 1;                                               
                }
 
                /*