]> git.sur5r.net Git - openldap/commitdiff
Always pass normalized DN to select_backend() when performing operationals
authorLuke Howard <lukeh@openldap.org>
Sun, 2 Feb 2003 10:02:25 +0000 (10:02 +0000)
committerLuke Howard <lukeh@openldap.org>
Sun, 2 Feb 2003 10:02:25 +0000 (10:02 +0000)
internal to SLAPI

servers/slapd/slapi/slapi_ops.c

index b8b710847667ee0e3782664461432bafa7cb5d8d..86477da646c363e91badb950ac12230a5217cd68 100644 (file)
@@ -400,7 +400,7 @@ LDAPModToEntry(
                } /* for each LDAPMod */\r
        }\r
 \r
-       be = select_backend(&dn, 0, 0);\r
+       be = select_backend(&pEntry->e_nname, 0, 0);\r
        if ( be == NULL ) {\r
                rc =  LDAP_PARTIAL_RESULTS;\r
                goto cleanup;\r
@@ -516,7 +516,7 @@ slapi_delete_internal(
                manageDsaIt = 1; \r
        }\r
 \r
-       be = select_backend( &dn, manageDsaIt, 0 );\r
+       be = select_backend( &ndn, manageDsaIt, 0 );\r
        if ( be == NULL ) {\r
                rc =  LDAP_PARTIAL_RESULTS;\r
                goto cleanup;\r
@@ -801,7 +801,7 @@ slapi_modrdn_internal(
                manageDsaIt = 1;\r
        }\r
 \r
-       be = select_backend( &dn, manageDsaIt, 0 );\r
+       be = select_backend( &ndn, manageDsaIt, 0 );\r
        if ( be == NULL ) {\r
                rc =  LDAP_PARTIAL_RESULTS;\r
                goto cleanup;\r
@@ -937,7 +937,7 @@ slapi_modify_internal(
                manageDsaIt = 1;\r
        }\r
 \r
-       be = select_backend( &dn, manageDsaIt, 0 );\r
+       be = select_backend( &ndn, manageDsaIt, 0 );\r
        if ( be == NULL ) {\r
                rc =  LDAP_PARTIAL_RESULTS;\r
                goto cleanup;\r