How Metabase LDAP authentication works and when to use it
When your IT or security team wants staff to sign into a self-hosted Metabase with their directory credentials, the answer is LDAP. Metabase connects to Active Directory or OpenLDAP over the LDAP protocol, authenticating with a dedicated bind user that has read access to the directory, and it can encrypt the connection with SSL or StartTLS. By default, Metabase creates a user account at the first successful login, so you do not have to pre-create every person in Metabase. Before go-live, confirm with your directory team which account will serve as the bind user, and confirm that the directory holds the email, first name and last name attributes Metabase needs (mail, givenname and sn by default, though your schema may differ).
LDAP is available on the Open Source and Starter plans, which makes it the most practical directory option if you are not yet paying for Pro or Enterprise. The limit is on depth of integration. Advanced LDAP group and attribute synchronization, which keeps Metabase group membership aligned with directory groups, requires Pro or Enterprise. On the open source edition, you should plan for permissions to be managed inside Metabase, with directory membership determining who can sign in rather than what each person can see. Confirm the current plan boundaries on the Metabase pricing page before you commit, because the features included in each plan can change.
Choose LDAP when the directory is the authoritative source for identity and your team can accept Metabase-side access decisions for analytics content. Choose SAML or OIDC instead when you need group-based access driven by the identity provider on an open source or Starter plan is not possible, or when a central identity platform already handles multi-factor authentication for every application. Metabase also needs a secure network path from the Metabase server to your domain controllers, so review firewall rules and certificate trust with the directory team before the build begins.
What you need before configuring Metabase LDAP
Most LDAP setups stall on prerequisites rather than on Metabase settings. The cards below cover what the directory team, the security team and the Metabase administrator each need in place before the connection is configured, and what to confirm in your own environment.
Service bind account
Metabase authenticates to the directory with a dedicated service bind account that can read user objects, not with an administrator's credentials. Ask the directory team for a least-privilege account with read access to the user objects Metabase needs, plus the group objects if you plan to map groups later. Confirm the account's password rotation and lockout rules, since a locked service account stops every login at once.
Metabase LDAP docsBase DN and search scope
The base DN and user search scope determine which directory entries Metabase can find at login. A base DN set too high can match unintended accounts, and one set too narrow will reject valid users who sit in other organizational units. Confirm with the directory team exactly where staff accounts live, and test the search with a few known users before you rely on it.
Directory server reachability
The Metabase host must reach the directory server, and for Active Directory often more than one domain controller, on the port used for the chosen transport. Check firewall rules, DNS resolution of the server name and any segmentation between the Metabase network and the directory network. Run a connection test from the Metabase host itself, because a test from a workstation proves little about the server's path.
Certificate chain for SSL or StartTLS
If you use SSL or StartTLS, Metabase must trust the certificate presented by the directory server. Obtain the full chain, including any internal root and intermediate certificates, and confirm that the certificate name matches the host name you configure. A chain that works on a domain-joined server can still fail in a Metabase container or JVM truststore, so verify trust from the environment where Metabase actually runs.
Metabase version and application database
Confirm the Metabase version you run and the application database behind it before changing authentication settings. The LDAP settings live in the application database, so a rollback or migration later affects them. Note whether you are still on the embedded H2 database, which the docs recommend replacing with PostgreSQL for production, and plan that move before the directory integration goes live.
Required user attributes
Metabase needs an email address, a first name and a last name for each user, mapped from the mail, givenname and sn attributes by default. Ask the directory team to confirm that every account Metabase should admit carries all three, and that the attribute names match your schema. Accounts missing an email attribute will fail to provision, so check a sample of real users rather than assuming the defaults.
Configure Metabase LDAP in the order that isolates faults
This sequence proves each layer of the connection before the next one depends on it, so a failed login points to one setting rather than a chain of guesses. The result is an LDAP-authenticated Metabase where a non-admin account signs in and receives a user record.
Confirm directory reachability outside Metabase
The directory administrator or platform engineer tests from the network segment where Metabase will run, using an LDAP client tool or the directory's own command-line utilities. Confirm that the host and port answer, that the chosen connection security (None, SSL or StartTLS) completes a handshake, and that the bind account can authenticate with its password. Do this before touching Metabase so that a network, certificate or credential problem is not mistaken for an application problem. Done means the bind succeeds from the Metabase host itself, not only from a workstation.
Verify the bind account and its read scope
Confirm with the directory team which bind DN and password Metabase will use, and that the account can read user entries under the search base you plan to use. Ask for a service account with read-only rights and a password managed under your normal secrets process. Run a test search with that account and check that it returns the expected user entries and the attributes you need. Done means the search returns test users with their email, first name and last name values populated.
Enable LDAP in the admin settings
A Metabase administrator opens the admin settings, selects the LDAP section and turns LDAP on. Keep password login available for the admin account during this work so you can still reach the instance if the directory settings are wrong. Save the configuration after entering the next steps' values. Done means the LDAP section shows as enabled and the page no longer reports that LDAP is off.
Enter host, port, bind DN and password
Enter the directory host name, the port, the bind DN and the bind password into the LDAP settings. Use the host name that appears on the directory certificate if you plan to use SSL or StartTLS, because name mismatches are a common cause of failed handshakes. Store the password only in the field provided and do not paste it into tickets or chat. Done means the settings save without validation errors and the connection test in the next step can run.
Choose None, SSL or StartTLS
Select the security mode that matches what you verified in the first step. Metabase supports None, SSL or StartTLS. Choose SSL or StartTLS for production so credentials are not sent in clear text, and confirm the directory's certificate is trusted by the Metabase host. If a mode fails, return to the external test rather than switching modes at random. Done means the connection test succeeds with the chosen mode and the bind account authenticates.
Set the user search base, filter and attribute names
Enter the user search base where your user entries live, the user search filter that selects login-eligible accounts, and the attribute names for email, first name and last name. Metabase defaults to mail, givenname and sn, which match many Active Directory and OpenLDAP schemas, but confirm these against a real user entry from your external test. If your directory uses different attribute names, change them here so the required fields are populated. Done means the test search in the admin settings returns your test user with all three attributes.
Test a login with a non-admin account
Sign out of the admin session and sign in as a non-admin directory user with the account's normal directory password. Confirm the login succeeds and that Metabase creates a user record for that person, since provisioning at first login is the default. Check that the email, first name and last name appear correctly in the admin people list. Done means the new user exists, the attributes are populated, and the account can reach only the collections and data its group permissions allow.
Choosing SSL or StartTLS for directory connections
Metabase's LDAP settings offer three transport choices: None, SSL and StartTLS. With None, the connection to the directory is unencrypted, so the bind credentials for the Metabase service account and the password a user types at login travel across the network in a form that anyone able to observe that traffic could read. SSL, sometimes called LDAPS, wraps the whole connection in TLS from the first byte, using a dedicated encrypted port. StartTLS begins as a plain connection on the standard directory port and then upgrades that same connection to TLS before any credentials are sent. Both encrypted options protect the bind and the login, so the decision between them is mostly about what the directory exposes, not about strength.
- None: Only suitable for a lab or an isolated test directory. Do not use it across any network segment that carries production credentials.
- SSL (LDAPS): Encrypted from the start of the session. Requires the directory to listen on its TLS port.
- StartTLS: Encrypted after an upgrade on the standard port. Fails if the directory does not offer the upgrade.
- Downgrade risk: A StartTLS setup should be configured so that a failed upgrade stops the login rather than falling back to plain text.
- Credentials in transit: Both encrypted options keep the bind password off the wire in clear text.
Confirm with the directory team which transport the domain controllers or LDAP servers accept before you set the option in Metabase.
The right option is usually set by the directory, not by Metabase. Many Active Directory environments enforce LDAP signing or channel binding on domain controllers, and some block unencrypted binds entirely. Whether the directory serves LDAPS, and on which port, depends on how the domain controllers or OpenLDAP servers are configured and whether a certificate has been installed for the TLS listener. A StartTLS setup depends on the same server supporting the extended operation that performs the upgrade. Metabase connects from its own network location, so firewall rules between the Metabase host and each directory server also matter.
- Directory policy: Ask whether unsigned or unencrypted binds are rejected, since that determines whether None can work at all.
- Port availability: Confirm that the TLS port and the standard directory port are both reachable from the Metabase host, if you plan to use either option.
- Multiple directory servers: Check that every server or site Metabase may contact offers the same encryption behavior.
- Firewall path: Test the route from the Metabase host, not only from a workstation.
- Change control: Record the chosen option and port so a directory-side policy change does not break logins without warning.
Ask the directory team for the encryption requirements in writing, including the port and any signing or binding rules, before you test the connection.
Both SSL and StartTLS only protect the connection if Metabase verifies that it is talking to the real directory server. That verification depends on the certificate chain presented by the directory being trusted by the Java runtime that runs the Metabase JAR. The trust store used by the JVM may differ from the operating system store, so a certificate that works in a browser or in a shell on the host can still fail inside Metabase. The usual cause is a private certificate authority that is missing from the JVM trust store, or a certificate whose name does not match the host name Metabase uses to connect.
- Chain completeness: Make sure the server presents its intermediate certificates along with its own certificate.
- JVM trust store: Import the issuing certificate authority into the trust store the Metabase JVM actually reads, and restart Metabase after the change.
- Host name match: The name in the LDAP host setting must match a name on the certificate.
- Expiry and rotation: Add the directory certificate to your renewal calendar, since an expired certificate stops logins.
- Failure testing: Test with a certificate that is not trusted to confirm that Metabase rejects the connection.
Confirm the trust store location and the certificate chain with your platform team and the directory team before you go live.
A practical decision follows from three questions: what the directory accepts, what your security policy requires, and what your Metabase deployment can trust. If the directory offers LDAPS and your policy requires encryption from the first packet, SSL is the straightforward choice. If the directory offers StartTLS on the standard port and it is easier to open that port in your network, StartTLS can meet the same goal, provided the upgrade is enforced. If the directory accepts only signed or encrypted binds, None is not an option. The decision also changes if Metabase runs in a container or a managed platform, because the trust store must be managed in that image or environment rather than on a single host.
- Policy first: Start from the directory's encryption and signing rules, then pick the transport that satisfies them.
- Network path: Choose the option whose port your firewalls can allow from the Metabase host.
- Container or cluster: Plan how the certificate will reach every Metabase instance and survive image rebuilds.
- Testing: Verify the chosen option with a test account before enabling it for all users.
- Documentation: Record the choice, the port and the certificate source for your access review.
Before you commit, confirm the final setting with the directory team and check that the same option works from each Metabase node you run.
Mapping directory attributes to Metabase user fields
This table compares the directory attributes Metabase reads for each user field, what changes when your directory schema differs, and how accounts and groups behave at first login. Read it before you configure the attribute settings, because a mismatched attribute name can leave users without a name or email address. Group membership depends on your plan, so confirm which group behavior your edition supports before you design the mapping.
| Metabase field | Default directory attribute | What to check or change |
|---|---|---|
| Email address | Confirm every user who signs in has a populated mail value, since Metabase needs it as the account identifier. Change the attribute name if your schema stores email elsewhere. | |
| First name | givenname | Verify that the attribute exists and is populated for service-like or contractor accounts. Update the setting if your directory uses a custom first-name attribute. |
| Last name | sn | Check that the surname attribute is populated for all users who will sign in. Record any custom attribute name in your configuration notes for the upgrade and audit files. |
| Account creation at first login | Provisioned automatically by default | Confirm with your team whether accounts should be created at first login or only for pre-approved users. Decide who can sign in before go-live, since this controls who gets an account. |
| Group membership | Depends on plan and directory design | Basic LDAP login works on open source and Starter plans, but advanced LDAP group and attribute sync requires Pro or Enterprise. Confirm the group behavior with your edition before you plan group-based access. |
| Attribute changes after first login | Reflected at next sign-in | Test with a sample user after changing an attribute name, because existing accounts may keep old values until the user signs in again. Document how you will correct names or emails for existing accounts. |
How first-login provisioning and LDAP group mapping behave
By default, Metabase creates an account the first time a directory user signs in successfully through LDAP, so no one is provisioned in advance. That default has two consequences you should plan for. First, a user who never signs in never gets a Metabase account, which means an onboarding list in Active Directory does not translate into Metabase access until the person logs in. Second, offboarding is not automatic on the basic LDAP flow. When someone leaves, disabling their directory account stops new logins, but the existing Metabase account, its saved questions and its group memberships remain until an administrator deactivates or removes them. Confirm with your own tests how your directory state is reflected in Metabase, and document who owns the deactivation step and how often it is reviewed.
Group membership should be designed before rollout, not after the first users arrive. Decide which directory groups, such as a naming pattern for analysts, finance or data stewards, map to Metabase groups, and which Metabase groups carry data and collection permissions. Permissions are set in Metabase, so a directory group that is mapped loosely can grant more access than intended. Fix the group names, the distinguished names your administrators will use, and an owner for each mapping before pilot users sign in. Keep a short record of the mapping so that a later change in the directory can be traced to a change in Metabase.
Advanced LDAP group and attribute sync is a Pro or Enterprise feature, according to Metabase's people and groups documentation. On the Open Source and Starter plans you get the basic LDAP login flow, with account creation at first sign-in and the attributes described above, but you should not assume that directory group changes will be pushed into Metabase group membership on those plans. Confirm the exact capabilities for your plan with the Metabase LDAP documentation and in a test instance before you commit to a design. If your access model depends on group sync, price the Pro or Enterprise plan into the decision from the start, using the current figures on Metabase's pricing page.
Hardening the Metabase LDAP connection
A Metabase LDAP connection is only as strong as the directory account it uses and the path that carries its traffic. The cards below cover the decisions and checks that keep the bind account, transport, search scope and fallback access under control.
Scope the bind account
Create a dedicated, read-only service account in Active Directory or OpenLDAP for Metabase to bind with, and do not reuse a person's account or a domain administrator. Grant it read access only to the users and groups Metabase needs to see. Verify by signing in with a test user and by confirming the account cannot write to the directory with a standard query tool.
Metabase LDAP docsEncrypt directory traffic
Choose SSL or StartTLS rather than leaving the connection unencrypted, because the bind password and user details would otherwise cross the network in the clear. Confirm that Metabase trusts the certificate chain of your domain controllers or LDAP server, and test the connection from the Metabase host itself, since a certificate that works from a workstation may still fail here.
Restrict the search base
Set the user search base to the organizational unit that holds people who should use Metabase, not the whole directory tree. A narrow base limits which accounts can sign in and which records Metabase can read. Check the result by listing the accounts that appear as provisioned after a test login and confirming that no service, contractor or disabled accounts are included.
Rotate the service account password
Set a long, unique password for the bind account and store it in your secrets manager rather than in a shared document. Plan rotation on a schedule your directory team already uses, and update the Metabase setting in the same change window. After each rotation, confirm that a fresh LDAP login still succeeds, because a stale bind password often looks like a general sign-in failure to users.
Require two-factor authentication
Enable authenticator-app two-factor authentication for password and LDAP logins so that a stolen directory password alone does not open Metabase. Decide the enrollment deadline and whether email fallback codes are allowed, and document both. Test enrollment with a non-admin account before enforcing it for all users.
Keep a local administrator path
Keep at least one local Metabase administrator account with a password that is stored offline, so that an LDAP outage, expired bind password or misconfigured search base does not lock every administrator out. Test that the local account signs in before you change the LDAP settings. Review the account periodically and disable it only after another administrator path has been proven.
Login flow from Metabase through the directory
The login starts in the browser, where a user submits a username and password to Metabase. Metabase opens a connection to the directory over SSL or StartTLS and binds with the service account to find the user's entry. It then attempts a bind as the user with the submitted password, reads the mail, givenname and sn attributes, and creates or updates the local account before granting a session. Check that the connection is encrypted, that the service account can search the user base, and that the required attributes are populated for every user who needs access.
Metabase binds, searches and authenticates the user against the directory before granting a session.
Why Metabase LDAP logins fail and how to fix them
This table lists the failures most often seen when Metabase is pointed at Active Directory or OpenLDAP, with the likely cause, the check to run and the fix for each. Work down the rows in order, because a bind or TLS failure hides every later symptom.
| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Bind rejected | Bind DN or password is wrong, or the bind user is a display name instead of a full distinguished name | Test the bind DN and password with an LDAP client from the Metabase host, and confirm the account is enabled and not locked | Use the full DN of a read-only service account, store the password securely and re-save the LDAP settings |
| TLS handshake fails | Certificate is issued by an internal CA Metabase does not trust, or the port does not match the security mode | Check that port 636 is used with SSL and that StartTLS is only selected on the port that accepts it, then inspect the certificate chain | Install the internal root and intermediate certificates in the Java trust store used by the Metabase JAR, then retry the connection |
| User not found at login | User search base is too narrow, or the user filter excludes the account | Run the same search with an LDAP client using the configured base and filter and confirm the user appears | Widen the search base to include the OU that holds users, and correct the filter and the username attribute |
| Login works but profile is incomplete | Email, first name or last name attributes are missing or use different names in your directory | Compare the attribute names Metabase expects (mail, givenname and sn by default) with what the directory returns for the test user | Map the attribute names in the LDAP settings to the ones your directory populates, and fill in missing values for affected users |
| No account created at first login | Automatic provisioning is turned off, or the user lacks a required attribute | Review the user provisioning setting and the Metabase user list for the test account | Enable provisioning on first login, or create users in advance if policy requires it, and confirm required attributes are present |
| Group membership does not apply | LDAP group mapping is not available on the current plan, or the group filter does not match your directory schema | Confirm your plan in the pricing documentation and test the group search with an LDAP client | Move to a plan that includes advanced LDAP group and attribute sync, or assign Metabase groups manually until the plan supports it |
| Password login blocked for LDAP users | Metabase is set to LDAP for some accounts while local password login is still in use or disabled by policy | Check the authentication settings and whether the account exists as a local user with a different password | Remove or disable duplicate local accounts so each person signs in through one source |
Questions buyers ask about Metabase LDAP and Active Directory setup
Does LDAP work on the open source edition of Metabase?
Yes. Metabase's pricing page lists Google sign-in and LDAP as available on the Open Source and Starter plans, while JWT, OIDC, SAML, advanced LDAP group and attribute sync and SCIM provisioning require Pro or Enterprise. Basic LDAP login is therefore available without a license fee, but the directory connection still needs to be designed, tested and maintained by someone. Confirm the current plan table on the Metabase pricing page before you commit, since plan contents can change.
Which LDAP features require a Pro or Enterprise plan?
Advanced LDAP group and attribute synchronization requires Pro or Enterprise, so mapping directory groups to Metabase groups is the feature buyers most often need to check. Other features in the same category, such as SSO through SAML or OIDC, SCIM provisioning, row and column level permissions and usage analytics and auditing, are also limited to the paid tiers according to the pricing page. Ask your team which of these you need on day one, because that answer determines whether the open source edition is enough for your directory model.
How long does Metabase LDAP setup take?
Duration depends on how quickly your team can provide a working bind account, a directory contact who knows the schema and a certificate chain for SSL or StartTLS. The main drivers are directory access approvals, whether the attribute names in your directory match the defaults of mail, givenname and sn, how many test users and groups you need to validate, and how many environments (test, staging, production) must be configured in sequence. No fixed duration is supplied here, so request a written timeline from any partner based on your directory and change process.
What does the team need to provide before setup starts?
Plan to provide four things: a read-only bind account with rights to search the directory, the server name and port for your Active Directory or OpenLDAP service, the base distinguished name and search filters your directory uses, and the root or issuing certificate that your Metabase host must trust for SSL or StartTLS. You should also name a contact who can confirm which attributes hold email, first name and last name, and who can approve testing against production users. Missing any of these usually stalls the project early.
Can our internal team set up Metabase LDAP without outside help?
Often yes, if your team already runs directory services and has someone comfortable with Metabase's admin settings, TLS certificates and log review. The configuration itself is a set of admin settings, but troubleshooting failed binds, certificate trust problems and attribute mismatches takes directory and application knowledge. Assess whether your staff can test with real users and document the result for your security and compliance reviewers. Outside help is most useful when the directory is complex, several environments must match, or the review needs a repeatable record.
What does a fixed-scope DeployOpen engagement for Metabase LDAP cover?
A DeployOpen engagement is fixed-scope, so scope, deliverables and timelines are agreed in writing before work starts. For LDAP, the written scope typically needs to name the directory type, the connection security mode, the attributes and groups in use, the Metabase edition and plan, the environments in scope and the testing you expect to see. DeployOpen plans, implements and documents the connection and can prepare the evidence your compliance team asks for. Request a written quote from the scope you agree, since DeployOpen does not publish a price list.
What should we ask for in a quote for Metabase LDAP work?
Ask for the cost broken into the directory discovery, configuration, testing across environments, documentation and any handover or knowledge transfer. Confirm which items are one-time and which recur, such as updates after a Metabase upgrade or a change to your directory schema. Ask what assumptions the quote depends on, including access to a test directory, certificate availability and who will approve production changes. Also confirm whether group mapping or other paid-plan features are included, because they change both licensing and effort.
How DeployOpen scopes and delivers Metabase LDAP authentication
DeployOpen plans, builds, tests and documents the LDAP or Active Directory connection inside your own infrastructure, so your identity and security teams can review each setting before users depend on it. Engagements are fixed-scope, with the bind account, transport security, attribute mapping and group rules agreed in writing before work starts.
How we scope
- Confirm the directory type, domain controllers or LDAP servers, and whether StartTLS or SSL is required.
- Document the bind account, its read-only permissions, and the search base and user filter to be used.
- Agree which attributes map to email, first name and last name, and how unmatched accounts are handled.
How we build
- Configure the LDAP connection in a test Metabase instance, then verify certificate trust before any production change.
- Test provisioning at first login and confirm that disabled directory accounts cannot sign in to Metabase.
- Design LDAP group mapping rules with your directory owners and test each mapping against sample accounts.
How we hand over
- Deliver a written configuration record listing each setting, its purpose and the owner who approved it.
- Provide a test script that your team can rerun after upgrades, certificate renewals or directory changes.
- Walk through the rollback steps and the account recovery path with the people who will operate the connection.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer, scoped separately from the initial build.
- Review the LDAP settings again when Metabase is upgraded, since release notes may change authentication behavior.
- Confirm with your team which support hours, response paths and change approvals apply before the engagement starts.

