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
RE: JAAS on JBoss
Hi
I'm trying to enable JAAS on JBoss, if I Login i get a
I have the follwing portlet.ext.properties:
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.
Has anybody setted up JAAS on JBoss sucessfully (or has anybody a tutorial). Any help is welcome!
I'm trying to enable JAAS on JBoss, if I Login i get a
java.lang.IllegalStateException: Application Policy is null for the security domain:\PortalRealm (without the backslash, just escapeing the smiley) Exception.I have the follwing portlet.ext.properties:
#JAAS STUFF
portal.configuration=false
portal.jaas.enable=true
portal.impersonation.enable=false
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.
Has anybody setted up JAAS on JBoss sucessfully (or has anybody a tutorial). Any help is welcome!
Florian Huber:
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.
Has anybody setted up JAAS on JBoss sucessfully (or has anybody a tutorial). Any help is welcome!
It seems you have authentication running and just authorization is missing.
But then this is actually one class that you need: The LoginModule.
I created one myself which on one side speaks JBoss LoginModule API and on the other side queries Liferay UserLocalServiceUtil.
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.
Florian Huber, modified 14 Years ago.
RE: JAAS on JBoss
(Answer)
Junior Member
Posts: 29
Join Date: 3/23/11
Recent Posts
Hiran Chaudhuri:
But then this is actually one class that you need: The LoginModule.
I created one myself which on one side speaks JBoss LoginModule API and on the other side queries Liferay UserLocalServiceUtil.
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.
I have forgotten this thread, normaly i post a solution if I found one!
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.
If anybody needs this, I will provide the full source.
Greetings Florian Huber
I have the follwing portlet.ext.properties:
I hope that this was just a typing error. The file name should be portlet-ext.properties
yeah, is an typo, sorry!
Great to hear that it was just a typo and you've solved the problem. Wasn't too sure if the problem was still occurring.