Open topic with navigation

TIBCO® BPM Enterprise 5.5.0

# LDAP Query String Characters and Examples

Special characters can be used in LDAP queries when defining LDAP containers.

Special Character | Meaning
--- | ---
* | Wildcard character. Matches zero or more of any characters.
& | Logical AND. Returns resources that satisfy the first string AND the second string. Place this special character to the left of the first query string, then enclose the entire expression in parentheses, as follows:
    (&(string1)(string2))
| | Logical OR. Returns resources that satisfy the first string OR the second string. Place this special character to the left of the first query string, then enclose the entire expression in parentheses, as follows:
    (|(string1)(string2))
! | NOT. This means that you want all resources that do NOT match the specified value. Place this special character to the left of the query string to which it applies, inside of the parentheses:
    (!(string))

## Examples

The following are examples of LDAP query strings:

- The following query returns all resources that have sn attribute values beginning with “s”:

      (sn=s*)

- The following query returns all resources that have sn attribute values beginning with “s” or “p”:

      (|(sn=s*)(sn=p*))

- The following query returns all resources with carlicense attribute values equal to “Full” and employeetype attribute values equal to “Permanent”:

      (&(carlicense=Full)(employeetype=Permanent))

- The following query returns all resources where sn attribute values don’t start with “s” and don’t start with “p”:

      (&(!(sn=s*))(!(sn=p*)))

Note: Depending on the specific LDAP server being used, the query syntax can vary. If the syntax described above does not return the expected results, consult the documentation for your LDAP server.
Note: Values in a particular LDAP attribute may not be consistent across different LDAP servers.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® BPM Enterprise

Copyright © 2015-2024. Cloud Software Group, Inc. All Rights Reserved.