Gets the distinguished name (DN) of the specified entry.
#include "slapi-plugin.h" char *slapi_entry_get_dn( Slapi_Entry *e );
This function takes the following parameter:
Entry from which you want to get the DN.
This function returns the DN of the entry. Notice that 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().
Use slapi_ch_free() if you are replacing the DN with slapi_entry_set_dn().