Skip to content
Snippets Groups Projects
Commit 5c6ec10f authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

massage normalized DN when either is fine

parent 29a51624
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ ldap_back_compare(
dc.tofrom = 1;
dc.normalized = 0;
#endif
if ( ldap_back_dn_massage( &dc, &op->o_req_dn, &mdn ) ) {
if ( ldap_back_dn_massage( &dc, &op->o_req_ndn, &mdn ) ) {
send_ldap_result( op, rs );
return -1;
}
......@@ -124,7 +124,7 @@ cleanup:
}
#endif /* LDAP_BACK_PROXY_AUTHZ */
if ( mdn.bv_val != op->o_req_dn.bv_val ) {
if ( mdn.bv_val != op->o_req_ndn.bv_val ) {
free( mdn.bv_val );
}
if ( freeval ) {
......
......@@ -65,7 +65,7 @@ ldap_back_delete(
dc.tofrom = 1;
dc.normalized = 0;
#endif
if ( ldap_back_dn_massage( &dc, &op->o_req_dn, &mdn ) ) {
if ( ldap_back_dn_massage( &dc, &op->o_req_ndn, &mdn ) ) {
send_ldap_result( op, rs );
return -1;
}
......@@ -93,7 +93,7 @@ cleanup:
}
#endif /* LDAP_BACK_PROXY_AUTHZ */
if ( mdn.bv_val != op->o_req_dn.bv_val ) {
if ( mdn.bv_val != op->o_req_ndn.bv_val ) {
free( mdn.bv_val );
}
......
......@@ -68,7 +68,7 @@ ldap_back_modify(
dc.tofrom = 1;
dc.normalized = 0;
#endif
if ( ldap_back_dn_massage( &dc, &op->o_req_dn, &mdn ) ) {
if ( ldap_back_dn_massage( &dc, &op->o_req_ndn, &mdn ) ) {
send_ldap_result( op, rs );
return -1;
}
......@@ -182,7 +182,7 @@ cleanup:;
}
#endif /* LDAP_BACK_PROXY_AUTHZ */
if ( mdn.bv_val != op->o_req_dn.bv_val ) {
if ( mdn.bv_val != op->o_req_ndn.bv_val ) {
free( mdn.bv_val );
}
for (i=0; modv[i]; i++) {
......
......@@ -83,7 +83,7 @@ ldap_back_modrdn(
#ifdef ENABLE_REWRITE
dc.ctx = "modrDn";
#endif
if ( ldap_back_dn_massage( &dc, &op->o_req_dn, &mdn ) ) {
if ( ldap_back_dn_massage( &dc, &op->o_req_ndn, &mdn ) ) {
send_ldap_result( op, rs );
return -1;
}
......@@ -113,7 +113,7 @@ cleanup:
}
#endif /* LDAP_BACK_PROXY_AUTHZ */
if ( mdn.bv_val != op->o_req_dn.bv_val ) {
if ( mdn.bv_val != op->o_req_ndn.bv_val ) {
free( mdn.bv_val );
}
if ( mnewSuperior.bv_val != NULL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment