Re: Tomcat Realm
On Jul 23, 6:23 am, twiggy182 <twiggy...@xxxxxxxxxxx> wrote:
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
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
.
Relevant Pages
- Re: Directory Server LDAP/LDIF import - working yet not working???
... > accounts local particularly since our servers have different passwords. ... not every account will be going into LDAP. ... >> Make sure your directory server is patched. ... (comp.unix.solaris) - Re: "bulk" create of 400 users
... > Username and passwords are available as a textfile in a non-crypted ... If you are using samba or LDAP as a distributed authentication scheme, ... one or more LDIF files and load them into the LDAP server. ... (comp.os.linux.security) - Tomcat Realm
... 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 ... (comp.lang.java.programmer) - Re: import a md5 hash to openldap userpassword
... this will probably land on some ldap ldap list but maybe someone knows ... i have a couple of users in a database with the passwords stored as md5 ... Without having the plaintext passwords, ... this means that you want an SSL link to your ldap server. ... (Debian-User) - Re: Does samba 3.0.14Aa on OS 5.0.6 work with ldapsam backend on another LDAP server?
... used 3.0.9 on SCO 5.0.6 for quite some time after suffering problems I ... a RedHat4 box running samba 3.0.10 and OpenLDAP 2.2.13. ... and no LDAP server (although there were the ... share on the SCO server without any smbpasswd on that server! ... (comp.unix.sco.misc) |
|