logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Mod_auth_kerb issues
Author
albertramsbottom



Joined: 23 May 2012
Posts: 3
Location: Alicate

PostPosted: Wed 23 May '12 13:11    Post subject: Mod_auth_kerb issues Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 25 May '12 12:04    Post subject: Reply with quote

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

PostPosted: Mon 04 Jun '12 13:42    Post subject: Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 04 Jun '12 14:21    Post subject: Reply with quote

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

PostPosted: Mon 04 Jun '12 16:07    Post subject: Reply with quote

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


Reply to topic   Topic: Mod_auth_kerb issues View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules