Object - ldap : InboundLdapAuthProvider

Represents Ballerina configuration for LDAP based auth provider.

Constructor

__init

(LdapConnectionConfig ldapConnectionConfig, string instanceId)

  • instanceId string
  • Endpoint instance id

Methods

Fields

  • instanceId string
  • Endpoint instance id

authenticate

(string credential)

returns boolean | AuthError

Authenticate with username and password.

Parameters

  • credential string
  • Credential value

  • Return Type

    (boolean | AuthError)
  • true if authentication is successful, otherwise false or auth:AuthError occurred while extracting credentials