1 .TH LDAP_EXTENDED_OPERATION 3 "2008/07/16" "OpenLDAP 2.4.11"
2 .\" $OpenLDAP: pkg/ldap/doc/man/man3/ldap_extended_operation.3,v 1.1.2.6 2008/02/11 23:26:39 kurt Exp $
3 .\" Copyright 1998-2008 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldap_extended_operation, ldap_extended_operation_s \- Extends the LDAP operations to the LDAP server.
8 OpenLDAP LDAP (libldap, -lldap)
15 int ldap_extended_operation(
19 const char *\fIrequestoid\fB,
20 const struct berval *\fIrequestdata\fB,
21 LDAPControl **\fIsctrls\fB,
22 LDAPControl **\fIcctrls\fB,
27 int ldap_extended_operation_s(
31 const char *\fIrequestoid\fB,
32 const struct berval *\fIrequestdata\fB,
33 LDAPControl **\fIsctrls\fB,
34 LDAPControl **\fIcctrls\fB,
36 struct berval **\fIretdatap\fB );
40 .B ldap_extended_operation_s()
41 routine is used to synchronously perform an LDAP extended operation.
42 It takes \fIrequestoid\fP, which points to a dotted-decimal OID string
43 identifying the extended operation to perform. \fIrequestdata\fP is the
44 data required for the request, \fIsctrls\fP is an array of LDAPControl
45 structures to use with this extended operation, \fIcctrls\fP is an array
46 of LDAPControl structures that list the client controls to use with
47 this extended operation.
49 The output parameter \fIretoidp\fP points to a dotted-decimal OID
50 string returned by the LDAP server. The memory used by the string
51 should be freed with the
54 The output parameter \fIretdatap\fP points to a pointer to a berval
55 structure that contains the returned data. If no data is returned
56 by the server, the pointer is set this to NULL. The memory used by
57 this structure should be freed with the
62 .B ldap_extended_operation()
64 .BR ldap_extended_operation_s() ,
65 but the operation is asynchronous. It provides the message id of
66 the request it initiated in the integer pointed to be \fImsgidp\fP.
67 The result of this operation can be obtained by calling
72 .BR ldap_parse_extended_result (3),
75 .\" Shared Project Acknowledgement Text
76 .B "OpenLDAP Software"
77 is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>.
78 .B "OpenLDAP Software"
79 is derived from University of Michigan LDAP 3.3 Release.