Slapi_Encode() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for Handling Passwords
Returns
This function returns one of the following values:
1
0
See Also
slapi_pw_find_sv()

slapi_encode()

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
alg
Returns
This function returns one of the following values:
The encoded (hashed) value.
Null
438
Netscape Directory Server Plug-in Programmer's Guide • October 2004
if the value is encoded.
if the value is not encoded.
The value that needs to be encoded.
The encoding algorithm. The following algorithms are supported in a 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.
if an error occurs; for example, if no matching algorithm is found.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents