ldap_delete(3ldap)
ldap_delete, ldap_delete_s --
LDAP delete operations
Synopsis
#include <lber.h>
#include <ldap.h>
int ldap_delete_s(LDAP
ld, char
dn);
int ldap_delete(LDAP
ld, char
dn);
Description
The ldap_delete_s routine is used to perform an LDAP
delete operation synchronously. It takes dn, the DN of
the entry to be deleted. It returns an LDAP error code, indicating
the success or failure of the operation.
The ldap_delete routine is used to perform an LDAP
delete operation asynchronously. It takes the same parameters as
ldap_delete_s, but returns the message ID of the request
it initiated. The result of the delete can be obtained by a subsequent call
to
ldap_result(3ldap).
Return values
ldap_delete_s returns an LDAP error code which can be
interpreted by calling one of the functions documented on the
ldap_perror(3ldap)
manual page. ldap_delete returns -1 if initiating the request
produced an error. On success, it returns the non-negative message
ID of the request.
References
Intro(3ldap),
ldap_perror(3ldap)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.