3.1.6.6 Read Directory End

This event MUST be generated with the following arguments:

Return Values:

  • rStatus: A DirectoryOperationResult that indicates the result of this directory operation.

The algorithm MUST perform the following actions to process this event:

  • Let ReadIterator be the ReadDirectoryIteratorState ADM element instance in the ReadDirectoryIteratorStateCollection ADM element for which the value of the Handle ADM attribute equals the value of iQueryHandle. If there is no such ReadDirectoryIteratorState ADM element instance in the collection, rStatus MUST be set to DirectoryOperationResult.GenericError, and processing MUST end.

  • The ReadDirectoryIteratorState ADM element instance referenced by ReadIterator MUST be removed from the ReadDirectoryIteratorStateCollection ADM element.

  • The search results stored in ReadIterator.LDAPState MUST be discarded.

  • The ReadDirectoryIteratorState ADM element instance referenced by ReadIterator MUST be discarded.

  • rStatus MUST be set to DirectoryOperationResult.Success, and processing MUST end.