2002-06-13 11:59:10 +08:00
|
|
|
.TH LDAP_ABANDON 3 "RELEASEDATE" "OpenLDAP LDVERSION"
|
1999-09-12 12:41:47 +08:00
|
|
|
.\" $OpenLDAP$
|
2002-01-05 05:17:25 +08:00
|
|
|
.\" Copyright 1998-2002 The OpenLDAP Foundation All Rights Reserved.
|
1999-09-12 12:41:47 +08:00
|
|
|
.\" Copying restrictions apply. See COPYRIGHT/LICENSE.
|
1998-08-09 08:43:13 +08:00
|
|
|
.SH NAME
|
2002-01-13 20:55:55 +08:00
|
|
|
ldap_abandon, ldap_abandon_ext \- Abandon an LDAP operation in progress
|
2002-06-21 15:32:54 +08:00
|
|
|
.SH LIBRARY
|
2002-06-22 05:25:38 +08:00
|
|
|
OpenLDAP LDAP (libldap, -lldap)
|
1998-08-09 08:43:13 +08:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
2002-01-13 20:55:55 +08:00
|
|
|
.B #include <ldap.h>
|
|
|
|
.sp
|
|
|
|
.BI "int ldap_abandon(LDAP *" ld ", int " msgid ");"
|
|
|
|
.sp
|
|
|
|
.BI "int ldap_abandon_ext(LDAP *" ld ", int " msgid ","
|
|
|
|
.RS
|
|
|
|
.BI "LDAPControl *" sctrls "[], LDAPControl *" cctrls "[]);"
|
|
|
|
.fi
|
1998-08-09 08:43:13 +08:00
|
|
|
.SH DESCRIPTION
|
|
|
|
The
|
|
|
|
.B ldap_abandon()
|
|
|
|
routine is used to abandon or cancel an LDAP
|
|
|
|
operation in progress. The \fImsgid\fP passed should be the
|
|
|
|
message id of an outstanding LDAP operation, as returned by
|
|
|
|
.BR ldap_search (3),
|
|
|
|
.BR ldap_modify (3),
|
|
|
|
etc.
|
|
|
|
.LP
|
|
|
|
.BR ldap_abandon ()
|
|
|
|
checks to see if the result of the operation has already come in. If it
|
|
|
|
has, it deletes it from the queue of pending messages. If not,
|
|
|
|
it sends an LDAP abandon operation to the the LDAP server.
|
|
|
|
.LP
|
|
|
|
The caller can expect that the result of an abandoned operation
|
|
|
|
will not be returned from a future call to
|
|
|
|
.BR ldap_result (3).
|
2002-01-13 20:55:55 +08:00
|
|
|
.LP
|
|
|
|
.B ldap_abandon_ext()
|
|
|
|
is equivalent to
|
|
|
|
.B ldap_abandon()
|
|
|
|
except that it allows server and client controls to be passed
|
|
|
|
in
|
|
|
|
.I sctrls
|
|
|
|
and
|
|
|
|
.IR cctrls ,
|
|
|
|
respectively.
|
1998-08-09 08:43:13 +08:00
|
|
|
.SH ERRORS
|
|
|
|
.B ldap_abandon()
|
|
|
|
returns 0 if everything goes ok, -1 otherwise,
|
2002-01-13 20:55:55 +08:00
|
|
|
setting \fIld_errno\fP with an appropriate LDAP error code.
|
|
|
|
.LP
|
|
|
|
.B ldap_abandon_ext()
|
|
|
|
directly returns an LDAP error code indicating success or failure of the
|
|
|
|
operation.
|
|
|
|
.LP
|
|
|
|
See
|
1998-08-09 08:43:13 +08:00
|
|
|
.BR ldap_error (3)
|
|
|
|
for details.
|
|
|
|
.SH SEE ALSO
|
2002-05-09 10:07:41 +08:00
|
|
|
.BR ldap (3),
|
|
|
|
.BR ldap_result (3),
|
|
|
|
.BR ldap_error (3)
|
1998-10-25 09:41:42 +08:00
|
|
|
.SH ACKNOWLEDGEMENTS
|
|
|
|
.B OpenLDAP
|
|
|
|
is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
|
|
|
|
.B OpenLDAP
|
|
|
|
is derived from University of Michigan LDAP 3.3 Release.
|