diff options
-rw-r--r-- | mod_authnz_pam.c | 5 | ||||
-rw-r--r-- | mod_authnz_pam.spec | 6 |
2 files changed, 10 insertions, 1 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 = { diff --git a/mod_authnz_pam.spec b/mod_authnz_pam.spec index a05696d..080a4f4 100644 --- a/mod_authnz_pam.spec +++ b/mod_authnz_pam.spec @@ -6,7 +6,7 @@ Summary: PAM authorization checker and PAM Basic Authentication provider Name: mod_authnz_pam -Version: 0.5 +Version: 0.6 Release: 1%{?dist} License: ASL 2.0 Group: System Environment/Daemons @@ -57,5 +57,9 @@ install -Dp -m 0644 authnz_pam.conf $RPM_BUILD_ROOT%{_httpd_confdir}/authnz_pam. %{_httpd_moddir}/*.so %changelog +* Wed Jan 08 2014 Jan Pazdziora - 0.6-1 +- Make pam_authenticate_with_login_password available for other modules. +- Reformat documentation to make the Basic Auth usage less prominent. + * Mon Jan 06 2014 Jan Pazdziora - 0.5-1 - Initial release. |