LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-27-2014, 04:33 AM   #1
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Rep: Reputation: Disabled
SSO with Apache and mod auth Kerberos


Dear all,

I have been configuring the SSO with mod auth kerb. The objective is to access the website via IE without any prompt for user/password.

I setup as followings on Apache 2.2.15, CentOS 6.4, mod_auth_kerb.

1. I join CentOS to AD 2008R2
2. I install mod_auth_kerb
3. Create keytab on Windows and copy to CentOS
4. Here is my config

Options MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
AuthName "Restricted Access"
AuthType Kerberos
Krb5Keytab /etc/centos-hh.keytab

KrbAuthoritative On
KrbAuthRealms MYDOMAIN
KrbMethodNegotiate On
KrbMethodK5Passwd On

KrbVerifyKDC Off
#KrbDelegateBasic Off
KrbServiceName Any
KrbLocalUserMapping on
require valid-user


Result: I can access website via IE, FireFox, Chrome but I'm always prompted to enter user/password. if I enter correctly, I will see the webpage.--> httpd can authenticate the domain user and password.


But my goald is not archived, because IE always asks for user/password. I added my site to IE local intranet and select "automatic logon only in intranet". But there is no effect.

if I modify KrbVerifyKDC Off to ON. I will get error failed to verify krb5 credentials: Server not found in Kerberos database and cannot authenticate anymore.

Might I be missing some configurations or settings? Please advise me.

I'm look forward to hearing from you soon.

Regards,

Tran Phat

Last edited by tranphat; 06-27-2014 at 04:36 AM. Reason: adding information
 
Old 06-28-2014, 10:59 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hey Tran,

Kerberos isn't like SSH, the problem your running into is for kerberos to work with SSO, I think you're going to need a KDC (key distribution center) that interacts with the realm (the users and services that are directed to that particular KDC).
Using Kerberos, the sequence is, a client machine wants to access your apache web server, so it requests a ticket for the service from the KDC. The service and the client are both issues tickets, the client sends it's ticket to the service and the service decrytps it based on the shared secret (session ID) that is in both tickets.
Without a KDC, there is no ticket exchange.
 
Old 06-28-2014, 01:24 PM   #3
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Original Poster
Rep: Reputation: Disabled
Hello dijetlo,

Thanks for your reply.

I follows this article to setup the kerberos. I use Windows AD as KDC.

http://blog.stefan-macke.com/2011/04...erver-2008-r2/

Now I encounter with this problems, any googling does not help now

gss_acquire_cred() failed: Unspecified GSS failure. Minor code may provide more information (, )

Do you any idea
 
Old 06-28-2014, 01:59 PM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
I think this is a Linux forum and you have a Microsoft problem.
 
Old 06-29-2014, 09:33 AM   #5
tranphat
Member
 
Registered: Dec 2013
Posts: 86

Original Poster
Rep: Reputation: Disabled
Hi dijetlo,

I implement the mod_auth_kerb on CentOS for httpd. And I just use Windows AD for mod_auth_kerb to connect to and I don't think that is Windows problem.
 
Old 06-29-2014, 10:04 AM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
What does the KDC log say is going on?
Quote:
if I modify KrbVerifyKDC Off to ON. I will get error failed to verify krb5 credentials: Server not found in Kerberos database and cannot authenticate anymore.
That suggests that the KDC isn't running or doesn't know the user or service that is trying to access it. Is there anything else on your network that is getting a ticket from the KDC? What other services are Kerberos restricted?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSO SSSD/Kerberos/LDAP with Active Directory yuanjunliang Linux - Server 1 09-13-2013 02:59 PM
[SOLVED] kerberos SSO: ssh not trying gssapi-with-mic doqc1 Linux - Software 1 08-22-2011 04:04 AM
Apache - mod auth external with php kptn3m0 Solaris / OpenSolaris 4 04-27-2011 03:30 PM
Apache and Kerberos SSO issues climbingmerlin Linux - Server 2 08-09-2009 05:12 AM
Authz_ldap? I need to have SSO with kerberos against a AD domain mujzeptu Linux - Server 6 02-07-2008 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration