Commit 6d046b16 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix rewrite stuff

parent 75447016
......@@ -390,10 +390,11 @@ ldap_send_entry(
* Rewrite the dn of the result, if needed
*/
switch ( rewrite_session( li->rwinfo, "searchResult",
dn, lc->conn, &ent.e_dn ) ) {
dn, lc->conn, &ent.e_name.bv_val ) ) {
case REWRITE_REGEXEC_OK:
if ( ent.e_dn == NULL ) {
ent.e_dn = dn;
if ( ent.e_name.bv_val == NULL ) {
ent.e_name.bv_val = dn;
} else {
#ifdef NEW_LOGGING
LDAP_LOG(( "backend", LDAP_LEVEL_DETAIL1,
......@@ -406,6 +407,7 @@ ldap_send_entry(
free( dn );
dn = NULL;
}
ent.e_name.bv_len = strlen( ent.e_name.bv_val );
break;
case REWRITE_REGEXEC_ERR:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment