Author |
|
albertramsbottom
Joined: 23 May 2012 Posts: 3 Location: Alicate
|
Posted: Wed 23 May '12 13:11 Post subject: Mod_auth_kerb issues |
|
|
Hi
I seem to be having issues with Apache not authenticating with Kerberos
My windows admin has configured Kerberos on the windows end and has sent me a keytab file.
I have installed the library's and headers and have the development tools.
When i kinit with the username@domain it asks for password, which i enter. I can the klist which gives the ticket so everything seems to work up to this stage.
I have the following in my httpd.conf
<Directory /var/www/html/moodle/auth/ldap/>
<Files ntlmsso_magic.php>
AuthName "Moodle"
AuthType Kerberos
KrbAuthRealms MYDOMAIN.COM
KrbServiceName HTTP
Krb5Keytab /etc/mykeytab.keytab
KrbMethodNegotiate on
KrbMethodK5Passwd on
KrbAuthoritative on
require valid-user
</Files>
</Directory>
But i get no errors at all in my apache error logs even with it set to debug.
Does anyone know if there could be anything in my httpd.conf that could stop this working, such as another directive?
Or does anyone know anything about joining the library's to the module when it is . configured because this is the only stage in the set up that I was a little unsure about.
One last thing is that i have noticed that the official website (http://modauthkerb.sourceforge.net/) for mod_auth_kerb suggests that this module should be loaded:
LoadModule auth_kerb_module libexec/mod_auth_kerb.so
but everywhere else suggests that this one should be used:
LoadModule auth_kerb_module modules/mod_auth_kerb.so
I am currently using the second one and have tried to use the first but it is not present and Apache cannot restart
Sorry Centos 6.2
Cheers for any help in advance |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 25 May '12 12:04 Post subject: |
|
|
Quote: |
LoadModule auth_kerb_module libexec/mod_auth_kerb.so
but everywhere else suggests that this one should be used:
LoadModule auth_kerb_module modules/mod_auth_kerb.so
|
That depends where you putted that module. |
|
Back to top |
|
albertramsbottom
Joined: 23 May 2012 Posts: 3 Location: Alicate
|
Posted: Mon 04 Jun '12 13:42 Post subject: |
|
|
It now works if i navigate to ntlmsso_magic.php directly
OK all the modules re in the right place its just that Apache isnt forwarding to the correct file when i load the default page
I think this is an Apache config issue
Any help would be great |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 04 Jun '12 14:21 Post subject: |
|
|
Your config says LDAP, only for that file.
You want a directory or a location , a part for your URL? |
|
Back to top |
|
albertramsbottom
Joined: 23 May 2012 Posts: 3 Location: Alicate
|
Posted: Mon 04 Jun '12 16:07 Post subject: |
|
|
I thought that was why it had the files directive:
<Files ntlmsso_magic.php>
I think there might be another directive stopping it working.
thanks for you help though |
|
Back to top |
|