Hi,
I've got a problem in configuring a JAAS LoginModule inside a .war.
In Tomcat standalone I have configured the realm inside context.xml like this working example:
<Realm className="org.apache.catalina.realm.JAASRealm" appName="PortalRealm" userClassNames="com.liferay.portal.security.jaas.PortalPrincipal" roleClassNames="com.liferay.portal.security.jaas.PortalRole" debug="99" useContextClassLoader="false" />
PortalRealm { com.liferay.portal.kernel.security.jaas.PortalLoginModule required; };
<application-policy name = "PortalRealm"> <authentication> <login-module code ="com.liferay.portal.security.jaas.PortalLoginModule" flag = "required"> <module-option name="userClassNames">com.liferay.portal.security.jaas.PortalPrincipal</module-option> <module-option name="roleClassNames">com.liferay.portal.security.jaas.PortalRole</module-option> </login-module> </authentication> </application-policy>
Found the Problem.
It was a missing jar inside default/lib driectoy.
Unfortunality I cannot copy/move this jar from the .war into the default/lib, because it requires to move all the other .jars also from the .war into the default/lib.