This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Security and the fly likes Use realm to change password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Use realm to change password" Watch "Use realm to change password" New topic
Author

Use realm to change password

Krzysztof Malik
Greenhorn

Joined: Jul 24, 2007
Posts: 4
Hello,
I'm testing the simple web application which use standard form based authentication. I've tested with file realm and jdbc realm and it works fine.
The problem is when I want change password by use realm. I can't find way how change password without use direct connection to database.
Is any mechanism implemented in realm to change password? I think that should be, e.g. to change to ldap realm only I should configure application server and change web.xml.
Is possible to create new user by using realm?
I use jdk 1.5, Sun Java System Application Server 9.

Thanks a lot,
Chris.

[ September 05, 2007: Message edited by: Krzysztof Malik ]
[ September 05, 2007: Message edited by: Krzysztof Malik ]
Henrique Ordine
Ranch Hand

Joined: Sep 03, 2004
Posts: 127
Yes, it's possible. In the admin console, click on your realm and click the manage users button. Then select new user.


J2EE Architect/Developer
Krzysztof Malik
Greenhorn

Joined: Jul 24, 2007
Posts: 4
Thanks for reply but I want to authorized user could change his password via web application.
[ September 06, 2007: Message edited by: Krzysztof Malik ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41634
    
  55
In that case, no, Tomcat has nothing to help you. You need to write a little web app yourself that does this.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Use realm to change password