Share via


LDAP_SERVER_PERMISSIVE_MODIFY_OID control code

The LDAP_SERVER_PERMISSIVE_MODIFY_OID control is used to modify the behavior of an extended LDAP modify request such as ldap_modify_ext. An LDAP modify request will normally fail if it attempts to add an attribute that already exists, or if it attempts to delete an attribute that does not exist. With this control, as long as the attribute to be added has the same value as the existing attribute, then the modify will succeed. With this control, deletion of an attribute that does not exist will also succeed.

To use this control, set the members of the LDAPControl structure as follows.

PWCHAR ldctl_oid = LDAP_SERVER_PERMISSIVE_MODIFY_OID;
struct berval ldctl_value = {0, NULL};
BOOLEAN ldctl_iscritical;

Members

ldctl_oid

LDAP_SERVER_PERMISSIVE_MODIFY_OID, defined as "1.2.840.113556.1.4.1413".

ldctl_value

No data for this control. In the berval structure, set bv_len to zero and bv_val to NULL.

ldctl_iscritical

Can be TRUE or FALSE depending on whether permissive modify is critical to the application.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
Ntldap.h