filter-prefix

This command specifies the prefix of the LDAP filter expression.

Syntax

filter-prefix prefix

Parameters

prefix
Specifies the prefix of the filter expression.

Guidelines

The filter-prefix command specifies the string prefix to construct an LDAP filter expression, as defined in RFC 4515. This string is added before the user name to construct the LDAP filter to search for the DN of the user.

If the prefix is (&(mail= and the user name is bob@example.com and the suffix is )(c=US)), the LDAP search filter is (&(mail=bob@example.com)(c=US)).

You can use the filter-suffix to append a string to the LDAP filter expression to complete the search filter.

Example

Create the LDAP filter expression (&(mail=bob@example.com)(c=US)) based on bob@example.com as the user name.
# filter-prefix "(&(mail="
# filter-suffix ")(c=US))"