Methods
CollectLdapMetadata(domain, controller) → {LDAPMetadata}
CollectLdapMetadata collects metadata from ldap server.
Parameters:
Name | Type | Description |
---|---|---|
domain | string | The domain to collect metadata from. |
controller | string | The controller to collect metadata from. |
- Source
Throws:
- - The error encountered during metadata collection.
- Type
- error
Returns:
- The metadata from ldap server.
- Type:
- LDAPMetadata
Example
let m = require('nuclei/ldap');
let c = m.LdapClient();
let metadata = c.CollectLdapMetadata('example.com', 'controller1');
IsLdap(host, port) → {boolean}
IsLdap checks if the given host and port are running ldap server.
Parameters:
Name | Type | Description |
---|---|---|
host | string | The host to check. |
port | int | The port to check. |
- Source
Throws:
- - The error encountered during the check.
- Type
- error
Returns:
- Whether the given host and port are running ldap server.
- Type:
- boolean
Example
let m = require('nuclei/ldap');
let c = m.LdapClient();
let isLdap = c.IsLdap('localhost', 389);