<?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 on JBoss</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=10483104" />
  <subtitle>JAAS on JBoss</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=10483104</id>
  <updated>2026-05-04T14:59:27Z</updated>
  <dc:date>2026-05-04T14:59:27Z</dc:date>
  <entry>
    <title>RE: JAAS on JBoss</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10693426" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10693426</id>
    <updated>2011-09-06T22:30:20Z</updated>
    <published>2011-09-06T22:30:20Z</published>
    <summary type="html">Great to hear that it was just a typo and you&amp;#39;ve solved the problem. Wasn&amp;#39;t too sure if the problem was still occurring.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-09-06T22:30:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: JAAS on JBoss</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10682929" />
    <author>
      <name>Florian Huber</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10682929</id>
    <updated>2011-09-06T08:13:23Z</updated>
    <published>2011-09-06T08:13:23Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Hiran Chaudhuri:&lt;/div&gt;&lt;blockquote&gt;But then this is actually one class that you need: The LoginModule.&lt;br /&gt;I created one myself which on one side speaks JBoss LoginModule API and on the other side queries Liferay UserLocalServiceUtil.&lt;br /&gt;If you make it an extra jar file you can plug it into Liferay when required, without modification of existing code or any further dependencies.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I have forgotten this thread, normaly i post a solution if I found one! &lt;br /&gt;&lt;br /&gt;I have also created a LoginModule (extends Authentificator). This one is like the LDAP one generic to auth against JAAS. It has also a simple UserRole Mapping in it, maybe I will extend if needed.&lt;br /&gt;&lt;br /&gt;If anybody needs this, I will provide the full source. &lt;br /&gt;&lt;br /&gt;Greetings Florian Huber</summary>
    <dc:creator>Florian Huber</dc:creator>
    <dc:date>2011-09-06T08:13:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: JAAS on JBoss</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10682897" />
    <author>
      <name>Florian Huber</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10682897</id>
    <updated>2011-09-06T08:07:12Z</updated>
    <published>2011-09-06T08:07:12Z</published>
    <summary type="html">yeah, is an typo, sorry!</summary>
    <dc:creator>Florian Huber</dc:creator>
    <dc:date>2011-09-06T08:07:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: JAAS on JBoss</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10668789" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10668789</id>
    <updated>2011-09-05T13:17:54Z</updated>
    <published>2011-09-05T13:17:54Z</published>
    <summary type="html">&lt;blockquote&gt;I have the follwing portlet.ext.properties:&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I hope that this was just a typing error. The file name should be portlet-ext.properties</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-09-05T13:17:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: JAAS on JBoss</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10658990" />
    <author>
      <name>Hiran Chaudhuri</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10658990</id>
    <updated>2011-09-03T10:33:47Z</updated>
    <published>2011-09-03T10:33:47Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Florian Huber:&lt;/div&gt;&lt;blockquote&gt;I also tried to add a DatabaseLoginModule from JBoss, which doesn&amp;#39;t poroduce the exception, but if I login with the right user/pw I&amp;#39;m like an unauthentificated user, but it recocnizes unknown users/passwords. &lt;br /&gt;&lt;br /&gt;Has anybody setted up JAAS on JBoss sucessfully (or has anybody a tutorial). Any help is welcome!&lt;/blockquote&gt;&lt;br /&gt;It seems you have authentication running and just authorization is missing.&lt;br /&gt;&lt;br /&gt;But then this is actually one class that you need: The LoginModule.&lt;br /&gt;I created one myself which on one side speaks JBoss LoginModule API and on the other side queries Liferay UserLocalServiceUtil.&lt;br /&gt;If you make it an extra jar file you can plug it into Liferay when required, without modification of existing code or any further dependencies.</summary>
    <dc:creator>Hiran Chaudhuri</dc:creator>
    <dc:date>2011-09-03T10:33:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: JAAS on JBoss</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10485359" />
    <author>
      <name>Florian Huber</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10485359</id>
    <updated>2011-08-17T12:29:27Z</updated>
    <published>2011-08-17T12:29:27Z</published>
    <summary type="html">I have found a bug &lt;a href="http://issues.liferay.com/browse/LPS-2582"&gt;LPS-2582&lt;/a&gt; wich seems to be related</summary>
    <dc:creator>Florian Huber</dc:creator>
    <dc:date>2011-08-17T12:29:27Z</dc:date>
  </entry>
  <entry>
    <title>JAAS on JBoss</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10483103" />
    <author>
      <name>Florian Huber</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=10483103</id>
    <updated>2011-08-17T10:23:55Z</updated>
    <published>2011-08-17T10:23:55Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi&lt;br&gt;I'm trying to enable JAAS on JBoss, if I Login i get a &lt;pre&gt;&lt;code&gt;java.lang.IllegalStateException: Application Policy is null for the security domain:\PortalRealm&lt;/code&gt;&lt;/pre&gt; (without the backslash, just escapeing the smiley) Exception.&lt;br&gt;&lt;br&gt;I have the follwing portlet.ext.properties:&lt;br&gt;&lt;pre&gt;&lt;code&gt;
#JAAS STUFF
portal.configuration=false
portal.jaas.enable=true
portal.impersonation.enable=false
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;I also tried to add a DatabaseLoginModule from JBoss, which doesn't poroduce the exception, but if I login with the right user/pw I'm like an unauthentificated user, but it recocnizes unknown users/passwords. &lt;br&gt;&lt;br&gt;Has anybody setted up JAAS on JBoss sucessfully (or has anybody a tutorial). Any help is welcome!&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Florian Huber</dc:creator>
    <dc:date>2011-08-17T10:23:55Z</dc:date>
  </entry>
</feed>
