I'm using org.apache.catalina.realm.JAASRealm for my authentication for my webapps, and I have got to the point where I want to use tomcat's manager and admin app.

Unfortunately when I try to use JAASRealm for the manager, JAASCallBackHandler throws an exception because it hasn't been given the username and password.

It is in fact throwing the exception before the user (i.e. me) has even hit the login button on the basic auth. login form.

It looks like JAASRealm has just not been developed that far yet. Is this so?

Secondly, how can I configure two realms so that manager can use the MemoryRealm and my apps can carry on using the JAASRealm?

I can't work out from the docs what exactly I am meant to do. To try to run both realms, I tried this with no joy:

<!-- This Realm uses the UserDatabase configured in the global JNDI
     resources under the key "UserDatabase".  Any edits
       that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
           debug="99" resourceName="UserDatabase"/>

<!-- this is the BlackSail realm -->
<Realm className="org.apache.catalina.realm.JAASRealm"
         appName="BlackSailRealm"
  userClassNames="org.blacksail.realm.BlackSailUser"
  roleClassNames="org.blacksail.realm.BlackSailRole"
           debug="0" />

Can anybody help?
Thanks
Adam


-- 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]



Reply via email to