5.13 Filter Tokens

Filter tokens are used in search expression trees for NWDSSearch and NWDSItrCreateSearch. They are defined in the nwdsfilt.h file. For more information on creating a search expression tree, see Section 1.4, Search Requests.

Token

C Value

Description

FTOK_END

0

Signals the end of the search expression tree.

FTOK_OR

1

Indicates TRUE if either of the subordinate nodes are true.

FTOK_AND

2

Indicates TRUE only if both subordinate nodes are true

FTOK_NOT

3

Indicates TRUE if the node is false

FTOK_LPAREN

4

Indicates a left parenthesis for nesting of conditions.

FTOK_RPAREN

5

Indicates a right parenthesis for nesting of conditions

FTOK_AVAL

6

Indicates a value follows.

FTOK_EQ

7

Indicates TRUE only if the attribute's value is equal to the asserted value.

FTOK_GE

8

Indicates TRUE only if the attribute's value is greater than or equal to the asserted value.

FTOK_LE

9

Indicates TRUE only if all attribute's values are less than the asserted value.

FTOK_APPROX

10

Indicates TRUE only if the value of the attribute matches the asserted value. If the attribute syntax does not support approximate matching, this token matches for equality.

FTOK_ANAME

14

Indicates a name follows.

FTOK_PRESENT

15

Indicates TRUE only if the attribute is present on the entry.

FTOK_RDN

16

Indicates TRUE only if the entry's RDN matches the asserted value.

FTOK_BASECLS

17

Indicates TRUE only if the entry belongs to the asserted base class.

FTOK_MODTIME

18

Indicates TRUE only if the modification time stamp is greater than or equal to the asserted value.

FTOK_VALTIME

19

Indicates TRUE only if the creation time stamp is greater than or equal to the asserted value.