3.1.6.3.5.2 Read

  1. If iAttributeList is not provided as an argument, 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.

  2. A Create LDAP Attribute List (section 3.1.6.10) event MUST be generated with the following arguments:

    • iDirectoryObjectType := "Site"

    • iADMAttributeList := iAttributeList

  3. 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.

  4. A Get Object Properties Using LDAP (section 3.1.6.14) event MUST be generated with the following arguments:

    • iGuid := UseGuid

    • iPath := UseDN

    • iAttributes := SiteAttributeList

  5. If the Get Object Properties Using LDAP event returns an rStatus that is not DirectoryOperationResult.Success, rStatus MUST be set to the rStatus returned by the Get Object Properties Using LDAP event, rDirectoryObject is undefined, and processing MUST end.

  6. A Create ADM Element From LDAP Values (section 3.1.6.11) event MUST be generated with the following arguments:

    • iDirectoryObjectType := "Site"

    • iADMAttributes := iAttributeList

    • iLDAPAttributeList := SiteAttributeList

    • iValues := rValues returned by the Get Object Properties Using LDAP event

  7. rStatus MUST be set to the rStatus returned by the Create ADM Element From LDAP Values event. rDirectoryObject MUST be set to the rDirectoryObject returned by the Create ADM Element From LDAP Values event. Processing MUST end.