Hi Thomas, yes that's a good link.
Do you have much experience with JAASRealm in tomcat or with java stuff like javax.security.auth.login.LoginContext ?
I am trying to run my JAASRealm implementation, and I have it working successfully on my own apps, but when I try to use it for tomcat's manager tool (configured in webapps/manager.xml) I get the following exception (prettified by me):
Caused by: java.lang.NullPointerException
at (tomcat) ...JAASCallbackHandler.handle(JAASCallbackHandler.java:156)
at javax.security.auth.login.LoginContext$5.run(LoginContext.java:812)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:808)
at ...realm.BlackSailLoginModule.login(BlackSailLoginModule.java:135)
BlackSailLoginModule is mine. I can see in tomcat's source that it is not handling a null password, but I don't understand why it is being passed a null password. I think there must be an exception in auth.login.LoginContext.run() which is being swallowed, resulting in null user & pw parameters being passed.
This is happening after the login dialog is popped up, but before the user returns it.
Adam
On 08/27/2003 10:35 AM [EMAIL PROTECTED] wrote:
Hi folks,
For those interested in a basic example of using JAASRealm :
http://forum.java.sun.com/thread.jsp?thread=233317&forum=60&message=1225787
hope it can help,
Thomas
-- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

