Issue #699 has been updated by Leonardo Arena.

+1 on this feature.
PLA reads the hash algorithm used for each account and SSP should do the same.
Currently SSP password change does not work if the stored hash algorithm does 
not match the configured hash algorithm in SSP.
----------------------------------------
Feature #699: set hash type based on stored password
http://tools.lsc-project.org/issues/699

Author: alex p
Status: New
Priority: Normal
Assigned to: 
Category: Self Service Password
Target version: self-service-password-?


It's sometimes useful to set hash type based on the stored password (i.e. some 
passwords stored in cleartext, some in ssha).
When stored password is cleatext it will be cleartext after changing, and if it 
is ssha it would be ssha after changing.

In the code it would be something like this:

@   
    $searchUserPass = 
ldap_search($ldap,$userdn,"(objectClass=*)",array("userPassword")) or 
die("error");
    $storedHash = ldap_get_values($ldap, 
ldap_first_entry($ldap,$searchUserPass), "userPassword");

    if (strpos(strtolower($storedHash[0]),"{".strtolower($hash)."}") === false) 
{
        $hash = "clear";
    }
@




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________
ltb-dev mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-dev

Reply via email to