HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
36.2 slapi_is_encoded()
Checks whether the specified value is encoded with any known algorithm.
Syntax
#include "slapi-plugin.h"
int slapi_is_encoded(char *value);
Parameters This function takes the following parameter:
The value, the encoding status of which needs to be determined.
value
Returns This function returns one of the following values:
1 if the value is encoded.
0 if the value is not encoded.
See also
slapi_pw_find_sv()
“slapi_encode()”
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:
The value that needs to be encoded.
value
The encoding algorithm. The following algorithms are supported in a default Directory
Server installation:
CRYPT
CLEAR
SSHA
SHA
If you pass 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.
alg
Returns This function returns one of the following values:
The encoded (hashed) value.
NULL if an error occurs; for example, if no matching algorithm is found.
See also
slapi_pw_find_sv()
“slapi_is_encoded()”
36.4 slapi_add_pwd_control()
Sends back information about expired or expiring passwords.
Syntax
#include "slapi-plugin.h"
int slapi_add_pwd_control ( Slapi_PBlock *pb, char *arg, long time )
292 Functions for handling passwords