debian/0000755000000000000000000000000012151705446007173 5ustar debian/docs0000644000000000000000000000004211740276651010046 0ustar docs/readme.htm docs/readme_files debian/source/0000755000000000000000000000000011727143560010474 5ustar debian/source/format0000644000000000000000000000001411727143645011706 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012151703527010620 5ustar debian/patches/fix-apxspath0000644000000000000000000000064711727144202013163 0ustar Path for apxs2 in debian is not /usr/sbin/apxs2 but /usr/bin/apxs2. --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -MY_APXS=/usr/sbin/apxs2 +MY_APXS=/usr/bin/apxs2 MY_LDFLAGS=-lmemcache -L/mnt/distributions/rpmbuilds/ste-1.0/ste-php/TMP/SFR-libmemcache-1.4.0.rc2-build/product/sfr-suse-addon/lib MY_CFLAGS=-I/mnt/distributions/rpmbuilds/ste-1.0/ste-php/TMP/SFR-libmemcache-1.4.0.rc2-build/product/sfr-suse-addon/include debian/patches/fix-flags0000644000000000000000000000070411727145277012436 0ustar Flags not relevant (upstream author's working directory) --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ MY_APXS=/usr/bin/apxs2 -MY_LDFLAGS=-lmemcache -L/mnt/distributions/rpmbuilds/ste-1.0/ste-php/TMP/SFR-libmemcache-1.4.0.rc2-build/product/sfr-suse-addon/lib -MY_CFLAGS=-I/mnt/distributions/rpmbuilds/ste-1.0/ste-php/TMP/SFR-libmemcache-1.4.0.rc2-build/product/sfr-suse-addon/include +MY_LDFLAGS=-lmemcache +MY_CFLAGS= .SUFFIXES: .c .o .la .c.la: debian/patches/fix-remote_ip0000644000000000000000000000104112151316073013302 0ustar Use conn_rec->client_ip instead conn_rec->remote_ip: Apache 2.4 API Changes --- a/mod_auth_memcookie.c +++ b/mod_auth_memcookie.c @@ -340,7 +340,7 @@ else if (conf->nAuth_memCookie_MatchIP_Mode==1&&apr_table_get(r->headers_in,"X-Forwarded-For")!=NULL) szRemoteIP=apr_pstrdup(r->pool,apr_table_get(r->headers_in,"X-Forwarded-For")); else - szRemoteIP=apr_pstrdup(r->pool,r->connection->remote_ip); + szRemoteIP=apr_pstrdup(r->pool,r->connection->client_ip); unless(conf->nAuth_memCookie_Authoritative) debian/patches/fix-requires0000644000000000000000000000225012151703527013165 0ustar New Apache Version 2.4: - ap_requires does not exist anymore - requires is handled now by mod_authz_user --- a/mod_auth_memcookie.c +++ b/mod_auth_memcookie.c @@ -346,11 +346,13 @@ unless(conf->nAuth_memCookie_Authoritative) return DECLINED; +#if 0 ap_log_rerror(APLOG_MARK,APLOG_DEBUG|APLOG_NOERRNO, 0,r,ERRTAG "AuthType are '%s'", ap_auth_type(r)); unless(strncmp("Cookie",ap_auth_type(r),6)==0) { ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, r, ERRTAG "Auth type not specified has 'Cookie'"); return HTTP_UNAUTHORIZED; } +#endif unless(conf->szAuth_memCookie_CookieName) { ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, r, ERRTAG "No Auth_memCookie_CookieName specified"); @@ -457,6 +459,9 @@ return HTTP_FORBIDDEN; } + return DECLINED; + +#if 0 /* get require line */ reqs_arr = ap_requires(r); reqs = reqs_arr ? (require_line *) reqs_arr->elts : NULL; @@ -514,6 +519,7 @@ ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, r ,ERRTAG "the user logged '%s' not authorized",szMyUser); /* forbid by default */ return HTTP_FORBIDDEN; +#endif } debian/patches/series0000755000000000000000000000006212151703122012025 0ustar fix-apxspath fix-flags fix-remote_ip fix-requires debian/changelog0000644000000000000000000000333112151703667011050 0ustar libapache2-mod-auth-memcookie (1.0.2-8) unstable; urgency=low * Additional changes for the new Apache Version 2.4 -- Eva Ramon Salinas Thu, 30 May 2013 19:07:52 +0200 libapache2-mod-auth-memcookie (1.0.2-7) unstable; urgency=low * New Apache Version 2.4 (Closes: #707060) -- Eva Ramon Salinas Tue, 28 May 2013 21:49:03 +0200 libapache2-mod-auth-memcookie (1.0.2-6) unstable; urgency=low * Improved description (Closes: #679615) -- Eva Ramon Salinas Mon, 09 Jul 2012 19:57:06 +0200 libapache2-mod-auth-memcookie (1.0.2-5) unstable; urgency=low * Package licence changed to Apache2 License. * Upload sponsored by Philipp Hug ** Package license checked: Apache 2.0, dependencies apache2 (apache2.0), memcache (BSD-like licenses), samples (apache2.0) -- Eva Ramon Salinas Sun, 17 Jun 2012 11:25:06 +0200 libapache2-mod-auth-memcookie (1.0.2-4) unstable; urgency=low * Install examples and documentation -- Eva Ramon Salinas Sun, 08 Apr 2012 14:04:30 +0200 libapache2-mod-auth-memcookie (1.0.2-3) unstable; urgency=low * Fix libdir path for the LoadModule directive in debian/rules * New standards version 3.9.3 -- Eva Ramon Salinas Sun, 11 Mar 2012 18:50:14 +0100 libapache2-mod-auth-memcookie (1.0.2-2) unstable; urgency=low * Fix patch problems and lintian errors. -- Eva Ramon Salinas Sun, 11 Mar 2012 17:03:03 +0100 libapache2-mod-auth-memcookie (1.0.2-1) unstable; urgency=low * Initial release (Closes: #653586) -- Eva Ramon Salinas Sun, 11 Dec 2011 14:40:09 +0100 debian/compat0000644000000000000000000000000211727143645010376 0ustar 8 debian/libapache2-mod-auth-memcookie.examples0000644000000000000000000000007411740071433016403 0ustar samples/httpd.conf samples/login.php samples/login_post.php debian/libapache2-mod-auth-memcookie-dev.dirs0000644000000000000000000000002411727143560016303 0ustar usr/lib usr/include debian/copyright0000644000000000000000000000103711767321372011133 0ustar This package was debianized by Eva Ramon on Wed, 28 Dec 2011 14:19:00 +0200 It was downloaded from http://authmemcookie.sourceforge.net/ Upstream Author: Mathieu Carbonneaux Copyright (C) 2011 Mathieu Carbonneaux License: http://www.apache.org/licenses/LICENSE-2.0 On Debian systems, the complete text of the Apache 2.0 License can be found in `/usr/share/common-licenses/Apache-2.0'. The Debian packaging is (C) 2011, Eva Ramon Salinas and is licensed under the Apache 2.0 License. debian/control0000644000000000000000000000174412151205447010600 0ustar Source: libapache2-mod-auth-memcookie Section: libs Priority: extra Maintainer: Eva Ramon Salinas Build-Depends: debhelper (>= 8.0.0), apache2-dev, libmemcache-dev Standards-Version: 3.9.3 Homepage: http://authmemcookie.sourceforge.net Package: libapache2-mod-auth-memcookie Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, apache2-api-20120211 Description: Apache2 authentication and authorization module. AuthMemCookie is an Apache2 authentication and authorization module. It does not make authentication by itself: the login page has to set an authentication cookie and store the user information in memcache. Once a logged-in user tries to access a protected url, the module will verify if the authentication cookie is valid for the requested url and it will check the info stored in memcache in order to determine if the authenticated user is authorized to access the url. A sample LDAP login page in php is included in the package. debian/libapache2-mod-auth-memcookie1.dirs0000644000000000000000000000001011727143560015603 0ustar usr/lib debian/rules0000755000000000000000000000226312151425732010253 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 export DH_OPTIONS=-v %: dh $@ # In target install, We need to do here the same apxs does override_dh_auto_install: # Install the module binary (shared object) into /usr/lib/apache2/modules install -v -m 644 $(CURDIR)/.libs/mod_auth_memcookie.so -D $(CURDIR)/debian/libapache2-mod-auth-memcookie/usr/lib/apache2/modules/mod_auth_memcookie.so # Create /etc/apache2/mods-available install -v -m 755 -d -D $(CURDIR)/debian/libapache2-mod-auth-memcookie/etc/apache2/mods-available/ # Create /etc/apache2/mods-available/auth_memcookie.load with the LoadModule directive inside echo "LoadModule mod_auth_memcookie_module /usr/lib/apache2/modules/mod_auth_memcookie.so" > $(CURDIR)/debian/libapache2-mod-auth-memcookie/etc/apache2/mods-available/auth_memcookie.load debian/libapache2-mod-auth-memcookie1.install0000644000000000000000000000002211727143560016313 0ustar usr/lib/lib*.so.* debian/libapache2-mod-auth-memcookie-dev.install0000644000000000000000000000012711727143560017014 0ustar usr/include/* usr/lib/lib*.a usr/lib/lib*.so usr/lib/pkgconfig/* usr/share/pkgconfig/*