search ldap entry()
This function performs an LDAP search and writes the returned attributes of the first found object into a map. Returns true on success.
Parameters
|
Parameter |
Description |
|
a |
|
|
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 |