5.22 Scope Flags

The NWDSSearch, NWDSExtSynSearch, and NWDSItrCreateSearch functions use these flags.

Flag Name

C Value

Description

DS_SEARCH_ENTRY

0

Search applies only to the base object.

DS_SEARCH_SUBORDINATES

1

Search applies only to the immediate subordinates of the base object.

DS_SEARCH_SUBTREE

2

Search applies to the base object and all of its subordinates. For the NWDSItrCreateSearch function, the search of subordinates is restricted to the subordinates that exist on the server's replicas.

DS_SEARCH_PARTITION

3

Used only by NDS 8 and later versions. Search applies to the base object and all of its subordinates in the partition. If a subordinate partition exists, the search does not continue to those objects.