JAAS configuration for Liferay 7.4 DXP

Olaf Kock, modified 3 Years ago. New Member Posts: 7 Join Date: 6/13/22 Recent Posts

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 

Jamie Sammons, modified 3 Years ago. New Member Posts: 7 Join Date: 6/13/22 Recent Posts

Hi All,

Any pointers for the same?

Regards,

Fayaj

thumbnail
Zsigmond Rab, modified 3 Years ago. Liferay Master Posts: 764 Join Date: 1/5/10 Recent Posts