Answer the question
In order to leave comments, you need to log in
How to set up transparent kerberos authentication on Tomcat?
You need to configure transparent kerberos authentication. And, only for one application. And all this is needed only so that the application is aware of who came to it, there is no need to restrict access to it.
Windows Authentication How-To read. Did everything as written. Stalled on the "Web application" section, I can't figure out how to set up this Valve.
Answer the question
In order to leave comments, you need to log in
I will answer myself. I got stuck because one Windows Authentication How-To is not enough. In addition to what is described in it, you also need to write in $CATALINA_HOME/<app-base>/<app-name>/WEB-INF/web.xml
<security-constraint>
<display-name>All users</display-name>
<web-resource-collection>
<web-resource-name>All requests</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<description>All users</description>
<role-name>*</role-name>
</security-role>
<login-config>
<auth-method>SPNEGO</auth-method>
</login-config>
<Realm className="org.apache.catalina.realm.JNDIRealm"
connectionURL="ldap://pdc.domain.local:389"
alternateURL="ldap://bdc.domain.local:389"
connectionName="CN=tomcat,OU=Services,DC=domain,DC=local"
connectionPassword="qwerty"
referrals="follow"
userBase="OU=someou,DC=domain,DC=local"
userSearch="(sAMAccountName={0})"
userSubtree="true"
roleBase="OU=Security Groups,DC=domain,DC=local"
roleName="name"
roleSubtree="true"
roleSearch="(member={0})" />
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question