<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>JAAS configuration for Liferay 7.4 DXP</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121462621" />
  <subtitle>JAAS configuration for Liferay 7.4 DXP</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121462621</id>
  <updated>2026-04-06T17:48:00Z</updated>
  <dc:date>2026-04-06T17:48:00Z</dc:date>
  <entry>
    <title>RE: RE: JAAS configuration for Liferay 7.4 DXP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121477106" />
    <author>
      <name>Zsigmond Rab</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121477106</id>
    <updated>2022-07-25T14:41:14Z</updated>
    <published>2022-07-25T14:41:02Z</published>
    <summary type="html">&lt;p&gt;Hi Fayaj,&lt;/p&gt;
&lt;p&gt;Does this thread help? &lt;a href="https://liferay.dev/ask/questions/portal/re-re-liferay-7-4-jaas-not-working-returns-to-the-login-screen"&gt;https://liferay.dev/ask/questions/portal/re-re-liferay-7-4-jaas-not-working-returns-to-the-login-screen&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Zsigmond&lt;/p&gt;</summary>
    <dc:creator>Zsigmond Rab</dc:creator>
    <dc:date>2022-07-25T14:41:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: JAAS configuration for Liferay 7.4 DXP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121473046" />
    <author>
      <name>Fayaj Shaikh</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121473046</id>
    <updated>2022-07-19T15:19:14Z</updated>
    <published>2022-07-19T04:52:42Z</published>
    <summary type="html">&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;Any pointers for the same?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Fayaj&lt;/p&gt;</summary>
    <dc:creator>Fayaj Shaikh</dc:creator>
    <dc:date>2022-07-19T04:52:42Z</dc:date>
  </entry>
  <entry>
    <title>JAAS configuration for Liferay 7.4 DXP</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121462620" />
    <author>
      <name>Fayaj Shaikh</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121462620</id>
    <updated>2022-07-11T07:23:03Z</updated>
    <published>2022-07-08T18:25:49Z</published>
    <summary type="html">&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I want to integrate JAAS in liferay 7.4 DXP. I have added below
  properties but post server start up my login fails. &lt;/p&gt;
&lt;p&gt;1)Server.xml &lt;/p&gt;
&lt;p&gt;&amp;lt;Realm&lt;br /&gt;        
  className=&amp;quot;org.apache.catalina.realm.JAASRealm&amp;quot;&lt;br /&gt;      
    appName=&amp;quot;PortalRealm&amp;quot;&lt;br /&gt;        
  userClassNames=&amp;quot;com.liferay.portal.kernel.security.jaas.PortalPrincipal&amp;quot;&lt;br /&gt;
         
  roleClassNames=&amp;quot;com.liferay.portal.kernel.security.jaas.PortalRole&amp;quot;&lt;br /&gt;
          useContextClassLoader=&amp;quot;false&amp;quot;&lt;br /&gt;      /&amp;gt;&lt;/p&gt;
&lt;p&gt;2) Added jaas.config file to conf/jaas.config with below property and
  added config file path to catilina.bat/sh file&lt;/p&gt;
&lt;p&gt;PortalRealm {&lt;br /&gt;   
   com.liferay.portal.kernel.security.jaas.PortalLoginModule
  required;&lt;br /&gt; };&lt;/p&gt;
&lt;p&gt;3) Added below properties to portal-ext.properties file.&lt;/p&gt;
&lt;p&gt;portal.jaas.enable=true&lt;br /&gt; portal.jaas.auth.type=screenName&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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 &lt;/p&gt;
&lt;p&gt;What exaclty is missing and any pointers to correct jaas
  configuration in Liferay 7.4 would really help.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; regards,&lt;/p&gt;
&lt;p&gt;Fayaj &lt;/p&gt;</summary>
    <dc:creator>Fayaj Shaikh</dc:creator>
    <dc:date>2022-07-08T18:25:49Z</dc:date>
  </entry>
</feed>
