debian/0000755000000000000000000000000012157103077007171 5ustar debian/doc-base0000644000000000000000000000115511525335601010571 0ustar Document: libapache2-mod-authn-sasl Title: Apache Module mod_authn_sasl 1.2 documentation Author: Heiko Hund Abstract: This documentation will give an overview of how to configure this Apache module and the different configurable directives . This documentation assumes that you have a good understanding of how SASL and Apache works. If you don't have a good understanding of them, it is recommended you obtain the official Apache documentation as an start. Section: Programming Format: HTML Index: /usr/share/doc/libapache2-mod-authn-sasl/html/index.html Files: /usr/share/doc/libapache2-mod-authn-sasl/html/* debian/watch0000644000000000000000000000010511522753631010220 0ustar version=3 http://sf.net/mod-authn-sasl/mod_authn_sasl-(.*)\.tar\.bz2 debian/rules0000755000000000000000000000407612157077137010267 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) else CROSS= --build $(DEB_BUILD_GNU_TYPE) endif config.status: configure dh_testdir ifneq "$(wildcard /usr/share/misc/config.sub)" "" cp -f /usr/share/misc/config.sub config.sub endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif ./configure $(CROSS) --prefix=/usr --docdir=\$${prefix}/share/doc/libapache2-mod-authn-sasl/html/ \ --htmldir=\$${prefix}/share/doc/libapache2-mod-authn-sasl/html/ \ CFLAGS="$(CFLAGS)" LIBS="-lapr-1" LDFLAGS="$(LDFLAGS)" build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config.status dh_testdir $(MAKE) touch $@ clean: dh_testdir dh_testroot rm -f build-stamp install-stamp [ ! -f Makefile ] || $(MAKE) distclean rm -f config.sub config.guess dh_clean install: install-stamp install-stamp: build-stamp dh_testdir dh_testroot dh_prep dh_installdirs usr/lib/apache2/modules etc/apache2/mods-available \ usr/share/doc/libapache2-mod-authn-sasl/html usr/share/doc/libapache2-mod-authn-sasl/html/css \ usr/share/doc/libapache2-mod-authn-sasl/html/images $(MAKE) DESTDIR=$(CURDIR)/debian/libapache2-mod-authn-sasl install install -m 644 -c debian/authn_sasl.load \ $(CURDIR)/debian/libapache2-mod-authn-sasl/etc/apache2/mods-available rm $(CURDIR)/debian/libapache2-mod-authn-sasl/usr/lib/apache2/modules/mod_authn_sasl.la touch $@ binary-indep: install binary-arch: install dh_testdir dh_testroot dh_installchangelogs Changelog dh_install dh_installdocs dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/install0000644000000000000000000000110511525336370010561 0ustar doc/css/manual-loose-100pc.css usr/share/doc/libapache2-mod-authn-sasl/html/css doc/css/manual-print.css usr/share/doc/libapache2-mod-authn-sasl/html/css doc/css/manual.css usr/share/doc/libapache2-mod-authn-sasl/html/css doc/images/down.png usr/share/doc/libapache2-mod-authn-sasl/html/images doc/images/favicon.ico usr/share/doc/libapache2-mod-authn-sasl/html/images doc/images/feather.png usr/share/doc/libapache2-mod-authn-sasl/html/images doc/images/up.png usr/share/doc/libapache2-mod-authn-sasl/html/images doc/index.html usr/share/doc/libapache2-mod-authn-sasl/html debian/changelog0000644000000000000000000000310112157077425011045 0ustar libapache2-mod-authn-sasl (1.2-2) unstable; urgency=low * Preparing Apache2.4 transition (Closes: #666840). - debian/control: MPM behaviour is now modularized, switch to apache2-dev. - debian/control: tied to API-specific httpd version now. * Several package updates - debian/rules: Improve building targets. - debian/rules: Switch to dpkg-dev for handling gcc hardening flags. - debian/control: Fix to httpd section, instead of web. - debian/control: Bump up standard version 3.9.4. - debian/copyright: Switch to machine-readable file format. -- Ulises Vitulli Sat, 15 Jun 2013 11:07:49 -0300 libapache2-mod-authn-sasl (1.2-1) unstable; urgency=low * New upstream release. * Use hardening-include to handle gcc Hardening features. * Stick to dpkg-source 3.0 (quilt) format. * Use standards version 3.9.1 (no changess needed). -- Ulises Vitulli Fri, 04 Feb 2011 07:40:39 -0300 libapache2-mod-authn-sasl (1.1-1) unstable; urgency=low [ Rene Mayorga ] * Update my email address * debian/copyrigt: Update copyright years [ Ulises Vitulli ] * New upstream release. * Use GPL-2 instead GPL on debian/copyright * Use standards version 3.8.3 (no changess needed) -- Ulises Vitulli Tue, 22 Sep 2009 09:12:38 -0300 libapache2-mod-authn-sasl (1.0.2-1) unstable; urgency=low [ Rene Mayorga ] * Initial release (Closes: #499186) [ Ulises Vitulli ] * Added .load, documentation and example. -- Ulises Vitulli Tue, 25 Nov 2008 21:27:32 -0200 debian/copyright0000644000000000000000000000277112157074025011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: Heiko Hund Source: http://sourceforge.net/projects/mod-authn-sasl/ Upstream-Name: mod-authn-sasl Files: * Copyright: 2009 Heiko Hund License: Apache-2.0 Files: aclocal.m4 Copyright: 1994-2007 Free Software Foundation, Inc. License: Other This file is free software; the Free Software Foundation gives unlimited permission to copy and/or distribute it, with or without modifications, as long as this notice is preserve Files: compile Copyright: 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. License: GPL-2+ Files: manual.css manual-loose-100pc.css manual-print.css Copyright: 2008 The Apache Software Foundation License: Apache-2.0 Files: debian/* Copyright: 2011, Rene Mayorga 2011, Ulises Vitulli License: GPL-2+ License: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at '/usr/share/common-licenses/Apache-2.0' License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. on any Debian system you can find a copy of the newest GNU GPL at '/usr/share/common-licenses/GPL-2' debian/README.Debian0000644000000000000000000000503211522753631011234 0ustar SASL authentication backend for Apache 2.2 in Debian ---------------------------------------------------- IMPORTANT!!! ============ SASL Authentication Daemon runs with root privileges, required by certain authentication mechanisms. As a consequence, anyone that requires to talk to SASL Authentication Daemon must be part of SASL user group (recommended) or be run as root (highly discouraged)*. Highly recommended doing: root acheron[~]# adduser www-data sasl Adding user `www-data' to group `sasl' ... Adding user www-data to group sasl Done. For more information related to this matter, please take a look into SASL Authentication Daemon readme, on Debian systems you'll find at: /usr/share/doc/sasl2-bin/README.Debian.gz. ------------------------------------------------------------------------------- (*) Note that, except the case you have a very custom set up on your webserver, changing Apache running user from 'www-data' (by default, or respective) to root is a VERY BAD idea, as it may provoke a serious security risk for your system. ------------------------------------------------------------------------------- CONFIGURING APACHE MODULE AND CONFIGURATION EXAMPLE =================================================== As this software is carried to you as an Apache module, you have to add it into Apache modules list. On Debian systems, this is easily done by a2enmod script: root acheron[~]# a2enmod authn_sasl Enabling module authn_sasl. Run '/etc/init.d/apache2 restart' to activate new configuration! root acheron[~]# invoke-rc.d apache2 reload Reloading web server config: apache2 Here is an example of an Apache AuthBasic restricted dir using SASL backend: Options FollowSymLinks AllowOverride None Order deny,allow Allow from localhost home.christy.net Deny from all AuthType Basic AuthName "Restricted to Staff users" AuthBasicProvider sasl AuthBasicAuthoritative On AuthSaslPwcheckMethod saslauthd Require user christy bob dominic Please, take into account that there is a very useful tool called testsaslauthd (provided by sasl2-bin package on Debian systems), to check if saslauthd (the SASL auth daemon) does indeed authenticate a user using default mechanism. Turned to be very useful when debuging for a possible auth problem. root acheron[~]# testsaslauthd -u christy -p mysecretpassword 0: OK "Success." -- Ulises Vitulli Sun, 30 Nov 2008 03:17:45 -0200 debian/control0000644000000000000000000000203212157103077010571 0ustar Source: libapache2-mod-authn-sasl Section: httpd Priority: extra Maintainer: Ulises Vitulli Uploaders: Rene Mayorga Build-Depends: dpkg-dev (>= 1.16.1~), debhelper (>= 7), autotools-dev, apache2-dev, libsasl2-dev, libtool, apache2-bin Standards-Version: 3.9.4 Homepage: http://mod-authn-sasl.sourceforge.net/ Package: libapache2-mod-authn-sasl Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, sasl2-bin, apache2-api-20120211 Description: SASL authentication backend provider for Apache This module provides the mod_auth_basic authentication front-end a way to authenticate users by checking credentials via the Cyrus SASL library. . Username and password are checked against the SASL password checking backends, kerberos5, pam, rimap, shadow and ldap are some of the supported mechanisms. . One of the interesting parts of using a SASL backend is that you do not need to elevate Apache HTTPD's access rights to superuser privileges, even when validating through shadow database. debian/source/0000755000000000000000000000000011525256347010500 5ustar debian/source/format0000644000000000000000000000001411525256347011706 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211522753631010371 0ustar 7 debian/authn_sasl.load0000644000000000000000000000011011522753631012165 0ustar LoadModule authn_sasl_module /usr/lib/apache2/modules/mod_authn_sasl.so