I’m new with this authentication through kerberos protocol so I tried to read a lot of howto on it but seems like I can’t find any specifics with my constraints. Here is what I have :
- An Active Directory Server on which users authenticate to log into their workstations
- Each end user uses IE 7 to connect to my intranet application
- An Apache server with load balancing
- Some Tomcats servers acting as workers for the Apache server.
- on each tomcat, I have 2 jakarta servlet running, users connect only on one servlet (further i will call it the servlet as if there is only one)
- my tomcats need to run under jdk5. not jdk6 or jdk4. it’s jdk5 period.
Now I want one to automatically get logged on my servlet. Basically I just need my servlet to retrieve the client’s principal then I can manage the rest.
Based on what I understood, my client has a ticket, he ask the KDC for a special ticket for accessing the apache server, then he tries to connect to the Apache server. Based on his keytab, the apache server then decode the auth data and grant/refuse the access to specified resource.
Am I right? please guide me through this, I’ve been reading pages for 4 days and still no clue on which solution is the more appropriate. I tried mod_auth_kerberos for Apache but instead of grabbing the user’s ticket he ask it like a basic auth. Apparently spgneo
Thanks
Ok I got this working :
by your Apache user.
location
apache.conf:
And the one thing I almost failed to find on the web, you have to modify your tomcat server config (tomcat/conf/server.xml) :
This is really important because without it you tomcat won’t retrieve any info from tomcat auth.
Don’t forget too, DNS is really really really really important for a Kerberos install. If you have any issue try checking your DNS for all of your servers.