Ask the Expert

Creating a user who can't change his password

I want to create a user who can not change his password.

    Requires Free Membership to View

Unfortunately, all users have the ability to change their own password. One of the ways to get around this is to implement a password verification function that will always fail, no matter what the password. Then assign this password verification function to that user.

Keep in mind that in today's ever-increasing need for secure databases, that passwords should be changed on a regular basis. Disabling password changing for a user is probably not a very good idea.

This was first published in October 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: