From c8421d04681b5b7f3fa59b8dbb78260b9aeb3339 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:28:57 +0100 Subject: [PATCH] update to 2.0.1.1.1 [release 2.0.1.1.1-1mamba;Fri Feb 05 2010] --- README.md | 3 ++ apache-mod_auth_pam-httpd | 9 +++++ apache-mod_auth_pam.spec | 73 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 apache-mod_auth_pam-httpd create mode 100644 apache-mod_auth_pam.spec diff --git a/README.md b/README.md index 6c981f6..009f1d7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # apache-mod_auth_pam +The PAM authentication module implements Basic authentication on top of the Pluggable Authentication Module library. +Thereby it supports standard unix passwd, shadow, NIS, SMB auth and radius authentication transparently and easily interchangeable, wherever the HTTP protocol allows it. + diff --git a/apache-mod_auth_pam-httpd b/apache-mod_auth_pam-httpd new file mode 100644 index 0000000..32234fa --- /dev/null +++ b/apache-mod_auth_pam-httpd @@ -0,0 +1,9 @@ +#%PAM-1.0 +auth required pam_group.so +auth required pam_stack.so service=system-auth +auth required pam_nologin.so +account required pam_stack.so service=system-auth +password required pam_stack.so service=system-auth +session required pam_stack.so service=system-auth +session required pam_limits.so + diff --git a/apache-mod_auth_pam.spec b/apache-mod_auth_pam.spec new file mode 100644 index 0000000..ebade1f --- /dev/null +++ b/apache-mod_auth_pam.spec @@ -0,0 +1,73 @@ +%define majver %(echo %version | cut -d. -f1-2) +%define minver %(echo %version | cut -d. -f3-5) + +Name: apache-mod_auth_pam +Version: 2.0.1.1.1 +Release: 1mamba +Summary: An apache module that implements Basic authentication on top of PAM +Group: System/Servers +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://pam.sourceforge.net/mod_auth_pam +Source: http://pam.sourceforge.net/mod_auth_pam/dist/mod_auth_pam-%{majver}-%{minver}.tar.gz +Source1: %{name}-httpd +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: libapr1-devel >= 1.2.2, pam-devel >= 0.81 +Requires: apache >= 2.2.0, pam >= 0.81 + +%description +The PAM authentication module implements Basic authentication on top of the Pluggable Authentication Module library. +Thereby it supports standard unix passwd, shadow, NIS, SMB auth and radius authentication transparently and easily interchangeable, wherever the HTTP protocol allows it. + +%prep +%setup -q -n mod_auth_pam + +%build +%make APXS=%{_sbindir}/apxs + + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +install -D -m 0644 .libs/mod_auth_pam.so %{buildroot}%{_libdir}/apache/mod_auth_pam.so +install -D -m 0644 .libs/mod_auth_sys_group.so %{buildroot}%{_libdir}/apache/mod_auth_sys_group.so +install -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/httpd + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%post +if [ $1 -ge 1 ]; then + apxs -e -a -n auth_pam %{_libdir}/apache/mod_auth_pam.so > /dev/null + apxs -e -a -n auth_sys_group %{_libdir}/apache/mod_auth_sys_group.so > /dev/null + %{_initrddir}/httpd condrestart +fi +exit 0 + +%preun +if [ $1 -eq 0 ]; then +#erase + apxs -e -A -n auth_pam %{_libdir}/apache/mod_auth_pam.so > /dev/null + apxs -e -A -n auth_sys_group %{_libdir}/apache/mod_auth_sys_group.so > /dev/null + + %{_initrddir}/httpd condrestart +fi +exit 0 + +%files +%defattr(-,root,root) +%{_sysconfdir}/pam.d/httpd +%{_libdir}/apache/mod_auth_pam.so +%{_libdir}/apache/mod_auth_sys_group.so +%doc README + +%changelog +* Fri Feb 05 2010 Silvan Calarco 2.0.1.1.1-1mamba +- update to 2.0.1.1.1 + +* Mon Jul 14 2008 Silvan Calarco 1.1.1-2mamba +- specfile updated + +* Mon May 15 2006 Silvan Calarco 1.1.1-1qilnx +- package created by autospec