1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-08 04:22:21 +03:00

Let each consumer of authn providers redefine the list_provider_names

callback in case they are loaded individually without mod_authn_core.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@646445 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris Darroch
2008-04-09 17:25:33 +00:00
parent 14972fdb0d
commit 8e69b9c41b
2 changed files with 13 additions and 0 deletions

View File

@@ -284,8 +284,15 @@ static int authenticate_basic_user(request_rec *r)
return OK;
}
static apr_array_header_t *authn_ap_list_provider_names(apr_pool_t *ptemp)
{
return ap_list_provider_names(ptemp, AUTHN_PROVIDER_GROUP, "0");
}
static void register_hooks(apr_pool_t *p)
{
APR_REGISTER_OPTIONAL_FN(authn_ap_list_provider_names);
ap_hook_check_authn(authenticate_basic_user, NULL, NULL, APR_HOOK_MIDDLE,
AP_AUTH_INTERNAL_PER_CONF);
}