Module : ldap

Module Overview

This module provides inbound LDAP authentication provider, which can be used to authenticate using LDAP credentials.

The ldap:InboundLdapAuthProvider is another implementation of the auth:InboundAuthProvider interface. This connects to an active directory or an LDAP, retrieves the necessary user information, and performs authentication and authorization.

ldap:InboundLdapAuthProvider ldapAuthProvider = new(ldapConfig, "instanceId");

Records

LdapConnection
LdapConnectionConfig Represents configurations that required for LDAP auth store.
SecureSocket Configures the SSL/TLS options to be used for LDAP communication.

Objects

InboundLdapAuthProvider

Represents Ballerina configuration for LDAP based auth provider.

Functions

doAuthenticate

Authenticate with username and password.

getGroups

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

initLdapConnectionContext

Initailizes LDAP connection context.

Constants

LDAP_ERROR

Errors

Error