From: Kurt Zeilenga Date: Sat, 18 Sep 2004 00:09:37 +0000 (+0000) Subject: ITS#3334: DN in (cn:dn:=foo) should be case insensitive X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~527 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5368501f35f55f17c2e82d24f86d9a21b6bf8efd;p=openldap ITS#3334: DN in (cn:dn:=foo) should be case insensitive --- diff --git a/libraries/libldap/filter.c b/libraries/libldap/filter.c index c4422526cd..ed0474ac75 100644 --- a/libraries/libldap/filter.c +++ b/libraries/libldap/filter.c @@ -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; }