PreviousNext

Directory Search Operations

Search functions can be used to browse through the Directory Information Tree (DIT). For example, a search request could supply the distinguished name of an entry and request a list of the distinguished names of the children of that entry.

XDS API implements the following search operations:

· ds_list( )
The requestor supplies a distinguished name. The directory service returns a list of the immediate subordinates of the named entry.

· ds_search( )
The requestor supplies a search criterion known as a filter. The user names a subtree of the DIT, specifies some target attribute types, and formulates an expression by combining a number of attributes by using logical AND, OR, or NOT operators. The directory service returns information from all of the entries within the specified portion of the DIT that matches the filter. Step 5: Create a Filter includes a description of how filters are used in acl.c.

More:

Searching the Directory

Step 1: Export Object Identifiers

Step 2: Declare Local Variables

Step 3: Build Public Objects for the name Parameter to ds_search( )

Step 4: Specify the Portion of the DIT To Be Searched

Step 5: Create a Filter

Step 6: Create an Entry-Information-Selection Parameter

Step 7: Perform the Search Operation