2016-11-21 18:24 GMT+01:00 k c <[email protected]>:

> Looking at your logs, an idea came to my mind. I have a posthook script
> that manages the password history and prevents users to set an older
> password for their account.
>
> I disabled posthook but the problem is still here.


Indeed, I see no link between the posthook script and the issue you have.


> [Mon Nov 21 16:52:42.432046 2016] [:error] [pid 11565] [client
> 10.75.1.57:43106] PHP Warning:  ldap_get_values(): Cannot get the
> value(s) of attribute Decoding error in
> /usr/share/self-service-password/lib/functions.inc.php on line 259,
> referer:
> https://ssp.company.com/motdepasse/index.php?action=resetbytoken&token=44:qO4BudofumwxPJs1Nwe7VcsMYOf5uHMi79Qfge/nCWw=l1Qra33VKgZt9xsYiMpq6AUD5h98KSJoZi8=

The error is here. I don't see why you get it only with resetbytoken
and not in change mode.

The issue may be linked to your LDAP Directory, which one are you using?


What you can try is to get binary value for userPassword by changing
this line in lib/functions.inc.php

$userpassword = ldap_get_values($ldap,
ldap_first_entry($ldap,$search_userpassword), "userPassword");

Into :

$userpassword = ldap_get_values_len($ldap,
ldap_first_entry($ldap,$search_userpassword), "userPassword;binary");



Clément.
_______________________________________________
ltb-users mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to