1LDAP_DELETE(3) Library Functions Manual LDAP_DELETE(3)
2
3
4
6 ldap_delete, ldap_delete_s - Perform an LDAP delete operation
7
9 OpenLDAP LDAP (libldap, -lldap)
10
12 #include <ldap.h>
13
14 int ldap_delete_s(ld, dn)
15 LDAP *ld;
16 char *dn;
17
18 int ldap_delete(ld, dn)
19 LDAP *ld;
20 char *dn;
21
23 The ldap_delete_s() routine is used to perform an LDAP delete operation
24 synchronously. It takes dn, the DN of the entry to be deleted. It
25 returns an LDAP error code, indicating the success or failure of the
26 operation.
27
28 The ldap_delete() routine is used to perform an LDAP delete operation
29 asynchronously. It takes the same parameters as ldap_delete_s(), but
30 returns the message id of the request it initiated. The result of the
31 delete can be obtained by a subsequent call to ldap_result(3).
32
34 ldap_delete_s() returns an LDAP error code which can be interpreted by
35 calling one of ldap_perror(3) and friends. ldap_delete() returns -1 if
36 something went wrong initiating the request. It returns the non-nega‐
37 tive message id of the request if things went ok.
38
40 ldap(3), ldap_error(3)
41
43 OpenLDAP is developed and maintained by The OpenLDAP Project
44 (http://www.openldap.org/). OpenLDAP is derived from University of
45 Michigan LDAP 3.3 Release.
46
47
48
49OpenLDAP 2.3.34 2007/2/16 LDAP_DELETE(3)