Troubleshooting Metabase SAML and LDAP logins

A structured way to find why Metabase sign-ins fail under SAML or LDAP, which settings to check first, and when the plan you run determines whether the fix is possible at all.

On this page

Why Metabase SAML and LDAP logins fail and where to start

When users cannot sign in to a self-hosted Metabase after SSO or LDAP was configured, or a login broke after a change, the fastest route to a fix is to check two things in order: which sign-in method your plan actually allows, and whether the identity provider and Metabase agree on the same values. Most failures are mismatches, not defects. An issuer string, a certificate, an SSO URL or a bind account that differs by one character is enough to block every user, and the error seen by the user often says little about which side is wrong.

Your plan decides which login paths exist at all. Metabase's pricing page places SSO, row and column level permissions and usage analytics and auditing in the Pro and Enterprise plans, and the people and groups documentation says SAML and advanced LDAP group and attribute sync require Pro or Enterprise. The Open Source and Starter plans support Google sign-in and basic LDAP. So if your team configured SAML on a free or Starter instance, the SAML login will not work regardless of how carefully the identity provider was set up. Confirm your edition in the admin settings before you open the identity provider console.

Once the plan is confirmed, separate the problem by protocol. For SAML, compare the issuer, certificate and SSO URL that Metabase holds with what the identity provider publishes, and use Metabase's SAML troubleshooting guide as the reference for each value. For LDAP, check the bind account, the search base and the user filter, and use the LDAP troubleshooting guide for its sample configuration and known limitations. Record what changed and when, because a login that broke after a certificate rotation or directory change points to a different fix than one that never worked.

How a Metabase SAML or LDAP sign-in travels and where it breaks

A sign-in starts in the browser when a user opens Metabase, which hands the request to the identity provider for SAML or to the directory for LDAP. For SAML, the identity provider returns a signed assertion to the Metabase callback, so the issuer, the certificate and the SSO URL must match on both sides. For LDAP, Metabase first binds with a service account and then searches for the user, so the bind credentials and search base are the points to check. Failures at either step look similar to the user, so check each hand-off in order.

Where a Metabase SAML or LDAP sign-in hands off between user, Metabase and the identity source.

Which checks to run for SAML versus LDAP failures

SAML sign-in depends on three values agreeing on both sides: the identity provider's configuration and the Metabase SAML settings. When a user is redirected and then returned to Metabase with an error, the cause is almost always a mismatch in one of these values rather than a fault in the user's account. Start by comparing the identity provider's metadata against what is entered in the Metabase admin settings, one field at a time, and record the exact values rather than relying on memory.

  • Issuer and entity ID: The identity provider's issuer must match the identity provider entity ID that Metabase is configured to expect. A trailing slash, a different scheme or a copied value from a test tenant is enough to break sign-in.
  • Certificate and signing: Confirm that the certificate Metabase holds is the one the identity provider currently signs with. Certificates rotate, and an old certificate after rotation produces signature validation errors that look like general login failures.
  • SSO URL: The single sign-on URL in Metabase must point to the endpoint the identity provider publishes. Check for a wrong tenant path, a host that differs between staging and production, or a missing path segment.
  • Assertion consumer service (ACS) URL: The ACS URL registered with the identity provider must equal the callback address Metabase uses. A mismatch in the hostname, protocol or port usually returns an error before the user reaches Metabase.
  • Clock and redirect: Check that servers have accurate time, and confirm that the public site URL in Metabase matches the address users actually type. Each difference here can reject an otherwise valid assertion.

Check the SAML values before anything else, because they are fixed strings that either match or do not. Compare them against the official SAML troubleshooting guide for the exact field names in your version.

How to diagnose a failed sign-in step by step

