} /* 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
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
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
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