Step 1: Starting the search

An application starts a directory search by initializing the application data structures that will hold the results, installing a directory callback, and calling ct_ds_lookup.