...
Before calling this method, LDAP connection settings must be configured in the application settings.
Example
Code Block | ||
---|---|---|
| ||
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);
}
` |