HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameter:
Entry that you want to free. If NULL, no action occurs.e
Memory concerns To free entries, always use this function instead of using slapi_ch_free()
or free().
See also
“slapi_entry_alloc()”
“slapi_entry_dup()”
24.32 slapi_entry_get_dn()
Gets the distinguished name (DN) of the specified entry.
Syntax
#include "slapi-plugin.h"
char *slapi_entry_get_dn( Slapi_Entry *e );
Parameters This function takes the following parameter:
Entry from which you want to get the DN.
e
Returns This function returns the DN of the entry. This returns a pointer to the actual DN in
the entry, not a copy of the DN. You should not free the DN unless you plan to replace it by
calling “slapi_entry_set_dn()”.
Memory concerns Use “slapi_ch_free()” if you are replacing the DN with
slapi_entry_set_dn().
See also
“slapi_ch_free()”
“slapi_entry_set_dn()”
24.33 slapi_entry_get_dn_const()
Returns as a const the DN value of the entry that you specify.
Syntax
#include "slapi-plugin.h"
const char *slapi_entry_get_dn_const( const Slapi_Entry *e );
Parameters This function takes the following parameter:
Entry from which you want to get the DN as a constant.e
Returns This function returns one of the following values:
The DN of the entry that you specify. The DN is returned as a const; you are not able to
modify the DN value.
The NDN value of Slapi_DN if the DN of the Slapi_DN object is NULL.
Memory concerns Never free this value.
24.34 slapi_entry_get_ndn()
Returns the normalized DN from the entry that you specify.
Syntax
24.32 slapi_entry_get_dn() 225