slapi_delete_internal()

slapi_delete_internal() performs an LDAP delete operation to remove a directory entry when it is called from your plug-in.

Unlike the standard LDAP delete operation, no LDAP result code is returned to a client. The result code is instead placed in a parameter block that is returned by the function.

Syntax
#include "slapi-plugin.h"
Slapi_PBlock *slapi_delete_internal( char * dn,
			LDAPControl **controls, int l );
Parameters
dn
The distinguished name (DN) of the entry that you want to delete.
controls
A NULL-terminated array of LDAP controls that you want applied to the delete operation.
l
Included for compatibility only. It is not used.
Returns
A new parameter block with the following parameter set is returned:
  • SLAPI_PLUGIN_INTOP_RESULT specifies the LDAP result code for the internal LDAP operation.