LDAP Authentication Advanced

Enterprise only

Authenticate consumers by usernamev1.0+

Configure the plugin to add LDAP authentication and authenticate consumers by username.

Prerequisites

  • You have an LDAP server running

Environment variables

  • LDAP_HOST: The host for the LDAP server to use.

Set up the plugin

Add this section to your kong.yaml configuration file:

_format_version: "3.0"
plugins:
  - name: ldap-auth-advanced
    config:
      ldap_host: ${{ env "DECK_LDAP_HOST" }}
      ldap_port: 389
      start_tls: true
      base_dn: dc=example,dc=com
      verify_ldap_host: false
      attribute: cn
      cache_ttl: 60
      header_type: ldap
      consumer_by: username
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!