]> git.sur5r.net Git - openldap/commitdiff
ITS#3334: DN in (cn:dn:=foo) should be case insensitive
authorKurt Zeilenga <kurt@openldap.org>
Sat, 18 Sep 2004 00:09:37 +0000 (00:09 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 18 Sep 2004 00:09:37 +0000 (00:09 +0000)
libraries/libldap/filter.c

index c4422526cd83626af74e524c5008729eb772b9cc..ed0474ac757fbba68935bc97c53dfa6b470152f3 100644 (file)
@@ -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;
                                        }