From: Alan T. DeKok Date: Sun, 6 Dec 2009 12:54:14 +0000 (+0100) Subject: Use case insensitive comparison. Closes #36 X-Git-Tag: release_2_1_8~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9ef8edd849aa4668cf92002461f91a397aed658;p=thirdparty%2Ffreeradius-server.git Use case insensitive comparison. Closes #36 --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index 66a91a8615c..133bcb64b1a 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -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, "") ){ + if( strcasecmp(seq, "") ){ /* Get the client IP address to check for packet validity */ inet_ntop(AF_INET, &request->packet->src_ipaddr, host_ipaddr, sizeof(host_ipaddr));