Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
JAAS configuration for Liferay 7.4 DXP
Hi All,
I want to integrate JAAS in liferay 7.4 DXP. I have added below properties but post server start up my login fails.
1)Server.xml
<Realm
className="org.apache.catalina.realm.JAASRealm"
appName="PortalRealm"
userClassNames="com.liferay.portal.kernel.security.jaas.PortalPrincipal"
roleClassNames="com.liferay.portal.kernel.security.jaas.PortalRole"
useContextClassLoader="false"
/>
2) Added jaas.config file to conf/jaas.config with below property and added config file path to catilina.bat/sh file
PortalRealm {
com.liferay.portal.kernel.security.jaas.PortalLoginModule
required;
};
3) Added below properties to portal-ext.properties file.
portal.jaas.enable=true
portal.jaas.auth.type=screenName
On portal start up i get com.liferay.portal.kernel.security.jaas.PortalPrincipal and com.liferay.portal.kernel.security.jaas.PortalRole - was not found in catalina log.
Jaas is depricated in 7.4 but Bundled in 7.4. Seems like com.liferay.portal.kernel.security.jaas.PortalPrincipal and com.liferay.portal.kernel.security.jaas.PortalRole are no longer supported/available in liferay 7.4
What exaclty is missing and any pointers to correct jaas configuration in Liferay 7.4 would really help.
Thanks & regards,
Fayaj
Hi All,
Any pointers for the same?
Regards,
Fayaj
Hi Fayaj,
Does this thread help? https://liferay.dev/ask/questions/portal/re-re-liferay-7-4-jaas-not-working-returns-to-the-login-screen
Zsigmond
Powered by Liferay™