LDAP Enable Option Not working

Hi All,

I have set-up LDAP authentication on my production environment, the issue is that the enable option is not persistent on reload. What would cause the option not to persist?

My set-up information is as below.

  "browser-info": {
    "language": "en-US",
    "platform": "Win32",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0",
    "vendor": ""
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "19.0.1+10-Ubuntu-1ubuntu122.04",
    "java.vendor": "Private Build",
    "java.vendor.url": "Unknown",
    "java.version": "19.0.1",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "19.0.1+10-Ubuntu-1ubuntu122.04",
    "os.name": "Linux",
    "os.version": "5.15.0-52-generic",
    "user.language": "en",
    "user.timezone": "Africa/Lusaka"
  "metabase-info": {
    "databases": [
    "hosting-env": "unknown",
    "application-database": "mysql",
    "application-database-details": {
      "database": {
        "name": "MariaDB",
        "version": "10.6.7-MariaDB-2ubuntu1.1"
      "jdbc-driver": {
        "name": "MariaDB Connector/J",
        "version": "2.7.6"
    "run-mode": "prod",
    "version": {
      "date": "2022-11-01",
      "tag": "v0.44.6",
      "branch": "release-x.44.x",
      "hash": "5c6ae21"
    "settings": {
      "report-timezone": null

Hi @asimumba
Could it be that you are using environment variables to control the setting?
I would recommend that you use Java LTS versions - either 11 or 17.

Hi @flamber, let me revert my java version and test.

@flamber The only time it is persistent is using the environment variable MB_LDAP_ENABLED=true. Other than this, every time I reload the page it is disabled. The other issue is that I can only save the setting once I disable authentication on the same page.

@asimumba It's a known visual issue:
https://github.com/metabase/metabase/issues/14790 - upvote by clicking :+1: on the first post

1 Like

Thanks for the alert. Is there a way to ascertain whether LDAP server is being pinged correctly by metabase when setting LDAP authentication?

@asimumba There's a connection test on save: