Claude,
This option should allow the VM to find your login configuration.
-Djava.security.auth.login.config==./auth.config
Make sure you replace the "./" with the path to you configuration file.
Kevin E. Gaasch
Java Consultant
Canyon, Texas
Home: (806)655-6460
Work: (806)324-4100 x4215
Cell: (806)674-1523
email: [EMAIL PROTECTED]
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Claude
Sent: Wednesday, September 19, 2001 6:53 AM
To: [EMAIL PROTECTED]
Subject: Authentication on the client side
Hi,
I use JBoss 2.4.0 and a stand-alone Java client.
On the client, I'm try to authenticate, using the LoginContext mecanism.
My Java source code is:
MyCallbackHandler handler = new MyCallbackHandler("user1", "password1");
LoginContext lc = new LoginContext("client-login", handler);
lc.login();
When the program tries to create the LoginContext object (lc), I get the
exception:
java.lang.SecurityException: Unable to locate a login configuration
The problem is: I have no idea of how to specify this login configuration.
I've tried to put it in a file called auth.conf, but it doesn't seem to be
read by the client. And I have no idea how to make my client read it.
Can anyone help?
Or is there a better way to specify this login configuration?
Thanks
Claude
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".