summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--mod_authnz_pam.c5
-rw-r--r--mod_authnz_pam.spec6
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.