/*
- * $Id: auth_basic.cc,v 1.31 2004/08/30 05:12:32 robertc Exp $
+ * $Id: auth_basic.cc,v 1.32 2004/09/26 21:35:42 hno Exp $
*
* DEBUG: section 29 Authenticator
* AUTHOR: Duane Wessels
storeAppendPrintf(entry, "%s basic children %d\n", name, authenticateChildren);
storeAppendPrintf(entry, "%s basic concurrency %d\n", name, authenticateConcurrency);
storeAppendPrintf(entry, "%s basic credentialsttl %d seconds\n", name, (int) credentialsTTL);
+ storeAppendPrintf(entry, "%s basic casesensitive %s\n", name, casesensitive ? "on" : "off");
}
parse_eol(&basicAuthRealm);
} else if (strcasecmp(param_str, "credentialsttl") == 0) {
parse_time_t(&credentialsTTL);
+ } else if (strcasecmp(param_str, "casesensitive") == 0) {
+ parse_onoff(&casesensitive);
} else {
debug(28, 0) ("unrecognised basic auth scheme parameter '%s'\n", param_str);
}
if ((cleartext = strchr(username(), ':')) != NULL)
*(cleartext)++ = '\0';
+
+ if (!basicConfig.casesensitive)
+ Tolower((char *)username());
}
void
#
-# $Id: cf.data.pre,v 1.355 2004/09/25 15:46:44 hno Exp $
+# $Id: cf.data.pre,v 1.356 2004/09/26 21:35:41 hno Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
you will be vulnerable to replay attacks unless you also
use the max_user_ip ACL in an http_access rule.
+ "casesensitive" on|off
+ Specifies if usernames are case sensitive. Most user databases are
+ case insensitive allowing the same username to be spelled using both
+ lower and upper case letters, but some are case sensitive. This
+ makes a big difference for user_max_ip ACL processing and similar.
+ auth_param basic casesensitive off
+
=== Parameters for the digest scheme follow ===
"program" cmdline