Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Array<object> $Domain.ExecuteLdapQuery(rootDnOrHost: string, attributes: string, filter: string, username: string, password: string)

...

Root DN or host name to search.
string attributes
Attributes to return. Optional.
string filter
Filter of search. Optional.
string username
Username to authenticate. Optional.

...

Before calling this method, LDAP connection settings must be configured in the application settings.

Example

Code Block
languagejs
var entries = $Domain.ExecuteLdapQuery('dc=example,dc=com', 'cn,mail', '(&(objectClass=user)(cn=*))');
for (var i = 0; i < entries.length; i++) {
   console.log(entries[i].cn + ' - ' + entries[i].mail);
}
`