1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195
|
# $Id: /trunk/debian/dists/libapache2-mod-authz-ldap/debian/packages 5 2005-02-16T19:48:00.421413Z svm $
# Environment variables:
# with_debug=%{$with_debug} - use debug option
%define with_debug %{?$with_debug:1}%{!?$with_debug:0}
%define automake_version 1.7
%define apache2_version %`dpkg -s apache2-threaded-dev|grep ^Version|sed 's/^Version: //'`
Source: libapache2-mod-authz-ldap
Section: web
Priority: extra
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.1
Upstream-Source: <URL:http://authzldap.othello.ch/download.html>
Home-Page: <URL:http://authzldap.othello.ch/>
Description: module for Apache2 which provides LDAP authentication/authorization
This Apache LDAP authentication/authorization module tries to solve the
following problems that other such modules may not solve in all cases:
.
1. Map the short form of the distinguished name of a certificate and its
issuer obtained from the environment of mod_ssl to a user distinguished
name in an LDAP directory.
.
2. Check the age of a password in an LDAP directory, denying authorization in
case the password is to old.
.
3. Authorize a user based on roles or an arbitrary LDAP filter expression.
.
4. Authorize a user based on whether he owns a file or belongs to the group
owning a file. The module can perform an ordinary LDAP authentication
using an LDAP bind call, but is incapable of verifying an SHA1 or crypt
password hash from the directory, as mod_auth_ldap can.
.
The module also tries to do reduce LDAP connection overhead by caching a
connection between requests (one per server record). This is most likely
to improve performance in the case of certificate authentication, as for
basic authentication a bind to the directory on a new connection is
necessary with every request. Future development may add a cache to
improve performance.
Copyright: .
This module is distributed under the terms of the Apache License,
please check the LICENSE file in your apache distribution or the
COPYING file of the mod_authz_ldap distribution for the exact terms of
the license. In particular, the following disclaimer applies:
THIS SOFTWARE IS PROVIDED BY ``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 AUTHOR OR THE 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.
.
.
(c) Dr. Andreas Mller, Beratung und Entwicklung.
.
.
Apache License
--------------
.
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. 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. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Apache" and "Apache Software Foundation" must
* not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
* nor may "Apache" appear in their name, without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``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 SOFTWARE FOUNDATION OR
* ITS 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.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
* Portions of this software are based upon public domain software
* originally written at the National Center for Supercomputing Applications,
* University of Illinois, Urbana-Champaign.
*/
Build-Depends: apache2-threaded-dev (>= 2.0.50-9)
Build-Depends: automake%{automake_version}, autoconf, libtool
Build: sh
aclocal-%{automake_version}
autoheader
libtoolize --copy --force
automake-%{automake_version} --add-missing --copy
autoconf
CC=${CC:-gcc}
CFLAGS=${CFLAGS:--g} # -Wall breaks compilation
if [ "${DEB_BUILD_OPTIONS#*noopt}" != "$DEB_BUILD_OPTIONS" ]; then
CFLAGS="$CFLAGS -O0"
else
CFLAGS="$CFLAGS -O2"
fi
CFLAGS="$CFLAGS -I/usr/include/openssl -I/usr/include/apr-0 -DEAPI"
CC="$CC" CFLAGS="$CFLAGS" ./configure --prefix=/usr --mandir=/usr/share/man \
--with-apxs=/usr/bin/apxs2 --with-openssl-path=/usr %{?with_debug:--with-debug}
( cd module; make ) || false
Clean: sh
rm -rf autom4te.cache
make distclean || true
Package: libapache2-mod-authz-ldap
%if %{with_debug}
Version: %{VERSION}+debug
%endif
Architecture: any
Depends: apache2-common (>= %{apache2_version}), []
Recommends: libapache-mod-authz-ldap-tools, []
Description: Module for Apache2 which provides LDAP authentication/authorization
This package provides the module for Apache 2.0 server.
%if %{with_debug}
.
The package was compiled with debug option.
%endif
Install: sh
yada install -lib -into /usr/lib/apache2/modules module/.libs/*.so
yada install -conffile -into /etc/apache2/mods-available debian/conf/*.load
yada install -doc ldap/authzldap.schema
yada install -doc -subdir html docs/*.html docs/*.jpg docs/*.txt docs/*.HOWTO
Postinst: sh
if [ "$1" = "configure" ]; then
if [ -f /etc/apache2/mods-enabled/ssl_authz_ldap.conf ]; then
if [ -x /etc/init.d/apache2 ]; then
if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d apache2 restart
else
/etc/init.d/apache2 restart
fi
fi
fi
fi
Postrm: sh
if [ "$1" = "remove" ]; then
if [ -f /etc/apache2/mods-enabled/ssl_authz_ldap.conf ]; then
if [ -h /etc/apache2/mods-enabled/ssl_authz_ldap.conf ]; then
rm -f /etc/apache2/mods-enabled/ssl_authz_ldap.conf
else
mv -f /etc/apache2/mods-enabled/ssl_authz_ldap.conf /etc/apache2/mods-enabled/ssl_authz_ldap.conf.bak
fi
if [ -x /etc/init.d/apache2 ]; then
if [ -x /usr/sbin/invoke-rc.d ]; then
invoke-rc.d apache2 restart
else
/etc/init.d/apache2 restart
fi
fi
fi
fi
if [ "$1" = "purge" ]; then
rm -f /etc/apache2/mods-enabled/ssl_authz_ldap.conf.bak
fi
|