3.1.6.4.4.2 Read Begin
If iAttributeList was not provided as an argument, then an iAttributeList MUST be constructed that MUST contain the names of all Site ADM element attributes listed in section 3.1.6.20.4, except PrimarySiteController and PublicSigningKey.
The value of iAttributeList MUST be copied to ReadIterator.AttributeList.
A Create LDAP Attribute List (section 3.1.6.10) event MUST be generated with the following arguments:
iDirectoryObjectType := "Site"
iADMAttributeList := iAttributeList
Let SiteAttributeList be a list of site attribute names, initialized to be the LDAP attribute names returned in rLDAPAttributeList by the Create LDAP Attribute List event. The populated SiteAttributeList MUST be copied to ReadIterator.LDAPAttributeList. If any ADM attribute present in iAttributeList does not appear in the rLDAPAttributesList returned by the Create LDAP Attribute List event, the entry in iAttributeSortOrder corresponding to that iAttributeList entry, if any, MUST be removed.
Let SiteFilterList be a list of attribute-filter expressions modified to refer to site attributes and values, initialized to be empty. For each expression in iFilter, add an expression to SiteFilterList that consists of:
The site attribute that corresponds to the Site ADM element attribute in the original expression, as shown in the following table.
The same operator as the original expression.
A value transformed from the value in the original expression as shown in the following table.
If the Site ADM element attribute in the original expression does not appear in the following table, the expression MUST be ignored.
Site ADM element attribute
site attribute
Value transformation
Identifier
Copy
Name
Copy
IntraSiteReplicationInterval
Copy
InterSiteReplicationInterval
mSMQInterval2 ([MS-ADA2] section 2.546)
Copy
FullPath
distinguishedName ([MS-ADA1] section 2.177)
Copy
Foreign
mSMQSiteForeign ([MS-ADA2] section 2.576)
TRUE converts to 0x01; FALSE converts to 0x00.
MigratedFromMsmq10
mSMQNt4Stub ([MS-ADA2] section 2.555)
TRUE converts to 0x01; FALSE converts to 0x00.
Security
nTSecurityDescriptor ([MS-ADA3] section 2.37)
Copy
A Search Using LDAP (section 3.1.6.15) event MUST be generated with the following arguments:
iObjectClass := site
iFilter := SiteFilterList
iAttributes := SiteAttributeList
If the Search Using LDAP event returns an rStatus that is not DirectoryOperationResult.Success and rStatus is set to DirectoryOperationResult.ObjectNotFound, ReadIterator.LDAPState MUST be set to an empty list, rStatus MUST be set to DirectoryOperationResult.Success, and processing MUST end.
If the search fails for any other reason, rStatus MUST be set to the rStatus returned by the Search Using LDAP event, and processing MUST end.