Introduction
TIB supports Lightweight Directory Access Protocol (LDAP) and Active Directory using theADProvider 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 theProviderConfig block of the TIB profile. Set ProviderName to ADProvider and Type to passthrough.
ProviderConfig fields are:
Login Page
Since LDAP is a passthrough flow, users submit credentials directly to TIB via a formPOST. Create a login page with a form that posts to the TIB authentication endpoint:
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
- Dashboard SSO
- Portal SSO
In this example, Tyk Dashboard is running at With this configuration, registered users (with a Tyk Dashboard user account) get their own permissions; unregistered users fall back to the group specified in Redirect to login pageTo redirect users to your custom login page instead of the default Dashboard login, set See Dashboard SSO for details on session behavior, permissions, and user group mapping.
http://dashboard.example.com on port 3000; replace the example values with your own.Tyk Dashboard configurationsso_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
DashboardCredentialto the TIB service account’s Dashboard credentials - update
LDAPUserDNto match your LDAP directory structure, keeping*USERNAME*as a literal placeholder
POST to:sso_custom_login_url in the Tyk Dashboard configuration: