Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AdClient

description

this is a class to provide low level promise base interaction with ldap server

Hierarchy

  • AdClient

Index

Constructors

constructor

Properties

baseDN

baseDN: string

Private client

client: Client

Private config

Private Optional logger

logger: Logger

Methods

bind

  • bind(): Promise<Client>
  • Returns Promise<Client>

    a connected ldap client that is useful for use flexibility of ldap.js directly.

Private connect

  • connect(): Promise<Client>
  • Returns Promise<Client>

findGroup

  • deprecated

    will be remove in next major version. this functionality will be added to another package soon

    description

    return first found group or fail

    Parameters

    Returns Promise<Group>

findUser

  • deprecated

    will be remove in next major version. this functionality will be added to another package soon

    description

    return first found user

    Parameters

    Returns Promise<User>

findUsers

  • deprecated

    will be remove in next major version. this functionality will be added to another package soon

    description

    return array of users based on UPN

    Parameters

    Returns Promise<User[]>

getGroupMembershipForUser

  • deprecated

    will be remove in next major version. this functionality will be added to another package soon

    description

    return array of groups

    Parameters

    Returns Promise<Group[]>

query

  • query(__namedParameters: { base: string; controls: any; options: SearchOptions }): Promise<SearchEntry[]>
  • description

    raw search to provided full flexibility

    Parameters

    • __namedParameters: { base: string; controls: any; options: SearchOptions }
      • base: string
      • controls: any
      • options: SearchOptions

    Returns Promise<SearchEntry[]>

queryAttributes

  • queryAttributes(__namedParameters: { base: string; controls: any; options: SearchOptions }): Promise<SearchEntryObject[]>
  • description

    raw search returns just attributes

    Parameters

    • __namedParameters: { base: string; controls: any; options: SearchOptions }
      • base: string
      • controls: any
      • options: SearchOptions

    Returns Promise<SearchEntryObject[]>

unbind

  • unbind(): void
  • Returns void

Generated using TypeDoc