Functions for Handling Passwords
Table 15-22 Password Handling Routines
Function
slapi_pw_find_sv()
slapi_is_encoded()
slapi_encode()
slapi_pw_find_sv()
Determines whether or not a specified password matches one of the encrypted
values of an attribute. For example, you can call this function to determine if a
given password matches a value in the
Syntax
#include "slapi-plugin.h"
int slapi_pw_find_sv( Slapi_Value **vals, const Slapi_Value *v );
Parameters
This function takes the following parameters:
vals
v
Returns
This function returns one of the following values:
•
0 if the password specified by
•
A non-zero value if the password
426
Netscape Directory Server Plug-In Programmer's Guide • December 2003
Description
Determines whether or not a specified password matches one of the
encrypted values of an attribute.
Checks whether a value is encoded with any known algorithm.
Encodes a value with the specified algorithm.
Pointer to the array of Slapi_Value structure pointers, containing the
values of an attribute that stores passwords (for example, the userpassword
attribute).
Pointer to the Slapi_Value structure containing the password that you
wish to check (for example, you can get this value from the
SLAPI_BIND_CREDENTIALS parameter in the parameter block and create
the Slapi_Value using slapi_value_init_berval()).
attribute.
userpassword
was found in
.
v
vals
was not found in
v
.
vals
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN and is the answer not in the manual?
Questions and answers