summaryrefslogtreecommitdiffstats
path: root/modules/aaa/mod_authn_socache.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-12-04 17:05:28 +0100
committerStefan Fritsch <sf@apache.org>2011-12-04 17:05:28 +0100
commit9b79361d79c3c6685522829719fea3fef31845b5 (patch)
treef7cf0a205c076260507e6abd695e8bf95116f981 /modules/aaa/mod_authn_socache.c
parentPartially revert r1203859: use a fixed string (diff)
downloadapache2-9b79361d79c3c6685522829719fea3fef31845b5.tar.xz
apache2-9b79361d79c3c6685522829719fea3fef31845b5.zip
More pointers to mod_socache*
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1210130 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/aaa/mod_authn_socache.c')
-rw-r--r--modules/aaa/mod_authn_socache.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/aaa/mod_authn_socache.c b/modules/aaa/mod_authn_socache.c
index 1188a0b9ac..cccd076b02 100644
--- a/modules/aaa/mod_authn_socache.c
+++ b/modules/aaa/mod_authn_socache.c
@@ -95,7 +95,8 @@ static int authn_cache_post_config(apr_pool_t *pconf, apr_pool_t *plog,
if (socache_provider == NULL) {
ap_log_perror(APLOG_MARK, APLOG_CRIT, 0, plog, APLOGNO(01674)
"Please select a socache provider with AuthnCacheSOCache "
- "(no default found on this platform)");
+ "(no default found on this platform). Maybe you need to "
+ "load mod_socache_shmcb or another socache module first");
return 500; /* An HTTP status would be a misnomer! */
}
@@ -143,10 +144,15 @@ static const char *authn_cache_socache(cmd_parms *cmd, void *CFG,
const char *arg)
{
const char *errmsg = ap_check_cmd_context(cmd, GLOBAL_ONLY);
+ if (errmsg)
+ return errmsg;
socache_provider = ap_lookup_provider(AP_SOCACHE_PROVIDER_GROUP, arg,
AP_SOCACHE_PROVIDER_VERSION);
if (socache_provider == NULL) {
- errmsg = "Unknown socache provider";
+ errmsg = apr_psprintf(cmd->pool,
+ "Unknown socache provider '%s'. Maybe you need "
+ "to load the appropriate socache module "
+ "(mod_socache_%s?)", arg, arg);
}
return errmsg;
}