|
|
45957d |
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
|
|
|
45957d |
%{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}}
|
|
|
45957d |
%{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_sysconfdir}/httpd/conf.d}}
|
|
|
45957d |
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
|
|
|
45957d |
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}
|
|
|
45957d |
%{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/httpd/modules}}
|
|
|
45957d |
|
|
|
45957d |
Summary: Apache module to intercept login form submission and run PAM authentication
|
|
|
45957d |
Name: mod_intercept_form_submit
|
|
|
45957d |
Version: 1.1.0
|
|
|
45957d |
Release: 1%{?dist}
|
|
|
45957d |
License: ASL 2.0
|
|
|
45957d |
Group: System Environment/Daemons
|
|
|
45957d |
URL: http://www.adelton.com/apache/mod_intercept_form_submit/
|
|
|
45957d |
Source0: http://www.adelton.com/apache/mod_intercept_form_submit/%{name}-%{version}.tar.gz
|
|
|
45957d |
BuildRequires: httpd-devel
|
|
|
45957d |
BuildRequires: pkgconfig
|
|
|
45957d |
Requires: httpd-mmn = %{_httpd_mmn}
|
|
|
45957d |
Requires: mod_authnz_pam >= 0.7
|
|
|
45957d |
|
|
|
45957d |
# Suppres auto-provides for module DSO per
|
|
|
45957d |
# https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Summary
|
|
|
45957d |
%{?filter_provides_in: %filter_provides_in %{_libdir}/httpd/modules/.*\.so$}
|
|
|
45957d |
%{?filter_setup}
|
|
|
45957d |
|
|
|
45957d |
%description
|
|
|
45957d |
mod_intercept_form_submit can intercept submission of application login
|
|
|
45957d |
forms. It retrieves the login and password information from the POST
|
|
|
45957d |
HTTP request, runs PAM authentication with those credentials, and sets
|
|
|
45957d |
the REMOTE_USER environment variable if the authentication passes.
|
|
|
45957d |
|
|
|
45957d |
%prep
|
|
|
45957d |
%setup -q -n %{name}-%{version}
|
|
|
45957d |
|
|
|
45957d |
%build
|
|
|
45957d |
%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99" mod_intercept_form_submit.c
|
|
|
45957d |
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
|
|
|
45957d |
echo > intercept_form_submit.confx
|
|
|
45957d |
echo "# Load the module in %{_httpd_modconfdir}/55-intercept_form_submit.conf" >> intercept_form_submit.confx
|
|
|
45957d |
cat intercept_form_submit.conf >> intercept_form_submit.confx
|
|
|
45957d |
%else
|
|
|
45957d |
cat intercept_form_submit.module > intercept_form_submit.confx
|
|
|
45957d |
cat intercept_form_submit.conf >> intercept_form_submit.confx
|
|
|
45957d |
%endif
|
|
|
45957d |
|
|
|
45957d |
%install
|
|
|
45957d |
rm -rf $RPM_BUILD_ROOT
|
|
|
45957d |
install -Dm 755 .libs/mod_intercept_form_submit.so $RPM_BUILD_ROOT%{_httpd_moddir}/mod_intercept_form_submit.so
|
|
|
45957d |
|
|
|
45957d |
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
|
|
|
45957d |
# httpd >= 2.4.x
|
|
|
45957d |
install -Dp -m 0644 intercept_form_submit.module $RPM_BUILD_ROOT%{_httpd_modconfdir}/55-intercept_form_submit.conf
|
|
|
45957d |
%endif
|
|
|
45957d |
install -Dp -m 0644 intercept_form_submit.confx $RPM_BUILD_ROOT%{_httpd_confdir}/intercept_form_submit.conf
|
|
|
45957d |
|
|
|
45957d |
%files
|
|
|
45957d |
%doc README LICENSE docs/*
|
|
|
45957d |
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
|
|
|
45957d |
%config(noreplace) %{_httpd_modconfdir}/55-intercept_form_submit.conf
|
|
|
45957d |
%endif
|
|
|
45957d |
%config(noreplace) %{_httpd_confdir}/intercept_form_submit.conf
|
|
|
45957d |
%{_httpd_moddir}/*.so
|
|
|
45957d |
|
|
|
45957d |
%changelog
|
|
|
45957d |
* Mon Mar 13 2017 Tibor Dudlák <tdudlak@redhat.com> - 1.1.0-1
|
|
|
45957d |
- Rebase to upstream release 1.1.0.
|
|
|
45957d |
|
|
|
45957d |
* Mon Jun 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.8-1
|
|
|
45957d |
- 1109923 - Fix module loading/configuration for Apache 2.4.
|
|
|
45957d |
- Document the runtime dependency on pam_authenticate_with_login_password.
|
|
|
45957d |
- Comment/code cleanup.
|
|
|
45957d |
|
|
|
45957d |
* Tue May 13 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.7-1
|
|
|
45957d |
- No longer call lookup_identity_hook explicitly, hook order does
|
|
|
45957d |
the same.
|
|
|
45957d |
- Silence compile warnings by specifying C99.
|
|
|
45957d |
|
|
|
45957d |
* Tue Apr 15 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.6-1
|
|
|
45957d |
- Add support for InterceptFormLoginRealms.
|
|
|
45957d |
|
|
|
45957d |
* Thu Jan 30 2014 Jan Pazdziora <jpazdziora@redhat.com> - 0.9.5-1
|
|
|
45957d |
- 1058809 - .spec changes for Fedora package review.
|
|
|
45957d |
|