[jboss-user] [Security & JAAS/JBoss] - Re: In valve getRemoteUser value returned as NULL always

twittemb do-not-reply at jboss.com
Fri Jul 21 09:01:11 EDT 2006


hello !

thx for all your answers 

I have found a solution tom y problem ... it is certainely not the moste efficient but it works.

I have created my own JBossSecurityMgrRealm (the server.xml file has to be updated) and i have adapted the hasRole() method. When no JBossGenricPrincipal can be found in the local cache (roleMap) I get roles and credentials from my own authentication clustered cache. I build a JBossGenericPrincipal and put it in the local cache, sa as the next time it will be directly found in the roleMap.

I'm not very proud of this fix but that seems to work properly !

What do you think about it ?

Thx.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959886#3959886

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959886



More information about the jboss-user mailing list