tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klotz Jr, Dennis" <>
Subject Help getting authentication="GSSAPI" Kerberos working with JNDIRealm
Date Fri, 28 Oct 2005 19:16:40 GMT

I could use some help with getting tomcat to use Kerberos against Active

I have been using Ethereal to sniff the packets going back and forth
from tomcat and I verified that with a normal server.xml entry (remove
the authentication attribute keyword from below), it uses 'simple'
authentication (clear text passwords). 

Now the above works just fine but now I'm trying to take it to next
level and I found (\docs\guide\jndi\jndi-ldap.html)
specifies that there are the following values:

- EXTERNAL (RFC 2222). This mechanism obtains authentication information
from an external source (such as SSL/TLS or IPsec). 
- DIGEST-MD5 (RFC 2831) is for Digest Authentication. 
- GSSAPI (RFC 2222) is for Kerberos V5 authentication.


I wish to use GSSAPI to talk with Active Directory so I setup my
server.xml with the following : 

<Realm className="org.apache.catalina.realm.JNDIRealm" 
	connectionName="CN=Klotz\, Dennis,OU=myou,DC=company,DC=com"
	userBase="OU= myou,DC=company,DC=com"

And now I get a different type of error from Catalina.out:

Oct 28, 2005 2:28:47 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
GSSException: No valid credentials provided (Mechanism level: Failed to
find any Kerberos Ticket)

At least the GSSAPI is being recognized!  Yes !! 


My next step was talking with IT; they suggested a c:\winnt\krb5.ini
with the following:

default_realm = COMPANY.COM
default_tgs_enctypes = des-cbc-crc
default_tkt_enctypes = des-cbc-crc

kdc =
admin_server = addy.
kpasswd_server = addy.
default_domain = COMPANY.COM

And that I then execute: 

$ kinit DKlotz
Password for DKlotz@EMPIRIX.COM:mypassword
New ticket is stored in cache file C:\Documents and


But as you can see from the tomcat error log that something is still
missing. Do I need to move the cache file or do other commands so that
the code within ldap.jar can use it?

At this time tomcat never tries connecting to the LDAP server as it
can't get out of the starting gate. I've got something wrong / missing
from the Kerberos setup.

Any help is greatly appreciated!!

-Dennis Klotz

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message