This sequence turns a vague "can't log in" report into a single identified failing step, so the team fixes the actual cause instead of changing settings at random. Each step ends with a check that tells you whether to move on.

  1. Capture the exact error and timestamp

    Ask the user for the exact message they saw, the time of the attempt with time zone, and the sign-in path they used (SAML, LDAP, or the normal password form). Record the Metabase URL and the identity provider involved. Then confirm you have the same details from the identity provider side, such as the sign-in log entry for that minute. Done when you have one written record that names the protocol, the error text and the time, so you can match it to log lines later.

  2. Confirm the plan supports the protocol

    Check the protocol against your Metabase plan before debugging settings. According to Metabase's pricing page, SSO is included only in the Pro and Enterprise plans, and SAML requires Pro or Enterprise, while Open Source and Starter support Google sign-in and LDAP. Confirm this in the admin settings of your running instance and against the current pricing page. Done when you know whether SAML is even available on this instance; if it is not, stop here, because no SAML configuration change will fix it.

  3. Reproduce with one test account

    Create or pick one test user who belongs to the group you expect, and sign in with it in a private browser window with no existing session. Use one account only so that a failure cannot be blamed on a particular user's group membership, password state or account status. Note whether the attempt fails on the identity provider page, during the redirect back to Metabase, or after the redirect lands. Done when you can reproduce the failure on demand with that account and have noted at which page it stops.

  4. Find the failing step in Metabase logs

    Open the Metabase application logs and filter to the timestamp you captured, looking for SAML or LDAP entries from the same attempt. For SAML, the failure usually appears as an error about the response, signature, issuer or audience. For LDAP, look for bind, search or connection messages. Record the log line that first differs from a successful sign-in. Done when you can name one specific failing check, such as the bind step or signature validation, rather than just "login failed." If no entry appears, confirm you are reading the correct instance and log level.

  5. Compare identity provider metadata with Metabase settings

    Line up each value the identity provider issued against what Metabase has saved: the entity or issuer identifier, the SSO URL, the signing certificate, and the attribute names used for email and groups. For LDAP, compare the bind distinguished name, the search base, the user search filter and the TLS settings. Check for trailing slashes, http versus https, and certificates that have been rotated. Metabase's SAML and LDAP troubleshooting guides list the expected fields and sample values. Done when every field has a matching value, or you have one specific mismatch written down.

  6. Retest after each single change

    Correct one mismatch or setting at a time, save, and repeat the same test account sign-in from a fresh browser session. Keep a short change log with the time, the field changed and the result. If a change does not move the failure to a later step or fix it, revert it before trying the next. Done when the test account signs in successfully and the log shows a clean sign-in entry, and you can list the single change that resolved it.

  7. Confirm access with a second user and keep the backup login

    Sign in with a second user from a different group to confirm that group mapping and attribute sync behave as intended, not only the login itself. Before you close the ticket, confirm that a local admin account still works, so that a future SSO failure does not lock every administrator out. Done when a second user from another group lands with the expected permissions and a local admin sign-in is verified.

Which login method to troubleshoot first and when each fits

This table compares Google sign-in, LDAP and SAML on plan availability, what each method depends on, where failures usually start, and when each fits. Read the plan row first, because it decides which methods your instance can use at all, then match the dependency row to the systems your team can inspect.

Login methodOpen source and StarterPro and EnterpriseTypical failure points and fit
Google sign-inSupportedSupportedDepends on the Google account and its domain matching your instance settings. Fits small teams already running on Google Workspace accounts.
LDAPSupportedSupported, with advanced group and attribute syncDepends on the directory server, bind account, and search base and filter. Failures usually come from bind credentials, search scope, or user attribute names. Fits organizations with an existing on-premises directory.
SAMLNot includedSupported, with documented setups for Auth0, Entra ID, Google, Keycloak and OktaDepends on identity provider metadata, the issuer, certificate, and the SSO URL matching what Metabase expects. Failures usually come from a mismatched issuer, an expired or replaced certificate, or an outdated metadata file. Fits organizations that need federated sign-in through a central identity provider.
Directory or identity provider dependencyDirectory for LDAP onlyDirectory, identity provider metadata, and SCIM provisioning where usedConfirm with your directory or identity team which system is the source of truth for each user before changing Metabase settings.
Group mappingLimited to LDAP as supported by the planAdvanced LDAP group and attribute sync and SAML group configurationGroup mismatches look like login success with missing access. Check group names in the identity source against Metabase groups.
Admin backup loginAvailable for local admin accountsAvailable for local admin accountsConfirm that a local admin account exists and its password is known before changing SSO settings, so the instance stays reachable if SSO fails.

