The Directory Synchronization Control is a Supported Control with an OID of 1.2.840.113556.1.4.841 and may be referred to as LDAP_SERVER_DIRSYNC_OID
This document defines an LDAP Control for Directory Synchronization.
This control allows a client to request changes made to a directory replica since a state of that replica identified by an opaque "cookie." The Directory Synchronization Control is implemented by the Microsoft Active Directory Windows 2000 Server. It is intended that other members of the Internet community be able to use this control if desired. [1]
The Directory Synchronization Control provides a method for dissimilar directories to share pertinent information.
The server MUST list that it recognizes this control in the supportedControl attribute in the Root DSE.
The replication control is included in the SearchRequest and SearchResultDone messages as part of the server controls field of the LDAPMessage. The structure of this control is as follows:
Repl Control ::= SEQUENCE { controlType 1.2.840.113556.1.4.841 controlValue replControlValue criticality TRUE }
realReplControlValue ::= SEQUENCE { parentsFirst integer maxReturnlength integer cookie OCTET STRING }
The very first time the control is created, the cookie should be encoded as a NULL string with 0 length. used by the client in subsequent searches.
Apparently there are additional values for the replControlValue optional flags for use with the Directory Synchronization Control. These can be zero or a combination of one or more of the values listed in the following table.
Bit flag name and value Description
BIT | NAME | Description |
---|---|---|
0x00000001 | LDAP_DIRSYNC_OBJECT_SECURITY (OS) | Windows Server® 2003 operating system, Windows Server® 2008 operating system, Windows Server® 2008 R2 operating system, and Windows Server® 2012 operating system: If this flag is present, the client can only view objects and attributes that are otherwise accessible to the client. If this flag is not present, the server checks if the client has access rights to read the changes in the NC. Microsoft Windows® 2000 operating system: Not supported. |
0x00000800 | LDAP_DIRSYNC_ANCESTORS_FIRST_ORDER (AFO) (parentsFirst) | The server returns parent objects before child objects. |
0x00002000 | LDAP_DIRSYNC_PUBLIC_DATA_ONLY (PDO) | Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, and Windows Server 2012: This flag can optionally be passed to the DC, but it has no effect. Windows 2000: Not supported. |
0x80000000 | LDAP_DIRSYNC_INCREMENTAL_VALUES (IV) | Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, and Windows Server 2012: If this flag is not present, all of the values, up to a server-specified limit, in a multivalued attribute are returned when any value changes. If this flag is present, only the changed values are returned, provided the attribute is a forward link value. Windows 2000: Not supported. |