Skip to content

Commit

Permalink
fix: add LDAP to installed apps (#2993)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell authored Nov 20, 2023
1 parent 1aa800e commit 9f9237e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions api/app/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -950,11 +950,12 @@

# LDAP setting
LDAP_INSTALLED = importlib.util.find_spec("flagsmith_ldap")
if LDAP_INSTALLED:
# The URL of the LDAP server.
LDAP_AUTH_URL = env.str("LDAP_AUTH_URL", None)
if LDAP_AUTH_URL:
AUTHENTICATION_BACKENDS.insert(0, "django_python3_ldap.auth.LDAPBackend")
# The URL of the LDAP server.
LDAP_AUTH_URL = env.str("LDAP_AUTH_URL", None)

if LDAP_INSTALLED and LDAP_AUTH_URL:
AUTHENTICATION_BACKENDS.insert(0, "django_python3_ldap.auth.LDAPBackend")
INSTALLED_APPS.append("flagsmith_ldap")

# Initiate TLS on connection.
LDAP_AUTH_USE_TLS = env.bool("LDAP_AUTH_USE_TLS", False)
Expand Down

3 comments on commit 9f9237e

@vercel
Copy link

@vercel vercel bot commented on 9f9237e Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 9f9237e Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-flagsmith.vercel.app
docs.bullet-train.io
docs-git-main-flagsmith.vercel.app
docs.flagsmith.com

@vercel
Copy link

@vercel vercel bot commented on 9f9237e Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.