USER SEARCH

Level

base

History

appears in 9.0.0
DomainName appears in 3.0.0

Description

Search users and groups from internal or external LDAP database

Implementation notes

Filter construction and a call to fw_ldap_filter_find().

Usage

filter=<search pattern> [DomainName=<domain|any>] [type=<user|group|any>] [start=<int> [limit=<int>] [dir=<ASC|Description>]

[search=<pattern>] [sort=1] [refresh=<0|1>]]

Returns

A result section with type=DN line

Remark

List all inetorgperson and entry in the LDAP database.
May take a while with huge LDAP bases...
Scan all LDAP DB if no domain are specified!

Example

USER SEARCH domainname=any filter="*toto*"

DomainName=domainA user="cn=Foo,ou=users,o=

Example

,dc=COM"

DomainName=domainA user_2="cn=Foo Bar,ou=users,o=

Example

,dc=COM"

DomainName=domainA group="cn=Bar,ou=groups,o=

Example

,dc=COM"

DomainName=domainB group_2="cn=Bar Foo,ou=groups,o=

Example

,dc=COM"

USER SEARCH filter="*toto*" type=user

DomainName=a_domain user="cn=Foo,ou=users,o=

Example

,dc=COM"

DomainName=a_domain user_2="cn=Foo Bar,ou=users,o=

Example

,dc=COM"

USER SEARCH domainname=internal.eu filter="*toto*" type=user

DomainName=internal.eu user="cn=Foo,ou=users,o=

Example

,dc=COM"

DomainName=internal.eu user_2="cn=Foo Bar,ou=users,o=

Example

,dc=COM"

Format

section_line CACHE_CATEGORY user