Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

let users change own pwd with htpasswd

Status
Not open for further replies.

lleemon

Programmer
Mar 26, 2002
21
GB
I have created a password file using htpasswd utility.
It contails 2 users:
John:(encryptedpwd)
Jack:(encryptedpwd)

I have a cgi-page that allows only admins to add users to this file. I want to create a page for all users to be able to enter their username, current pwd, new password, new password again.

A script will change the old password with the new password depending on the following:
1. User exists
2. old pwd matches what currently is stored.

If 1 and 2 are true a script can call htpasswd and change the password.

My main question is: How do I decrypt my password file or compare the incoming old pwd to see if they match?

Thanks for any advice or directions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top