LDAP Tool Box project: even LDAP administrators need help
Reset by questions
Configuration file:
self-service-password/config.inc.php
How it works?
First, the user should choose a question and register an answer. This answer will be stored in an attribute of its LDAP entry with this syntax:
{questionid}answer
You should configure your LDAP directory to protect this data, to be only accessed by Self Service Password.
Then, the user can reset its password by entering its answer and setting a new password.
Activation
You can enable or disable this feature with $use_questions:
$use_questions = true;
Attribute and object class
Set the attribute in which the answer will be stored:
$answer_attribute = "info";
If the above attribute is not in a standard user object class, configure the object class to use with this attribute:
$answer_objectClass = "extensibleObject";
The object class will be added to the entry only if it is not already present.
Edit questions
Questions are registered in lang files: lang/codelang.inc.php.
You can add a question by creating a new value in the $messages['questions'] array:
$messages['questions']['ice'] = "What is your favorite ice cream flavor?";



