Example
Example
ldapUrl
, realm
, config?
): Client
Name | Type |
---|---|
ldapUrl | string |
realm | string |
config? | Config |
Client
Optional
BaseDN: string
Optional
Host: string
Optional
Port: number
Optional
Realm: string
Optional
config: Config
string
string
Scope
, TypesOnly
, Filter
, Attributes
, Controls
): SearchResult
AdvancedSearch accepts all values of search request type and return Ldap Entry
its up to user to handle the response
Name | Type |
---|---|
Scope | number |
TypesOnly | boolean |
Filter | string |
Attributes | string [] |
Controls | any |
SearchResult
Example
username
): boolean
Authenticate authenticates with the ldap server using the given username and password
performs NTLMBind first and then Bind/UnauthenticatedBind if NTLMBind fails
Name | Type |
---|---|
username | string |
boolean
Example
username
): boolean
AuthenticateWithNTLMHash authenticates with the ldap server using the given username and NTLM hash
Name | Type |
---|---|
username | string |
boolean
Example
void
close the ldap connection
void
Example
Metadata
CollectLdapMetadata collects metadata from ldap server.
Metadata
Example
filter
): SearchResult
FindADObjects finds AD objects based on a filter
and returns them as a list of ADObject
Name | Type |
---|---|
filter | string |
SearchResult
Example
SearchResult
GetADActiveUsers returns all AD users
using FilterIsPerson and FilterAccountEnabled filter query
SearchResult
Example
SearchResult
GetADAdmins returns all AD admins
using FilterIsPerson, FilterAccountEnabled and FilterIsAdmin filter query
SearchResult
Example
SearchResult
GetADDCList returns all AD domain controllers
using FilterIsComputer, FilterAccountEnabled and FilterServerTrustAccount filter query
SearchResult
Example
string
GetADDomainSID returns the SID of the AD domain
string
Example
SearchResult
GetADGroups returns all AD groups
using FilterIsGroup filter query
SearchResult
Example
SearchResult
GetADUserAsRepRoastable returns all AD users that are AsRepRoastable
using FilterIsPerson, and FilterDontRequirePreauth filter query
SearchResult
Example
SearchResult
GetADUserKerberoastable returns all AD users that are kerberoastable
using FilterIsPerson, FilterAccountEnabled and FilterHasServicePrincipalName filter query
SearchResult
Example
SearchResult
GetADUserTrustedForDelegation returns all AD users that are trusted for delegation
using FilterIsPerson and FilterTrustedForDelegation filter query
SearchResult
Example
SearchResult
GetAdUserWithNeverExpiringPasswords returns all AD users
using FilterIsPerson and FilterDontExpirePassword filter query
SearchResult
Example
SearchResult
GetADUserWithPasswordNotRequired returns all AD users that do not require a password
using FilterIsPerson and FilterPasswordNotRequired filter query
SearchResult
Example
SearchResult
GetADUsers returns all AD users
using FilterIsPerson filter query
SearchResult
Example
filter
, attributes
): SearchResult
Search accepts whatever filter and returns a list of maps having provided attributes
as keys and associated values mirroring the ones returned by ldap
Name | Type |
---|---|
filter | string |
attributes | any |
SearchResult
Example