Setting directory service properties

Applications call ct_con_props to set directory service properties for a connection. Applications most commonly set the following properties to control a directory search:

Value

Meaning

CS_SEARCH_ONE_LEVEL (default)

Search includes only the leaf entries that are immediate descendants of the node specified by CS_DS_DITBASE.

CS_SEARCH_SUBTREE

Search the entire subtree whose root is specified by CS_DS_DITBASE.

NoteThe DCE directory driver does not allow CS_DS_SEARCH to be set to a value other than the default, CS_SEARCH_ONE_LEVEL.

All directory service properties have a symbolic name that begins with “CS_DS”. See the “Properties” topics page in the Open Client Client-Library/C Reference Manual for a complete list of Client-Library properties.