Package Details: mod_auth_kerb 5.4-6

Git Clone URL: https://aur.archlinux.org/mod_auth_kerb.git (read-only)
Package Base: mod_auth_kerb
Description: A Kerberos authentication module for the Apache Http Server
Upstream URL: http://modauthkerb.sourceforge.net/
Keywords: apache http kerberos
Licenses: custom
Submitter: None
Maintainer: grawity
Last Packager: grawity
Votes: 4
Popularity: 0.000000
First Submitted: 2009-12-30 21:09
Last Updated: 2015-07-21 07:29

Pinned Comments

grawity commented on 2016-03-25 22:24

PSA: If you think you need mod_auth_kerb, then you actually need mod_auth_gssapi.

Latest Comments

grawity commented on 2016-03-25 22:24

PSA: If you think you need mod_auth_kerb, then you actually need mod_auth_gssapi.

aspeer commented on 2014-09-03 03:06

Does not build with apache 2.4.

A patch is available here http://sourceforge.net/p/modauthkerb/patches/32/ . Shouldn't it be included in this package, since the current version of apache in the repos is 2.4.10?

Also, the PKGBUILD should use $pkgdir instead of $startdir/pkg.
This is NOT just because $startdir/pkg is deprecated, it caused a broken (empty) package to be built at least for me.

aspeer commented on 2014-09-03 02:09

Does not build with apache 2.4.

A patch is available here http://sourceforge.net/p/modauthkerb/patches/32/ . Shouldn't it be included in this package, since the current version of apache in the repos is 2.4.10?

chenxiaolong commented on 2013-05-12 16:38

Please remove heimdal from the dependencies. The heimdal package no longer exists and this package builds fine with MIT kerberos in the Arch repositories. Thanks!

Anonymous comment on 2011-06-28 06:57

Should be fixed now.

rekado commented on 2011-06-28 06:48

The patch mod_auth_kerb.patch should probably not be applied. Removing this line from the PKGBUILD makes it compile on my machine:
patch -p0 < $startdir/$pkgname.patch

rekado commented on 2011-06-28 06:43

Does not compile. apxs expects the compiler flags to be prefixed with "-Wc,". When this is fixed, libtool complains about the name of the library:

apxs -c -I. -Ispnegokrb5 -I/include -Wc,-march=x86-64,-mtune=generic,-O2 -pipe -Wl,--hash-style=gnu -Wl,--as-needed -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -lresolv mod_auth_kerb.so
/usr/share/apr-1/build/libtool --silent --mode=link gcc -o mod_auth_kerb.la --hash-style=gnu --as-needed -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkeyutils -lresolv -ldl -lresolv -L/usr/lib -L/usr/lib -R/usr/lib -laprutil-1 -lldap -llber -llber -ldb-5.1 -lgdbm -lexpat -pthread -L/usr/lib -R/usr/lib -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl mod_auth_kerb.so
libtool: link: libtool library `mod_auth_kerb.la' must begin with `lib'
Try `libtool --help --mode=link' for more information.
apxs:Error: Command failed with rc=65536
.
make: *** [src/mod_auth_kerb.so] Error 1

Anonymous comment on 2011-01-26 14:58

This does not work when one tries to load into apache 2.2.x

Here is the fix that seems to work:


pkgname=mod_auth_kerb
pkgver=5.4
pkgrel=3
pkgdesc="A Kerberos authentication module for the Apache Http Server"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/mod_auth_kerb/"
license=('custom')
groups=()
depends=('apache>=2.0' 'heimdal')
makedepends=()
optdepends=()
conflicts=()
replaces=()
options=()
install=
source=(http://downloads.sourceforge.net/project/modauthkerb/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz auth_kerb.conf mod_auth_kerb.patch mod_auth_kerb_compile.patch)
noextract=()
md5sums=('642b81763ad3ca81dba359cb952da5e3'
'399f8ab44947ac79f23f718c4ca9a527'
'3a4ed51a6bfb949fc588148074e1df5a'
'051f97f87667c92db00f34d20404261d')

build() {
cd $startdir/src/$pkgname-$pkgver
patch -p0 < $startdir/$pkgname.patch
patch -p1 < $startdir/mod_auth_kerb_compile.patch
./configure --without-krb4 --with-apache=$startdir/pkg

mkdir -p $startdir/pkg/usr/lib/httpd/modules
mkdir -p $startdir/pkg/etc/httpd/conf
mkdir -p $startdir/pkg/usr/share/licenses/$pkgname/

make || return 1
install -m 755 src/.libs/$pkgname.so $startdir/pkg/usr/lib/httpd/modules || return 1
install -m 644 $startdir/src/auth_kerb.conf $startdir/pkg/etc/httpd/conf/auth_kerb.conf.sample || return 1
install -m 644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/ || return 1
}



cat mod_auth_kerb_compile.patch
diff -urN mod_auth_kerb-5.4/src/mod_auth_kerb.c mod_auth_kerb-5.4a/src/mod_auth_kerb.c
--- mod_auth_kerb-5.4/src/mod_auth_kerb.c 2008-12-04 03:14:03.000000000 -0700
+++ mod_auth_kerb-5.4a/src/mod_auth_kerb.c 2011-01-25 17:35:31.466666669 -0700
@@ -89,6 +89,7 @@
#include <krb5.h>
#ifdef HEIMDAL
# include <gssapi.h>
+# include <gssapi/gssapi_krb5.h>
#else
# include <gssapi/gssapi.h>
# include <gssapi/gssapi_generic.h>