When to use the admin backup login and how to keep it safe

The local admin account is the way back into Metabase when SSO is misconfigured and no one can sign in through SAML or LDAP. Treat it as an emergency control, not a convenience login. Before you change a SAML issuer, certificate, SSO URL or LDAP bind setting on a production instance, confirm that the local admin account can sign in and that its password is known to the people who would need it. A login you have never tested during an outage is not a fallback. Confirm in your own environment how the local admin login behaves in your Metabase version and plan, including whether password login stays enabled once SSO is turned on and whether it is available for every user type. Do not assume this from memory or from another instance. Write the result into your runbook with the version you tested.

Protect the account as you would any privileged credential. Use a long, unique password stored in your organization's approved secrets vault, with access limited to a named small group of administrators. Keep the account out of daily use so that a sign-in to it is always unusual. Monitor it: route Metabase's authentication and audit events for that account into your logging or SIEM pipeline and alert on any sign-in, failed attempt or password change. Review who holds the credential and whether the stored password still works at a set interval, and retest after every SSO change or Metabase upgrade. Plan for recovery of the account too. If the only admin account is lost, recovering it may require direct database work, so confirm the procedure with your platform team before you need it. Your identity provider team should also know that changes to SSO settings must be followed by a test sign-in from a non-admin account.

Security risks to manage while fixing sign-in

Sign-in failures tempt teams to change settings quickly, sometimes in production and sometimes with the wrong access. The cards below cover the risks that appear while you troubleshoot SAML and LDAP, so the fix does not create a larger exposure than the outage.

Changing SSO settings can lock out everyone

Editing the SAML or LDAP configuration on a live instance can remove the only working path into Metabase for every user at once. Before you change an issuer, certificate, SSO URL or bind setting, note the current values and confirm which administrator accounts can still sign in with a local password. Make one change at a time so you know which edit restored or broke access.

SAML troubleshooting guide

Disabling SSO weakens access controls

Turning SSO off to get back in can move every user onto local passwords, which bypasses your identity provider's MFA, deprovisioning and session policies. Treat the fallback as a temporary recovery path, limit it to named administrators, and re-enable SSO as soon as the fault is fixed. Record who used the fallback and when so the change can be reviewed later.

Certificates and secrets in config files

SAML signing certificates, LDAP bind passwords and other secrets often end up in environment variables, Docker files or shared runbooks while you debug. Keep these values in your secrets store, restrict who can read deployment configuration, and remove copies from tickets and chat threads once the fix is in. Check that the certificate you deploy matches the one your identity provider currently signs with.

Overprivileged LDAP service accounts

Metabase needs a bind account to search the directory, and troubleshooting often leads teams to grant it broader rights than it needs. Give the account read access only to the user and group branches that Metabase searches, and avoid domain administrator or write rights. Ask your directory team to confirm which attributes the account can read, and rotate its password on the schedule you use for other service accounts.

Sensitive details in authentication logs

Verbose logging during an SSO investigation can capture assertions, user attributes, bind credentials or raw directory responses. Raise log levels only for the time you need, confirm that the destination for those logs is approved to hold personal data, and lower the level once the investigation closes. Review log files for leftover entries before you share them with a vendor or colleague.

Testing fixes directly in production

Trying each candidate fix against the live sign-in page exposes real users to failed attempts and can leave partial configuration in place. Where you can, reproduce the setup in a separate Metabase instance connected to the same identity provider or directory test environment, and write down the expected result for each test user. Apply the verified change to production in a planned window with a rollback step ready.

Questions buyers ask before fixing SSO or LDAP themselves

How much work does a Metabase SAML or LDAP login fix usually take?

No supplied figure gives a duration, so the honest answer depends on what is broken. A login fault caused by one mismatched value, such as an issuer or a certificate, is usually a short diagnosis. A fault that spans the identity provider, network path, directory structure and Metabase settings takes longer because each layer has to be checked in turn. The main drivers are how many systems are involved, whether the identity team can reproduce the failure, how many groups and attributes must map correctly, and whether you have a test environment. Ask any partner for a fixed-scope written plan that names the systems, the access needed and the verification steps before work starts.

