1 .TH LDAP_CONTROLS 3 "RELEASEDATE" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldap_create_control, ldap_find_control, ldap_control_free, ldap_controls_free \- LDAP control manipulation routines
8 OpenLDAP LDAP (libldap, -lldap)
12 .BI "int ldap_create_control(LDAP_CONST char *" OID ", BerElement *" ber ", int " iscritical ", LDAPControl **" ctrlp ");"
14 .BI "LDAPControl *ldap_find_control(LDAP_CONST char *" OID ", LDAPControl **" ctrls ");"
16 .BI "void ldap_control_free(LDAPControl *" ctrl ");"
18 .BI "void ldap_controls_free(LDAPControl **" ctrls ");"
20 These routines are used to manipulate structures used for LDAP controls.
21 .BR ldap_create_control ()
22 creates a control with the specified
24 using the contents of the
26 parameter for the control value, if any. The
28 parameter should be non-zero for a critical control. The created control
31 parameter. The routine returns
33 on success or some other error code on failure.
34 .BR ldap_find_control ()
37 array for a control whose OID matches the
39 parameter. The routine returns a pointer to the control if found,
41 .BR ldap_control_free ()
42 frees an individual control structure, and
43 .BR ldap_controls_free ()
44 frees an array of controls.