I think JNDIRealm will do this. However, it seems to be a pretty newly added
feature and as far as I can tell, it isn't documented very well. I've been
wondering the same thing. If you figure it out, please let me know. You
might want to do a search of the mail list archives. I saw a few messages
about it in there. However, it looked like it was about a 3rd party add-on
that did it. I'm pretty sure the functionality now exists in it natively. I
think it's configured similar to JDBCRealm in server.xml. So, I've been
thinking that I might try to figure that out first, since, it seems to be
better documented.

Jon

----- Original Message -----
From: "Astrid Wagner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 6:04 AM
Subject: ldap authentication with tomcat


> Hi,
>
> I am new to the subject:
> How can I enforce ldap authentication for certain resources
> using tomcat - similar to the
>
> <Directory  toProtectResourcePath >
>     Options FollowSymLinks
>     AllowOverride None
>     AuthType Basic
>     AuthName "Authentication"
>     AuthLDAPURL ldap://ldapUrl
>     require valid-user
> </Directory>
>
> for apache in order to be able to get user information via
> e.g. getRemoteUser() etc. ?
>
> And by the way: Where is a valuable description of the configuration
> with server.xml and web.xml?
>
> Thanks.
>
> Astrid
>
>
>

Reply via email to