Commit f7d070d2 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix ITS#2923

parent 29c8ac12
......@@ -7,6 +7,7 @@ OpenLDAP 2.1.26 Engineering
Updated lutil_passwd (ITS#2835, ITS#2869)
Updated librewrite (ITS#2787)
Updated slurpd (misc bug fixes)
Fixed back-ldap suffix massage when --enable-rewrite=no (ITS#2923)
OpenLDAP 2.1.25 Engineering
Build Environment
......
......@@ -57,9 +57,9 @@ ldap_back_dn_massage(
assert( res );
res->bv_val = NULL;
res->bv_len = 0;
if ( dn == NULL ) {
res->bv_val = NULL;
res->bv_len = 0;
return;
}
if ( li == NULL || li->suffix_massage == NULL ) {
......@@ -93,7 +93,7 @@ ldap_back_dn_massage(
/* XXX or an escaped separator... oh well */
}
if ( !strcmp( li->suffix_massage[i+src].bv_val, &dn->bv_val[diff] ) ) {
if ( !strcasecmp( li->suffix_massage[i+src].bv_val, &dn->bv_val[diff] ) ) {
res->bv_len = diff + li->suffix_massage[i+dst].bv_len;
res->bv_val = ch_malloc( res->bv_len + 1 );
strncpy( res->bv_val, dn->bv_val, diff );
......
Supports Markdown
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