Sun Directory Server Enterprise Edition 7.0 Developer's Guide


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 uid=bjensen, the function adds uid=bjensen to the entry as an attribute value.)


#include "slapi-plugin.h"
 int slapi_entry_add_rdn_values( Slapi_Entry *e );


This function takes the following parameter:


Entry to which you want to add the RDN attributes.


This function returns one of the following values:


If the attribute type corresponding to the RDN already has a value matching the RDN value for equality, the value is not added. This function does not however examine other attrbute types not in the RDN, whose values may match the RDN value for equality.

Memory Concerns

Free the entry from memory by using slapi_entry_free() if the entry was allocated by the user.

See Also