Show Table of Contents
36.3. slapi_encode()
Encodes a value with the specified algorithm.
Syntax
#include "slapi-plugin.h" char* slapi_encode(char *value, char *alg);
Parameters
This function takes the following parameters:
|
value
| The value that needs to be encoded. |
|
alg
| The encoding algorithm. The following algorithms are supported in a default Directory Server installation:
NULL for the alg parameter, the scheme used is determined by the setting of the server's passwordStorageScheme value within the server configuration entry (cn=config). If no value is present, SSHA is the default. |
Returns
This function returns one of the following values:
- The encoded (hashed) value.
NULLif an error occurs; for example, if no matching algorithm is found.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.