Setting up apache httpd and subversion on a redhat host to integrate with Windows AD Domain authentication


The following setup worked for me:

1 using kerberos for the auth module: mod_auth_kerb.so.

I tried to use mod_ntlm but it proved too hard to get it to work on Apache 2.2 on redhat.

I have the following in /etc/krb5.conf:

[libdefaults]
clockskew = 300
default_realm = AAA.BBB.XXX.COM

[realms]
AAA.BBB.XXX.COM = {
kdc = pdc01.aaa.bbb.xxx.com
default_domain = AAA.BBB.XXX.COM
kpasswd_server = pdc01.aaa.bbb.xxx.com
}

[domain_realm]
server01.www.yyy.xxx.com = AAA.BBB.XXX.COM
.yyy.xxx.com = AAA.BBB.XXX.COM
.xxx.com = AAA.BBB.XXX.COM
xxx.com = AAA.BBB.XXX.COM


With that I am to run kinit and get kerberos ticket from the redhat host.

And my /etc/httpd/conf/httpd.conf has:


DAV svn
SVNPath "/path/to/svn_repo"

AuthType Kerberos
AuthName Kerberos
KrbMethodNegotiate Off
KrbMethodK5Passwd On
KrbServiceName Any
KrbAuthRealms AAA.BBB.XXX.COM
KrbSaveCredentials on
KrbLocalUserMapping on
# The last bit I had to fix to get this working:
KrbVerifyKDC Off

AuthzSVNAccessFile /path/to/svn_access_file
require valid-user

Using this setup I can get users to authenticate against the corporate active directory domain controller to access Subversion.

My apache httpd version: 2.2.15
My subversion svn version: 1.6.11

Advertisements

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s