search ldap entry(alias a, baseDN b, filter c, attributes d, map e, clear map f, scope g)

Group

LDAP


Performs an LDAP search and writes the returned attributes of the first found object to a map. Returns true for success.

Parameter Descriptions

Parameter

Description

a

LDAP alias.

b

BaseDN, e.g. dc=lobster,dc=de.

c

Filter condition (the query/search), e.g. cn=user name.

d

Attributes to be returned (leave empty for all).

e

Name of map.

f

true to clear map before.

g

Scope of search: 0=object, 1=one level, 2=sub tree.

Example

Parameter a

Parameter b

Parameter c

Parameter d

Parameter e

Parameter f

Parameter g

Result

openladap

dc=lobster,dc=de

cn=user name

ldap_attr

true

0

true