From 5368501f35f55f17c2e82d24f86d9a21b6bf8efd Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sat, 18 Sep 2004 00:09:37 +0000 Subject: [PATCH] ITS#3334: DN in (cn:dn:=foo) should be case insensitive --- libraries/libldap/filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5