I think the problem is that my client application does not have a reference to the login-config.xml where the application-policy name (client-login) exists. I currently don't have a reference to "client-login" and no reference for its login module in my client application.
From what I understand, the LoginContext uses the application-policy name as an index into a configuration|| to determine which LoginModules should be used. For clients in the same VM as jboss, they use a XML configuration which is loaded by the XMLLoginConfig mbean.
So, for a client outside (ie. remote client) of the jboss VM, what configuration should I use and how do I load it? And where would I define "client-login" application-policy and its login module? Would I be able to define a non-XML configuration? Thanks.
These are the properties I'm setting when I run my client application:
java -Dlogin.configuration.provider=org.jboss.security.ClientLoginModule -Djava.naming.provider.url=localhost -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces -classpath $EJB_DIR/jboss-jaas.jar:$EJB_DIR/log4j.jar:$EJB_DIR/jboss-common-client.jar:
$EJB_DIR/jbossall-client.jar:$EJB_DIR/jnet.jar:$APP/dist/app.jar JBossLogin test test
Scott M Stark wrote:
Using what JDK? With 1.3 just having the jboss-jaas.jar is all that is needed.
With 1.4+ since JAAS is already included you would have to install the
custom the JBoss custom Configuration class as the default implementation
using Configuration.setConfiguration(Configuration) passing in a
org.jboss.security.auth.login.XMLLoginConfigImpl instance. This class supports
both the custom login-config.xml syntax as well as the default text file
Sun format.
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message ----- From: "Lorne Mach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 24, 2003 12:19 PM
Subject: [JBoss-user] Jboss-jaas and client login
Hi,
I'm making a client side application that is running in a separate VM than jboss 3.0.5. When I perform a login to jboss, the login context that is created (new LoginContext("client-login", callbackhandler) cannot find the login configuration module. I'm trying to use the custom implementation of the javax.security.auth.login.Configuration classes that the jboss-jaas.jar provides.
How do I do this? Or, is there documentation and references that would be helpful?
Thanks.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
