Skip to content
Closed
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions mod_authnz_external/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ APXS=apxs
TAR= README INSTALL INSTALL.HARDCODE CHANGES CONTRIBUTORS AUTHENTICATORS UPGRADE TODO \
mod_authnz_external.c test/* Makefile

version = $(error version is not set)

.DEFAULT_GOAL:= build
.PHONY: install build clean

Expand All @@ -24,3 +26,12 @@ clean:

mae.tar: $(TAR)
tar cvf mae.tar $(TAR)

debian-package-dependencies:
sudo apt install build-essential fakeroot devscripts apxs apache2-dev
Comment on lines +30 to +31
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may not be appropriate but was included in case the Debian packaging dependencies are not well-known by the developers of this project.


debian-package-version:
dch -v $(version)

debian-package:
debuild --rootcmd=sudo --no-tgz-check -us -uc
Comment on lines +36 to +37
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally elevating with sudo should be replaced with instructions for debian/rules so that it builds to the appropriate directory.

17 changes: 17 additions & 0 deletions mod_authnz_external/debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
This package can be used with pwauth to provide secure auth against PAM without
exposing /etc/shadow file.

To use it on Debian, make sure to also pwauth package then add these lines to
relevant Location or Directory section:
AuthBasicProvider external
AuthExternal pwauth

And to the related virtual host section:
AddExternalAuth pwauth /usr/sbin/pwauth
SetExternalAuthMethod pwauth pipe

See these links for more info:
README file
http://blog.innerewut.de/2007/6/26/apache-2-2-authentication-with-mod_authnz_external
http://www.unixpapa.com/mod_auth_external

25 changes: 25 additions & 0 deletions mod_authnz_external/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
libapache2-mod-authnz-external (3.3.2-2) unstable; urgency=medium
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will want to add another entry before submitting package (added convenient make debian-package-version version=x.x.x for this purpose).


* QA upload.
* Make package reproducible by stop embedding the build path in
compiled files.
* Bump Standards-Version to 4.6.1.

-- Philip Rinn <[email protected]> Fri, 11 Nov 2022 22:49:32 +0100

libapache2-mod-authnz-external (3.3.2-1) unstable; urgency=medium

* QA upload.
* Set maintainer to Debian QA Group <[email protected]>. (see: #673655)

-- Marcos Talau <[email protected]> Wed, 09 Nov 2022 14:11:13 -0300

libapache2-mod-authnz-external (3.3.2-0.2) unstable; urgency=medium

* Non-maintainer upload.
* Use "dh". (Closes: #999218)

-- Christoph Berg <[email protected]> Fri, 07 Jan 2022 15:02:32 +0100

# Older entries have been removed from this changelog.
# To read the complete changelog use `apt changelog libapache2-mod-authnz-external`.
30 changes: 30 additions & 0 deletions mod_authnz_external/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Source: libapache2-mod-authnz-external
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be reviewed for correctness. Especially for the maintainers.

Maintainer: Josef Liška <[email protected]>
Section: web
Priority: optional
Standards-Version: 4.7.0
Build-Depends: debhelper-compat (= 13), libc6 (>= 2.4), apache2-api-20120211, apache2-bin (>= 2.4.16), apache2-dev, dh-apache2
Recommends: pwauth
Homepage: https://github.com/phokz/mod-auth-external

Package: libapache2-mod-authnz-external
Architecture: amd64
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian QA Group <[email protected]>
Installed-Size: 59
Depends: ${shlibs:Depends}, ${misc:Depends}
Recommends: pwauth
Section: web
Priority: optional
Homepage: https://github.com/phokz/mod-auth-external
Description: authenticate Apache against external authentication services
Mod_Authnz_External can be used to quickly construct secure, reliable
authentication systems. It can also be mis-used to quickly open gaping
holes in your security. Read the documentation, and use with extreme
caution.
.
Notably, this module can be used to securely authenticate against PAM
(without exposing /etc/shadow file), using, for example, pwauth
authenticator.
.
This Package includes the mod-authnz-external Module for Apache Version 2.x
58 changes: 58 additions & 0 deletions mod_authnz_external/debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
This package was debianized for Ubuntu by Chuck Short <[email protected]> on
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This copyright should be reviewed to ensure that it is current.

Tue, 08 Jan 2008 10:20:36 -0500.
This package was debianized for Debian by Hai Zaar <[email protected]> on
Tue, 31 Mar 2009 18:32:20 +0300 based on the work mentioned above.

It was downloaded from http://code.google.com/p/mod-auth-external
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an outdated URL.

Suggested change
It was downloaded from http://code.google.com/p/mod-auth-external
It was downloaded from https://github.com/phokz/mod-auth-external


Upstream Authors:

Nathan Neulinger <[email protected]>
Tyler Allison <[email protected]>
Dave Woolaway <[email protected]>
Sven Koch <[email protected]>
Jan Wolter <[email protected]>


Copyright:
Copyright (c) 1995 The Apache Group. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.

3. All advertising materials mentioning features or use of this
software must display the following acknowledgment:
"This product includes software developed by the Apache Group
for use in the Apache HTTP server project (http://www.apache.org/)."

4. The names "Apache Server" and "Apache Group" must not be used to
endorse or promote products derived from this software without
prior written permission.

5. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes software developed by the Apache Group
for use in the Apache HTTP server project (http://www.apache.org/)."

THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR
IT'S CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.

2 changes: 2 additions & 0 deletions mod_authnz_external/debian/docs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AUTHENTICATORS
README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod /usr/lib/apache2/modules/mod_authnz_external.so
mod /etc/apache2/mods-available/authnz_external.load
3 changes: 3 additions & 0 deletions mod_authnz_external/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/make -f
%:
dh $@ --with apache2
1 change: 1 addition & 0 deletions mod_authnz_external/debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)