From: Luke Howard Date: Sun, 2 Feb 2003 10:02:25 +0000 (+0000) Subject: Always pass normalized DN to select_backend() when performing operationals X-Git-Tag: NO_SLAP_OP_BLOCKS~450 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=becd81ebd91a30e245d5ce37fb34b33e0e668ff6;p=openldap Always pass normalized DN to select_backend() when performing operationals internal to SLAPI --- diff --git a/servers/slapd/slapi/slapi_ops.c b/servers/slapd/slapi/slapi_ops.c index b8b7108476..86477da646 100644 --- a/servers/slapd/slapi/slapi_ops.c +++ b/servers/slapd/slapi/slapi_ops.c @@ -400,7 +400,7 @@ LDAPModToEntry( } /* for each LDAPMod */ } - be = select_backend(&dn, 0, 0); + be = select_backend(&pEntry->e_nname, 0, 0); if ( be == NULL ) { rc = LDAP_PARTIAL_RESULTS; goto cleanup; @@ -516,7 +516,7 @@ slapi_delete_internal( manageDsaIt = 1; } - be = select_backend( &dn, manageDsaIt, 0 ); + be = select_backend( &ndn, manageDsaIt, 0 ); if ( be == NULL ) { rc = LDAP_PARTIAL_RESULTS; goto cleanup; @@ -801,7 +801,7 @@ slapi_modrdn_internal( manageDsaIt = 1; } - be = select_backend( &dn, manageDsaIt, 0 ); + be = select_backend( &ndn, manageDsaIt, 0 ); if ( be == NULL ) { rc = LDAP_PARTIAL_RESULTS; goto cleanup; @@ -937,7 +937,7 @@ slapi_modify_internal( manageDsaIt = 1; } - be = select_backend( &dn, manageDsaIt, 0 ); + be = select_backend( &ndn, manageDsaIt, 0 ); if ( be == NULL ) { rc = LDAP_PARTIAL_RESULTS; goto cleanup;