The LDAP_SERVER_DIRSYNC_EX_OID control is used with an LDAP search operation in exactly the same way as the LDAP_SERVER_DIRSYNC_OID control, except for differences specified in this section. All ASN.1 structures and the meaning of the fields of those structures are the same.

As with the LDAP_SERVER_DIRSYNC_OID control, any attributes can be requested in the search. Only those objects for which these attributes have been created or modified since the time represented by Cookie will be considered for inclusion in the search. However, where the LDAP_SERVER_DIRSYNC_OID control returns only those attributes that have changed, the LDAP_SERVER_DIRSYNC_EX_OID control also returns unchanged attributes when the attribute name in the request is appended with the string ";dirSyncAlwaysReturn".