Can our internal team fix Metabase SSO problems without a partner?

Often yes, if the team has someone who can read identity provider configuration and someone who administers Metabase. Metabase publishes troubleshooting guides for SAML and LDAP that walk through common checks, including sample configuration. Internal teams struggle when they cannot reproduce the failure safely, when the fault sits between two administrative teams, or when nobody has time to test changes outside production. A partner can help by building a repeatable test path and documenting the fix so the next failure is faster to diagnose.

What does the identity team need to provide for a Metabase SSO fix?

The identity team usually provides the identity provider application settings, the signing certificate details, the assertion or attribute examples for a test user, and directory access for LDAP lookups. The Metabase admin provides the current authentication settings, the admin backup login, access to logs and a test instance where changes can be tried. Both teams should agree who makes each change and who signs off. Without a shared test user and a record of the failing sign-in time, most diagnosis work is spent reconstructing what happened.

Which Metabase plan is required for SAML single sign-on?

SAML requires a Pro or Enterprise plan. According to Metabase's pricing page, SSO is included only in Pro and Enterprise, not in Open Source or Starter. Pro is listed at $575 per month or $517.50 per month billed yearly with the first 10 users included, and additional users cost $12 per month, while Enterprise is priced by quote starting at $20,000 per year. Confirm current pricing with Metabase before budgeting, because list prices can change. Also confirm the license terms that apply to your edition.

Does LDAP login work on Metabase open source?

Yes, LDAP is supported on the Open Source and Starter plans according to Metabase's people and groups documentation. Advanced LDAP group and attribute sync, however, requires Pro or Enterprise. Open source LDAP is a reasonable starting point for simple directory logins, but if you need groups from the directory to drive Metabase permissions, confirm that your edition covers that behavior before you plan the work. Check the exact feature list in Metabase's current documentation for your version.

What causes most LDAP bind and search failures in Metabase?

The most common causes are a bind account with the wrong distinguished name or password, a user search base that does not contain the test user, a search filter that does not match the directory's attribute names, and a network path blocked between the Metabase host and the directory. Certificate trust for secure connections is another frequent problem. Work through these in order using a single test account, and confirm each step against Metabase's LDAP troubleshooting guide, which includes sample configuration and related tools.

What should we ask a partner for before agreeing to a fixed-scope SSO fix?

Ask for a written scope that lists the identity provider, Metabase version and plan, the directory or SAML settings in scope, and the test and production environments. Ask what access the partner needs, how changes are recorded, how the admin backup login will be protected during the work, and what the handover covers. Ask how the fix will be verified with test accounts, which failure cases are covered, and whether a retest is included. Ask for a quote that follows from that scope, since DeployOpen does not publish a price list.

How DeployOpen scopes and delivers Metabase sign-in fixes

DeployOpen approaches Metabase SAML and LDAP login failures as a scoped engagement: we reproduce the failing sign-in, isolate whether the fault sits in the identity provider, the directory or the Metabase configuration, and then fix and document it inside your infrastructure. Engagements are fixed-scope, with the work agreed in writing before it starts.

How we scope

  • Confirm which sign-in path fails (SAML, LDAP or both) and which Metabase plan and version you run.
  • Agree in writing which identity provider, directory and Metabase instances are in scope for the fix.
  • Collect the failing error messages, sample assertions and directory query results before any change is made.

How we build

  • Check the SAML issuer, certificate and SSO URL values against the identity provider metadata and the Metabase settings.
  • Test LDAP bind account, search base, user filter and group settings with controlled test logins.
  • Verify that the admin backup login works before changing any authentication setting, so access is never lost.

How we hand over

  • Deliver a written record of the root cause, each configuration change and the test results for every sign-in path.
  • Document the admin backup login procedure and who is allowed to use it, with steps for your team to repeat.
  • Walk your identity and Metabase administrators through the final configuration and the retest evidence.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the fixed-scope work closes.
  • Retest sign-in paths after Metabase upgrades or identity provider certificate rotations, as agreed in scope.
  • Keep configuration notes current so future changes to SSO or LDAP can be reviewed against the documented baseline.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.