mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
fix ITS#2923
This commit is contained in:
parent
29c8ac1245
commit
f7d070d201
2 changed files with 4 additions and 3 deletions
1
CHANGES
1
CHANGES
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue