From 9b2c2be82d643632cbc48112595c068e89851c0f Mon Sep 17 00:00:00 2001
From: linoman <2051016+linoman@users.noreply.github.com>
Date: Fri, 6 Sep 2024 15:13:22 +0200
Subject: [PATCH] SSO LDAP: Add login form alert (#93037)
* add alert if login form is disabled
* add i18n texts
---
public/app/features/admin/ldap/LdapSettingsPage.tsx | 10 ++++++++++
public/locales/en-US/grafana.json | 4 ++++
public/locales/pseudo-LOCALE/grafana.json | 4 ++++
3 files changed, 18 insertions(+)
diff --git a/public/app/features/admin/ldap/LdapSettingsPage.tsx b/public/app/features/admin/ldap/LdapSettingsPage.tsx
index 5d5e4885714..cc0cf54015c 100644
--- a/public/app/features/admin/ldap/LdapSettingsPage.tsx
+++ b/public/app/features/admin/ldap/LdapSettingsPage.tsx
@@ -218,9 +218,19 @@ export const LdapSettingsPage = () => {
);
+ const disabledFormAlert = (
+
+
+ Your LDAP configuration is not working because the basic login form is currently disabled. Please enable the
+ login form to use LDAP authentication. You can enable it on the Authentication page under “Auth settings”.
+
+
+ );
+
return (
+ {config.disableLoginForm && disabledFormAlert}