You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Isaac Cruz Ballesteros <ic...@sgi.es> on 2001/11/14 18:46:27 UTC

SHA passwords of LDAP and tomcat

Does anyone know why a SHA password generated by openLDAP is different from a 
SHA password generated by Tomcat?

# slappasswd -h {SHA} -s tomcat
{SHA}U2wLM5NFYWwbM8r0VEVNi4oZDWw=

# java org.apache.catalina.realm.RealmBase -a SHA tomcat
tomcat:536c0b339345616c1b33caf454454d8b8a190d6c

This is a problem because I want to authenticate users from tomcat, and it 
fails because passwords in LDAP are stored in "openldap" format

If I put by hand the password in tomcat format in LDAP, it works correctly

Any idea?

Thanks in advance.

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>