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.

...

Note: You might see search filters defined in the platform that contain {n} where n is some integer. Note that this syntax is not part of the search filter specification. Instead, it is a placeholder using MessageFormat syntax. The platform substitutes the values of the filter arguments into this filter expression and the resulting search filter is compliant with the search filter specification. That is the string that is sent to the directory service.

...

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