[Date Prev][Date Next] [Chronological] [Thread] [Top]

About slapi_pw_find() in SLAPI support (ITS#2615)



Full_Name: Emmanuel Duru
Version: 2.2.0 alpha
OS: Solaris 8
URL: 
Submission from: (NULL) (195.68.44.148)


I see from the code in slapi_utils.c that the slapi_pw_find() function is not
implemented (it always returns an error). I think it could be interesting to
implement it, because bind plug-ins often use it, such as the bind demonstration
plug-in provided with iPlanet.
The aim of this function is to check whether the password given as the second
argument of the function matches one value in the array of passwords given as
the first argument of the function. The value to check is given in clear,
whereas the values in the array may be hashed or encrypted (such as iPlanet
server is configured to store the passwords in the entries).
A minimum implementation could be to compare the value to check with the values
in the array, and to return success (0) if one value matches.