]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use case insensitive comparison. Closes #36
authorAlan T. DeKok <aland@freeradius.org>
Sun, 6 Dec 2009 12:54:14 +0000 (13:54 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 6 Dec 2009 12:54:44 +0000 (13:54 +0100)
src/modules/rlm_ldap/rlm_ldap.c

index 66a91a8615ce6664bdd2e1bc9196064e71b62e36..133bcb64b1ac73bfd9de95b3744305bc09ecaf71 100644 (file)
@@ -1904,7 +1904,7 @@ static int ldap_authenticate(void *instance, REQUEST * request)
                        RDEBUG("ldap auth option = %s", vp_auth_opt->vp_strvalue);
                        strncpy(seq, vp_auth_opt->vp_strvalue, vp_auth_opt->length);
                        seq[vp_auth_opt->length] = '\0';
-                       if( strcmp(seq, "<No Default>") ){
+                       if( strcasecmp(seq, "<No Default>") ){
 
                                /* Get the client IP address to check for packet validity */
                                inet_ntop(AF_INET, &request->packet->src_ipaddr, host_ipaddr, sizeof(host_ipaddr));