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; }