[Freeipa-users] Change Password From Web App

Simo Sorce ssorce at redhat.com
Wed Aug 12 12:00:07 UTC 2009


On Wed, 2009-08-12 at 13:30 +0200, Mark Hannessen wrote:
> Thank you very much,
> Sounds perfect to me.
> 
> I am however still running into a problem.
> I tried changing the password using MD5
> 
> $coded = array('userpassword' => "{MD5}" . base64_encode( pack( "H*", md5( 
> $newpassword ) ) ) );
> 
> And using CLEAR
> 
> $coded = array('userpassword' => "{CLEAR}$newpassword");
> 
> But both resulted into my user not being able to login in anymore.
> What kind of input does freeipa expect for userpassword?

The preferred method for changing the password is to use the
ldappassword operation.

Alternatively just add the plaintext password w/o any prefix.

Simo.




More information about the Freeipa-users mailing list