ITS#3334: DN in (cn:dn:=foo) should be case insensitive

This commit is contained in:
Kurt Zeilenga 2004-09-18 00:09:37 +00:00
parent a997b94f1f
commit 5368501f35

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