[jboss-user] [Security & JAAS/JBoss] - Re: Retreiving user roles using a ClientLogin
viniciuscarvalho
do-not-reply at jboss.com
Wed Oct 29 16:19:40 EDT 2008
Thanks, just a question tough!
>From what I've read so far, the ClientLoginModule only stores the credentials passed to it right? So when I perform a LoginContext.login(), it won't actually validate my user, since the correct module (ldap) is stored on the server side right? But, on my first EJB invocation the authentication really happens (its what I've understood). So I should do something like this:
| LoginContext.login();
| myEJB = (EJB)ctx.lookup(JNDI);
| myEJB.somemethod();
|
| //now I can
| LoginContext.getSubject()
|
Is this correct?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185536#4185536
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185536
More information about the jboss-user
mailing list