mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#3334: DN in (cn:dn:=foo) should be case insensitive
This commit is contained in:
parent
a997b94f1f
commit
5368501f35
@ -603,7 +603,7 @@ put_simple_filter(
|
||||
|
||||
if( rule == NULL ) {
|
||||
/* one colon */
|
||||
if ( strcmp(dn, "dn") == 0 ) {
|
||||
if ( strcasecmp(dn, "dn") == 0 ) {
|
||||
/* must have attribute */
|
||||
if( !ldap_is_desc( str ) ) {
|
||||
goto done;
|
||||
@ -620,7 +620,7 @@ put_simple_filter(
|
||||
/* two colons */
|
||||
*rule++ = '\0';
|
||||
|
||||
if ( strcmp(dn, "dn") != 0 ) {
|
||||
if ( strcasecmp(dn, "dn") != 0 ) {
|
||||
/* must have "dn" */
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user