Hello,
The Question:
How do I specify a class other than
org.catalina.authenticator.BasicAuthenticator to handle Basic
authentication?
Background:
I have created a modification of
org.apache.catalina.authenticator.AuthenticatorBase, called
PerContextAuthenticatorBase, and have the accompanying BasicAuthenticator
class (PerContextBasicAuthenticator) that extends my new Base. I would like
to use it rather than BasicAuthenticator. I cannot seem to find where to do
that.
I am trying to set up a system where I can assign management of a particular
Web application to a specific user or group. For this purpose I have made
my own version of the HTMLManagerServlet, called
HTMLPerContextManagerServlet. The difference between mine is best
illustrated by an example URL:
http://localhost/pc-manager/myServletName?command=reload
-- instead of --
http://localhost/manager/reload?path=/myServletName
This allows me to use the standard Realm setup to protect each path.
Unfortunately I need to have one line in the pc-manager servlet's web.xml
file for each context. In the near future, I will have access to an LDAP
store with the user/group information, and I will be using that to
authenticate users, so I would rather customize the authenticator to take
advantage of our setup. Basically the accessControl() method looks at some
store of group->appPath mappings, and if the app being managed
(myServletName in the example above) is in the list for the user attempting
a login, it returns true just as if the group in web.xml had been matched.
This lets me keep the authorized list out of the web.xml file.
I apologize for the length of the post. Any help letting me know how to
specify a custom class to use instead of
Thanks,
Tim
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>