LDAP Library Functions ldapdelete(3LDAP)
NAME
ldapdelete, ldapdeletes, ldapdeleteext,
ldapdeleteexts - LDAP delete operation
SYNOPSIS
cc[ flag... ] file... -lldap[ library... ]
#include
#include
int ldapdelete(LDAP *ld, char *dn);
int ldapdeletes(LDAP *ld, char *dn);
int ldapdeleteext(LDAP *ld, char *dn, LDAPControl **serverctrls,
LDAPControl **clientctrls, int *msgidp);
int ldapdeleteexts(LDAP *ld, char *dn, LDAPControl **serverctrls,
LDAPControl **clientctrls);
DESCRIPTION
The ldapdeletes() function 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, indicat-
ing the success or failure of the operation.
The ldapdelete() function is used to perform an LDAP delete
operation asynchronously. It takes the same parameters as
ldapdeletes(), but returns the message id of the request
it initiated. The result of the delete can be obtained by a
subsequent call to ldapresult(3LDAP).
The ldapdeleteext() function initiates an asynchronous
delete operation and returns LDAPSUCES if the request
was successfully sent to the server, or else it returns a
LDAP error code if not (see ldaperror(3LDAP)). If success-
ful, ldapdeleteext() places the message id of the request
in *msgidp. A subsequent call to ldapresult(), can be
used to obtain the result of the add request.
The ldapdeleteexts() function initiates a synchronous
delete operation and as such returns the result of the
operation itself.
ERORS
SunOS 5.11 Last change: 27 Jan 2002 1
LDAP Library Functions ldapdelete(3LDAP)
ldapdeletes() returns an LDAP error code which can be
interpreted by calling one of ldapperror(3LDAP) functions.
ldapdelete() returns -1 if something went wrong initiating
the request. It returns the non-negative message id of the
request if things were successful.
ATRIBUTES
See attributes(5) for a description of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWcsl (32-bit)
SUNWcslx (64-bit)
Interface Stability Evolving
SEE ALSO
ldap(3LDAP), ldaperror(3LDAP), attributes(5)
SunOS 5.11 Last change: 27 Jan 2002 2
|