diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index 6e1a29b65..e041dc37b 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -1595,7 +1595,7 @@ AUDIO_TTS_AZURE_SPEECH_OUTPUT_FORMAT = PersistentConfig( ENABLE_LDAP = PersistentConfig( "ENABLE_LDAP", "ldap.enable", - os.environ.get("ENABLE_LDAP", "True").lower() == "true", + os.environ.get("ENABLE_LDAP", "false").lower() == "true", ) LDAP_SERVER_LABEL = PersistentConfig( diff --git a/src/routes/auth/+page.svelte b/src/routes/auth/+page.svelte index 169c1156f..0c9156e7e 100644 --- a/src/routes/auth/+page.svelte +++ b/src/routes/auth/+page.svelte @@ -56,14 +56,6 @@ } }; - const ldapSignInHandler = async () => { - const sessionUser = await ldapUserSignIn(ldapUsername, ldapPassword).catch((error) => { - toast.error(error); - return null; - }); - await setSessionUser(sessionUser); - }; - const signInHandler = async () => { const sessionUser = await userSignIn(email, password).catch((error) => { toast.error(error); @@ -94,6 +86,14 @@ } }; + const ldapSignInHandler = async () => { + const sessionUser = await ldapUserSignIn(ldapUsername, ldapPassword).catch((error) => { + toast.error(error); + return null; + }); + await setSessionUser(sessionUser); + }; + const checkOauthCallback = async () => { if (!$page.url.hash) { return; @@ -340,7 +340,7 @@