Hitachi Vantara Pentaho Community Wiki
Child pages
  • LDAP Search Filter Syntax

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{scrollbar}

RFC 2254 defines the query syntax for a directory service. The full syntax can be found in that specification. However, an overview of the most frequently used forms is given below.

...

Example

Description

(cn=joe)

Return all objects where attribute cn has the value joe.

(&(objectClass=person)(cn=joe))

Return all objects where attribute objectClass has the value person and attribute cn has the value joe.

(|(objectClass=person)(objectClass=organizationalRole))

Return all objects where attribute objectClass has the value person or the value organizationalRole.

(!(cn=joe))

Return all objects where attribute cn does not have the value joe.

(cn=*)

Return all objects where attribute cn is present.

(cn=*Smith)

Return all objects where attribute cn ends with "Smith".

Children Display