users@glassfish.java.net

Re: Programmatic Login - No Credential Exception

From: <forums_at_java.net>
Date: Wed, 6 Apr 2011 15:26:16 -0500 (CDT)

Thank you for your answer. I'm using login.conf both in web in standalone
mode, but I'm including it in my java code as shown below

[php] System.setProperty("java.security.auth.login.config", "login.conf");
[/php]
and content of my login.conf file

[php] default { com.sun.enterprise.security.auth.login.LDAPLoginModule
required; } [/php]
In my opinion loading login.conf is not the problem in my case. However in my
standalone application I was able to load only default realm and I have no
clue why. In web mode everything works perfectly fine.
If you require more details, please see
[link]http://www.java.net/forum/topic/glassfish/glassfish/gwt-development-mode-programmatic-login-problem[/link]
I will greatly appreciate any suggestion that you will come up with. I'm
looking forward to hearing from you again soon.


--
[Message sent by forum member 'lhanusiak']
View Post: http://forums.java.net/node/789029