Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Tomcat
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Tomcat
Tomcat datasourceRealm with md5 passwords
Jeroen Nouws
Greenhorn
Posts: 17
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hey everyone,
I have a webapp with a datasource realm for loging in,
problem is that the passwords are stored as clear text at this time and i want to have them as md5 or sha.
how do i configure my context.xml file then for this digested passwords?
<Context > <Resource name="jdbc/fileupload" auth="Container" maxActive="100" maxIdle="30" maxWait="10000" username="root" password="" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/fileupload?autoReconnect=true" logAbandoned="true" removeAbandoned="true" removeAbandonedTimeout="60" type="javax.sql.DataSource" /> <Realm className="org.apache.catalina.realm.DataSourceRealm" debug="99" dataSourceName="jdbc/fileupload" localDataSource="true" userTable="userpass" userNameCol="username" userCredCol="password" userRoleTable="userrole" roleNameCol="role" /> </Context>
thank you for checking this
Tim Moores
Saloon Keeper
Posts: 7585
176
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Search for "digest" in
http://tomcat.apache.org/tomcat-7.0-doc/config/realm.html
http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html#Digested_Passwords
is also relevant.
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
can't login with correct username and password
Encrypting Password in Database
security constraint
Help in database connections
MD5 and Jetty webserver security?
More...