1.2 Creation of an Iterator Object

An iterator is created with one of the following functions:

For information on search filter syntax, see Search Filter Components (NDK: Novell eDirectory Core Services). For step-by step instructions on creating an iterator, see Section 2.1, Creating a Search Iterator Object.

An iterator can be cloned to produce a copy of itself, which may be positioned independently of the original. All iterators created with the NWDSItrCreateSearch, NWDSItrCreateList, or NWDSItrClone functions must be destroyed with the NWDSItrDestroy function. This function frees the resources associated with the iterator on both clients and servers.

Conceptually, an iterator creates a virtual list view (VLV) on the server containing all the entries that pass the search filter or list parameters. This list contains only objects on the particular server in question. An iterator can do a subtree search of objects in the replicas on the server, but the subtree search does not span servers.