LDAPControl

Contains data about an LDAP control.

Structure

  typedef struct ldapcontrol {
     char           *ldctl_oid;
     struct berval   ldctl_value;
     char            ldctl_iscritical;
  } LDAPControl;
  

Fields

ldctl_oid

Points to the string object identifier (OID) assigned to the control.

ldctl_value

Specifies a berval structure that contains the data, if any, associated with the control. The ldctl_value field can contain no data.

  • To indicate a zero-length value, set ldctl_value.bv_len to zero and ldctl_value.bv_val to a zero-length string.

  • To indicate that no data is associated with the control, set ldctl_value.bv_val to NULL.

ldctl_iscritical

Specifies whether the control is critical to the operation.

  • If this field is non-zero, the operation fails if the LDAP server doesn't recognize the control.

  • If this field is set to zero, the LDAP can continue the operation when it doesn't recognize the control.

Remarks