This function is only available in CFEngine Enterprise.
ldaparray(array, uri, dn, filter, scope, security)
array with the entire LDAP record, and returns
whether there was a match for the search.
This function retrieves an entire record with all elements and populates an associative array with the entries. It returns a class that is true if there was a match for the search, and false if nothing was retrieved.
string- Array name - in the range:
string- URI - in the range:
string- Distinguished name - in the range:
string- Filter - in the range:
scope: - Search scope policy - one of
security: - Security level - one of
dn specifies the distinguished name, an ldap formatted name built from
components, e.g. "dc=cfengine,dc=com".
filter is an ldap search, e.g.
security values are supported depends on machine and
classes: "gotdata" expression => ldaparray( "myarray", "ldap://ldap.example.org", "dc=cfengine,dc=com", "(uid=mark)", "subtree", "none");