Functions - ldap

doAuthenticate

Authenticate with username and password.

getGroups

Reads the scope(s) for the user with the given username.

initLdapConnectionContext

Initailizes LDAP connection context.

doAuthenticate

(LdapConnection ldapConnection, string username, string password)

returns boolean | Error

Authenticate with username and password.

Parameters

  • Return Type

    (boolean | Error)
  • true if authentication is a success, else false or Error if error occurred

getGroups

(LdapConnection ldapConnection, string username)

returns string[] | Error

Reads the scope(s) for the user with the given username.

Parameters

  • Return Type

    (string[] | Error)
  • Array of groups for the user denoted by the username or Error if error occurred

initLdapConnectionContext

(LdapConnectionConfig ldapConnectionConfig, string instanceId)

returns LdapConnection | Error

Initailizes LDAP connection context.

Parameters

  • instanceId string
  • Unique id generated to identify an endpoint