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


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

Parameter Descriptions


Parameter

Description

a

LDAP alias.

b

BaseDN (see example).

c

Filter condition (the query/search, see example).

d

Attributes to be returned (leave empty for all).

e

Name of the map.

f

true to clear the 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