ldap-query()
The ldap-query()
function connects to an LDAP server with the given url
, rdn
and rdnPassword
. It then performs a query by the given search
. An OXN JSON array is returned with objects containing dn
and additional attributes given by attributes
of all the entities that were found. If no entities match the query, an empty node-set is returned.
Parameters
url
The ldap URL (string)rdn
The (relative) distinguished name of the connecting user (string)rdnPassword
The password of the connecting user (string)base_dn
The base distinguished name for the directory, used for the search (string)search
The filter for searching entities (string)attributes
A comma-separated list of attributes to return (string)
Example
In the following example, FLAT connects to the LDAP server with the DN given in the rdn
and rdnPassword
POST parameters. The given filter is used to search for an entry of a person which is a member of a group Users
and sAMAccountName containing doe
. In addition to the (default) dn
, the sAMAccountName
, displayName
and mail
from the found entries are included in the results.
The result is
Last updated