Overview
The Core Connector LDAP provides an Authorization Data Provider, which retrieves user attributes used for access control from an LDAP server.
Configuration
dbp_relay_core_connector_ldap:
connections:
my-connection:
host: '%env(LDAP_HOST)%'
base_dn: '%env(LDAP_BASE_DN)%'
username: '%env(LDAP_USER)%'
password: '%env(LDAP_PASS)%'
user_attribute_provider:
ldap_connection: 'my-connection'
attributes:
- name: functions
ldap_attribute: USER-FUNCTIONS
is_array: true # default: false
- name: ...
User Attribute Provider
The ldap_connection node specifies which LDAP connection to use.
The attributes node defines a mapping between LDAP (i.e. source) user attributes and access control (i.e. target)
user attributes:
nameThe name of the target user attributeldap_attributeThe name of the source user attributeis_array(default value:false) Used to specify whether the user attribute is of array or scalar type. If the array type of the source and target attribute do not match,ldap_attributeis converted to/from array.