Thanks tcherel and Scott.
Scott I ve read about the LoginInitialContextFactory.
If I get it right I need to do followings:
| 1. write a new application-policy (login-config.xml) based on a
login-module or use the pre-defined client-login.
| 2. in the DD use the
You don't do 4. This is done by JNDI when you use the
org.jboss.security.jndi.LoginInitialContextFactory class as the
Context.INITIAL_CONTEXT_FACTORY value in the env passed to
InitialContextFactory.
View the original post :
As far as I understand, authetnication through the JNDI context is not
supported by JBoss.
So, if you want to do it anyway, you will need to develop your own JBoss
specific code to support it (or wait that JBoss supports it).
The other standard authentication mechanism is to use JAAS. I do
Read about org.jboss.security.jndi.LoginInitialContextFactory:
http://www.jboss.org/wiki/Wiki.jsp?page=LoginInitialContextFactory
Passing the login credentials through the JNDI InitialContext is not a
standard. There is no j2ee spec that even suggests this is how a client might
provide its