-
1. Re: Using Context.SECURITY_PRINCIPAL
rinoong Feb 18, 2003 9:07 PM (in response to rmital)
Try using "org.jboss.security.jndi.LoginInitialContextFactory" for your java.naming.factory.initial property. -
2. Re: Using Context.SECURITY_PRINCIPAL
cobraflow Feb 21, 2003 11:41 AM (in response to rmital)JBoss does not support passing this information in the environment. You must use a client side LoginModule...
Lewis -
3. Re: Using Context.SECURITY_PRINCIPAL
rinoong Feb 24, 2003 1:00 PM (in response to rmital)While it is true that JBoss does not directly support passing this information in the environment, a workaround has been provided to mimic this mechanism. This is a quote from the JBoss documentation:
"Historically JBoss has not supported providing login information via the IntialContext factory environment. The reason being that JAAS provides a much more flexible framework. For simplicity and migration from other application server environment that do make use of this mechanism, JBoss-3.0.3 adds a new InitialContext factory implementation that allows this. JAAS is still used under in the implementation, but there is no manifest use of the JAAS interfaces in the client application.
The factory class that provides this capability is the org.jboss.security.jndi.LoginInitialContextFactory." -
4. Re: Using Context.SECURITY_PRINCIPAL
mikewazowski Mar 5, 2003 6:29 PM (in response to rmital)Hi rinoong,
i got the same problem when trying to set up
Context.SECURITY_PRINCIPAL "..." with
Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"
Where can I found the org.jboss.security.jndi.LoginInitialContextFactory you mentioned, in my Jboss3.0.4 there is no such class?!
thx. mike -
5. Re: Using Context.SECURITY_PRINCIPAL
rinoong Mar 7, 2003 12:46 PM (in response to rmital)The said class is in the jbosssx.jar which you'll find in either the server/default/lib or server/all/lib directory.