Directory search results processing

A directory callback typically performs the following to collect and optionally process the results of a directory search:

  1. Checks the values of status and numentries to determine whether the search was successful and whether entries were returned.

  2. Either saves the pointer to the directory object; or copies any information that it wants to keep (using ct_ds_objinfo to extract the information), then frees the directory object’s memory with ct_ds_dropobj.

  3. Returns control to Client-Library in one of the following ways: