Functions for Managing Entries
Memory Concerns
When you no longer need to use the string, you should free it from memory by
calling the
See Also
slapi_entry2str()
slapi_str2entry()
slapi_entry_add_rdn_values()
Adds the components in an entry's relative distinguished name (RDN) to the entry
as attribute values. (For example, if the entry's RDN is
adds
Syntax
#include "slapi-plugin.h"
int slapi_entry_add_rdn_values( Slapi_Entry *e );
Parameters
This function takes the following parameter:
e
Returns
This function returns one of the following values:
•
LDAP_SUCCESS
also returns
the entry's RDN is
•
LDAP_INVALID_DN_SYNTAX
Memory Concerns
Free the entry from memory by using the
was allocated by the user.
See Also
slapi_entry_free()
270
Netscape Directory Server Plug-In Programmer's Guide • May 2002
slapi_ch_free()
to the entry as an attribute value.)
uid=bjensen
Entry to which you want to add the RDN attributes.
if the values were successfully added to the entry. The function
LDAP_SUCCESS
NULL
function.
if the entry is
NULL
.
if the DN of the entry cannot be parsed.
slapi_ch_free()
, the function
uid=bjensen
, if the entry's DN is
NULL
function, if the entry
, or if