File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes basic authentication password change Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "basic authentication password change" Watch "basic authentication password change" New topic

basic authentication password change

Khalil Salman

Joined: Sep 05, 2010
Posts: 11
When using basic authentication, is there any way to change the user's password and make the new password available without restarting the server?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
The server reads the configuration file on start-up, so the changes will not take effect until it's restarted.

So much trouble in the world -- Bob Marley
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Any somewhat serious web app will not get its user data from a file, but from a repository like a DB or LDAP - in which case a password change should take effect right away.

Basic authentication credentials are generally cached by the browser, though, so you need to restart that.
I agree. Here's the link:
subject: basic authentication password change
It's not a secret anymore!