次の方法で共有


LDAP_SERVER_LAZY_COMMIT_OID control code

The LDAP_SERVER_LAZY_COMMIT_OID control is used to instruct the server to return the results of a DS modification command, such as add, delete, or replace, 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 LAZY commit is critical to the application.

Remarks

[!Caution]
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

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

See also

Data Structures

LDAPMessage

Using Controls