On 12/06/2011 17:12, Petr Hracek wrote: > And what about in case that I have my own program for accessing to the > specific > databases where the passwords are stored as hashes? > > Are there any possibilities how to run that program for getting unhashed > password from database?
Why not hash the inbound password, then send & compare it against the one in the DB, rather than decoding it? The Realm implementations can handle this, if you're using a standard hashing method that Java recognises. Hopefully you've not invented your own hashing method. p > best regards > Petr > Dne 10.6.2011 16:23, Pid napsal(a): >> On 10/06/2011 11:26, Petr Hracek wrote: >>> Dear tomcat users, >>> >>> I would like to ask you how can I authenticate users to access tomcat >>> page? >>> My users are stored in standard /etc/passwd file >> I'm not sure I'd give Tomcat access to the local user authentication. >> >> >>> or users which are stored in another database engine than Realm >> You can configure a DataSource& a DataSourceRealm to point at any >> database. >> >> >> p >> >>> thank you in advance >>> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >
signature.asc
Description: OpenPGP digital signature