Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

Tomcat Realm

Thread view: 
twiggy182 - 23 Jul 2007 14:23 GMT
Hi,

is it possible to implement authentication in Tomcat using an LDAP
server for passwords and using a JDBC connection for roles?

I have read-only access to an LDAP server that contains user
passwords, but I want specific access for differents section of my
site.

Do you have any idea that could help me?

Thanks
Manish Pandit - 23 Jul 2007 17:56 GMT
> Hi,
>
[quoted text clipped - 8 lines]
>
> Thanks

Yes, it is. You need to extend JAASRealm and implement the
authenticate( ) method. You can then have a custom implementation to
return a GenericPrincipal with the user name and role(s). This realm
needs to be configured in server.xml - look up
http://tomcat.apache.org/tomcat-5.0-doc/realm-howto.html for more
information on doing that.

-cheers,
Manish


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.