Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual page 441

Table of Contents

Advertisement

Syntax
#include "slapi-plugin.h"
int slapi_pw_find_sv( Slapi_Value **vals, const Slapi_Value *v );
Parameters
This function takes the following parameters:
Pointer to the array of Slapi_Value structure pointers, containing the
vals
values of an attribute that stores passwords (for example, the userpassword
attribute).
Pointer to the Slapi_Value structure containing the password that you
v
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().
Returns
This function returns one of the following values:
if the password specified by
0
A non-zero value if the password
Description
This function replaces the deprecated
Directory Server releases.
When the Directory Server stores the password for an entry in the
attribute, it encodes the password using different schemes. Supported schemes are
(default),
,
SSHA
SHA
CRYPT
Use this function to determine if a given password is one of the values of the
attribute. This function determines which password scheme was
userpassword
used to store the password and uses the appropriate comparison function to
compare a given value against the encoded values of the
See Also
slapi_is_encoded()
slapi_encode()
was found in
v
was not found in
v
slapi_pw_find()
, and
.
CLEAR
Functions for Handling Passwords
.
vals
.
vals
function from previous
userpassword
userpassword
Chapter 15
Function Reference
attribute.
439

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents