summaryrefslogtreecommitdiffstats
path: root/mod_authnz_pam.c
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2014-01-08 18:54:45 +0800
committerJan Pazdziora <jpazdziora@redhat.com>2014-01-09 09:28:55 +0800
commitaaafc7a63a92c0ad225c34e84d7ab1a358c12fd1 (patch)
tree1f62234cb0c335b2430428ac5ef9960c1c63b4e2 /mod_authnz_pam.c
parent22605e7336e2346c781207f286a032ce668c2e2a (diff)
downloadmod_authnz_pam-aaafc7a63a92c0ad225c34e84d7ab1a358c12fd1.tar.gz
mod_authnz_pam-aaafc7a63a92c0ad225c34e84d7ab1a358c12fd1.tar.xz
mod_authnz_pam-aaafc7a63a92c0ad225c34e84d7ab1a358c12fd1.zip
Make pam_authenticate_with_login_password available to other modules.mod_authnz_pam-0.6
Diffstat (limited to 'mod_authnz_pam.c')
-rw-r--r--mod_authnz_pam.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod_authnz_pam.c b/mod_authnz_pam.c
index 6d0a004..35bcef5 100644
--- a/mod_authnz_pam.c
+++ b/mod_authnz_pam.c
@@ -104,6 +104,10 @@ static authn_status pam_authenticate_with_login_password(request_rec * r, const
return AUTH_GRANTED;
}
+APR_DECLARE_OPTIONAL_FN(authn_status, pam_authenticate_with_login_password,
+ (request_rec * r, const char * pam_service,
+ const char * login, const char * password, int steps));
+
module AP_MODULE_DECLARE_DATA authnz_pam_module;
static authn_status pam_auth_account(request_rec * r, const char * login, const char * password) {
@@ -176,6 +180,7 @@ static void register_hooks(apr_pool_t * p) {
ap_register_provider(p, AUTHN_PROVIDER_GROUP, "PAM", "0", &authn_pam_provider);
ap_hook_auth_checker(check_user_access, NULL, NULL, APR_HOOK_MIDDLE);
#endif
+ APR_REGISTER_OPTIONAL_FN(pam_authenticate_with_login_password);
}
module AP_MODULE_DECLARE_DATA authnz_pam_module = {