Directory Services

LDAP_SERVER_LAZY_COMMIT_OID

The LDAP_SERVER_LAZY_COMMIT_OID control is used to tell the server to return the results of a DS modification command, such as add, delete, replace, and so on, after it has been completed in memory, but before it has been committed to disk. The server can then return results quickly, and save the data to disk without holding the client.

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

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

Members

ldctl_oid
LDAP_SERVER_LAZY_COMMIT_OID, which is defined as "1.2.840.113556.1.4.619".
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 the referral limitation is critical to the application.

Remarks

As with any caching scheme, using this control presents the risk of data loss if the server abnormally terminates, due to a power loss or other unrecoverable error, before the requested changes are written to disk.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Winldap.h.

See Also

Data Structures, LDAPMessage, Using Controls