An LDAP query consists of the following major elements: Search DN – An LDAP directory is organized as a tree structure, with a root node and a number of branches off this root. The Search DN specifies at which node the search originates. Entries above this level in the tree are searched.