Loading TOC...


   $query as String,
   [$options as Object?]
) as Sequence


Returns ldap search result. The function returns a Sequence containing objects, where each object is an ldap attribute with its value.

$query The query is a string representation of the filter to apply in the search. The string should conform to the format specified in RFC 4515 as extended by RFC 4526. For example, "(cn=Jane Doe)".
$options Options with which to customize this operation. This function supports the following options:
ldap username.
ldap password.
ldap server uri.
search-base is the DN of the entry at which to start the search.
Use appserver config as default. Specify true or false. The default is false.
ldap bind method. Specify simple, MD5 or external.
The credential to be used to sign the generated certificate.
start tls (Transport Layer Security) extended operation. Specify true or false. The default is false.
client certificate.
private key for the client certificate.


  "(cn=Jane Doe)",
   "password": "password",

=> (Sequence of ldap attributes)
{"DN":"CN=TestUser 1,CN=Users,DC=MLTEST1,DC=LOCAL"}
{"cn":"TestUser 1"}
{"distinguishedName":"CN=TestUser 1,CN=Users,DC=MLTEST1,DC=LOCAL"}
{"displayName":"TestUser 1"}
{"memberOf":"CN=TestGroup Admin,CN=Users,DC=MLTEST1,DC=LOCAL"}
{"memberOf":"CN=Domain Admins,CN=Users,DC=MLTEST1,DC=LOCAL"}
{"memberOf":"CN=Enterprise Admins,CN=Users,DC=MLTEST1,DC=LOCAL"}
{"name":"TestUser 1"}

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.


The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.