change-password

What is the best way to change a user-password remotely in Unix?

What is the best way to change a user-password remotely in Unix? This must be performed by the user, in a Web-app or Windows-App, without using SSH or any direct connection between the user and the server (direct command line not allowed). Thanks ...

Forgot Password: what is the best method of implementing a forgot password function?

I'm wondering what the best method is for creating a forgot password function on a website. I have seen quite a few out there, here are a few or combination of: passphrase question / answer (1 or more) send email with new password on screen give new password confirmation through email: must click link to get new password page requiring...

Optimum tempory password length for SHA hash

When creating a "forgotten password" mechanism, we might want to create a tempory password for the user which is stored using SHA1 (feel free to suggest other C# Cryptography mechanism). How long should we make the tempory password? Too short, it could be brute forced. Too long and the unnecessary length is redundant since the string is...

How to not use ASP.Net Membership Security Question and Answer for custom password recovery?

Hi, I don't want to have the security question and answer feature that ASP.Net Membership Provider gives, but I DO want to enable a lost/forgotten password page. This page would be where a user would enter his/her email address and an email would be sent to that address if the user was registered for them to reset their password via a l...

JQuery Validator Updated Password

I have a form which have three fields Old Password New Password Confirm Password These fields are optional and only mandatory when user enter some text into New Password How can i apply jQuery Validator plugin for the same. jQuery.validator.addMethod("pass2", function(value,element,param) { var op=document.forms[0].oldpa...

In ASP.NET Webforms, ChangePassword: how do I set SuccessTemplate to visible after password's been changed?

It does allow me to change the password but the view is reset to its original state. OnInit looks like this: changePassword.ChangingPassword += ChangePasswordButton_Click; and the method implementation: private void ChangePasswordButton_Click(object sender, EventArgs args) { MembershipUser user = Membership.GetUser(); string oldP...

Fields for reseting password

I am upgrading my reset password procedure of my webpage. What fields should i include in my SQL table? After searching all over the web i decided to add these goodies Guid Expiration date of guid (i guess 3 days is fine) Timestamp of the change password request Ip address of the user is there anything else that could be usefull? ...

ChangePassword control and setting regular expression for new password

This seems like it should have a simple solution but I can't seem to find it. I'm using the ChangePassword control in an ASP.NET 2.0 application, using both the ChangePasswordTemplate and SuccessTemplate to define custom styling. The textboxes have IDs as follows         Current Password Textbox ID = CurrentPassword              New Pa...

How do you change a user password in a script with busybox and openssl?

I need to synchronize a user account and password to an external source on a system with busybox and openssl installed. When the external source tells my system to update credentials, how do I change the user's password in a script? I will have the password in plain text. This has to be automated, and from what I can tell busybox pass...

Set password of an existing sql ce database (per Code)

Hello, I am working with SQL Server and I want to set the Database password of a SQL Server CE Database (*.sdf). I found the Command how I can create a new database with password: CREATE DATABASE "secure.sdf" DATABASEPASSWORD '<enterStrongPasswordHere>' But I want to set a password of an existing db. ...

PHP driven site needs password change.

I have inherited a website that needs the password changed that accesses the database. I can see that there are two tables within the database but neither of them have username or password info. The previous web guy moved out of the country and can't be reached. I am not up-to-speed enough to figure this out. I have gone through all ...

How to Script Automated Root Password Changes?

Currently our process consists of logging into each *nix server and manually changing the password for each. My question is, what is a good way to automate this? I'm thinking of possibly a couple different ways to do this and would like input from others on what they recommend, use, etc. One way I was thinking is a text file with a lis...

DirectoryEntry to change password: Different behavior between Vista/Server2008

Hey everyone, On a Vista dev machine I used this code successfully to change user "Administrator" password: directoryEntry.Invoke("SetPassword", "new"); When I moved it over to my Server 2008 dev machine that code did not work, and I was forced to use the following code: directoryEntry.Invoke("ChangePassword", new object[] { "old", ...

Grails password change: Allow only "new" passwords.

Hi, I need to improve security in a website built on grails. The requirement is that when a user changes its password, it shouldn't be able to choose from any of the previous N passwords. Does anyone know a module for this? Should I roll my own? Any thoughts / tips will be appreciated. Thanks in advance ...

Intercepting Change Password in Windows - Showing our custom interface

Hello all I've been trying to synchronize the profile passwords of a third party system with AD. The third party system has its user profiles stored in a database. I initially tried of writing a password filter to get the password in clear text and updating it in the database. Later i learnt that it is extremely risky to mess with the ...

How to change kerberos passwords in Java

Hello, I have to admin kerberos users directly in Java (J2EE web-app). How can I do the equivalent to kpasswd (or kadmin) command with/without extra lib? I found a few commercial APIs but they are very expensive... Thank you for your help ...

Old password still working after password change in asp.net membership

Am using ASP.NET membership authentication in a small website and i just noticed some thing funny during testing. Am trying to enable user to change their login password any time they wish, i dragged a change password control to the form, i changed the password for my test account, but now all passwords are still working. I can login w...

Accessing request.user in Django Forms.

This is pretty covered, but I'm still stucked here. I made a change password form, as you can see: class ChangePassForm(forms.Form): old_password = forms.CharField(min_length = 3, widget = forms.PasswordInput) new_password1 = forms.CharField(min_length = 3, widget = forms.PasswordInput) new_password2 = forms.CharField(min...

Grails spring security / Acegi. Custom User + Password expired management.

Hi, I'm working on a grails legacy project. A domain class called User exists. It contains password, username, roles, etc. This project uses Spring Security for role management. I would like to add expiration of credentials ( force the User to renew its password). I've modified the User class. Not it implements the UserDetails interf...

Grails + Acegi: How to handle password renewal ? Logged vs not logged user

Hi, I'm writing a module to force a user whose password has expired to renew its password. This app uses the acegi security plugin. After the expired credentials are detected, the user is redirected to a "insert a new password" page. However, when the form is submitted, the auth action is executed, instead of the desired one (renewPass...