Skip to main content

Introduction

TIB supports Lightweight Directory Access Protocol (LDAP) and Active Directory using the ADProvider method, which uses a passthrough flow; user credentials are submitted directly to TIB, which validates them against your LDAP server. No browser redirect to an external IdP is involved. Because LDAP is a passthrough flow, you must provide a login page that submits credentials to TIB. Tyk Dashboard and Tyk Developer Portal do not include a built-in LDAP login page. Before configuring your TIB profile, read Dashboard SSO or Portal SSO to understand the ActionType, ReturnURL, and IdentityHandlerConfig fields required for your use case.

TIB Profile

The LDAP-specific configuration goes in the ProviderConfig block of the TIB profile. Set ProviderName to ADProvider and Type to passthrough.
The LDAP-specific ProviderConfig fields are:

Login Page

Since LDAP is a passthrough flow, users submit credentials directly to TIB via a form POST. Create a login page with a form that posts to the TIB authentication endpoint:
The form must use POST method and include username and password fields. TIB reads these field names exactly. For embedded TIB, {tib-host} is the same as your Dashboard host. For Portal, the embedded TIB is accessible under the /tib path prefix, so use {portal-host}/tib as the base.

Worked Examples

In this example, Tyk Dashboard is running at http://dashboard.example.com on port 3000; replace the example values with your own.Tyk Dashboard configuration
With this configuration, registered users (with a Tyk Dashboard user account) get their own permissions; unregistered users fall back to the group specified in sso_default_group_id. See Dashboard SSO for full details.TIB profileThe TIB profile is created via the Tyk Identity Broker API or the Tyk Dashboard UI.
  • set DashboardCredential to the TIB service account’s Dashboard credentials
  • update LDAPUserDN to match your LDAP directory structure, keeping *USERNAME* as a literal placeholder
Login page form actionYour login page form should POST to:
Redirect to login pageTo redirect users to your custom login page instead of the default Dashboard login, set sso_custom_login_url in the Tyk Dashboard configuration:
See Dashboard SSO for details on session behavior, permissions, and user group mapping.