1LDAP_DELETE(3)             Library Functions Manual             LDAP_DELETE(3)
2
3
4

NAME

6       ldap_delete,  ldap_delete_s,  ldap_delete_ext, ldap_delete_ext_s - Per‐
7       form an LDAP delete operation.
8

LIBRARY

10       OpenLDAP LDAP (libldap, -lldap)
11

SYNOPSIS

13       #include <ldap.h>
14
15       int ldap_delete_s(ld, dn)
16       LDAP *ld;
17       char *dn;
18
19       int ldap_delete(ld, dn)
20       LDAP *ld;
21       char *dn;
22
23       int ldap_delete_ext(ld, dn, serverctrls, clientctrls, msgidp)
24       LDAP *ld;
25       char *dn;
26       LDAPControl **serverctrls, **clientctrls;
27       int *msgidp;
28
29       int ldap_delete_ext_s(ld, dn, serverctrls, clientctrls)
30       LDAP *ld;
31       char *dn;
32       LDAPControl **serverctrls, **clientctrls;
33

DESCRIPTION

35       The ldap_delete_s() routine is used to perform an LDAP delete operation
36       synchronously.  It  takes  dn,  the  DN of the entry to be deleted.  It
37       returns an LDAP error code, indicating the success or  failure  of  the
38       operation.
39
40       The  ldap_delete()  routine is used to perform an LDAP delete operation
41       asynchronously. It takes the same parameters  as  ldap_delete_s(),  but
42       returns  the  message id of the request it initiated. The result of the
43       delete can be obtained by a subsequent call to ldap_result(3).
44
45       The ldap_delete_ext() routine  allows  server  and client  controls  to
46       be specified to extend the delete request. This routine is asynchronous
47       like ldap_delete(), but its return value is  an  LDAP  error  code.  It
48       stores  the  message  id  of  the  request in the integer pointed to by
49       msgidp.
50
51       The  ldap_delete_ext_s()  routine  is  the   synchronous   version   of
52       ldap_delete_ext().   It also returns an LDAP error code indicating suc‐
53       cess or failure of the operation.
54

ERRORS

56       ldap_delete_s() returns an LDAP error code which can be interpreted  by
57       calling one of ldap_perror(3) and friends.  ldap_delete() returns -1 if
58       something went wrong initiating the request. It returns  the  non-nega‐
59       tive message id of the request if things went ok.
60
61       ldap_delete_ext() and ldap_delete_ext_s() return some Non-zero value if
62       something  went wrong initiating the request, else return 0.
63

SEE ALSO

65       ldap(3), ldap_error(3)
66

ACKNOWLEDGEMENTS

68       OpenLDAP Software is developed and maintained by The  OpenLDAP  Project
69       <http://www.openldap.org/>.  OpenLDAP Software is derived from the Uni‐
70       versity of Michigan LDAP 3.3 Release.
71
72
73
74OpenLDAP 2.4.46                   2018/03/22                    LDAP_DELETE(3)
Impressum