mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
LDAP conflict to already exist users #2647
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lpb1 on GitHub (Nov 14, 2024).
Bug Report
Installation Method
docker run -d
-p 8082:8080
-e “OPENAI_API_BASE_URLS=http://xxxx;https://xxxx”
-e “OPENAI_API_KEYS=sk-test;sk-test”
-e OLLAMA_BASE_URL=http://xxxx:11434
-v /open-webui/data:/app/backend/data
--name open-webui
--restart always
ghcr.io/open-webui/open-webui:v0.3.34
docker compose.yaml:
version: '3'
services:
openwebui:
image: ghcr.io/open-webui/open-webui:git-f5f2215
container_name: open-webui
ports:
volumes:
environment:
Environment
Open WebUI Version: [git-f5f2215]
Operating System: [Ubuntu 22.04]
Confirmation:
Expected Behavior:
If the email is not registered before LDAP integrated, LDAP user can login directly, if the setting of default user role is USER
If the email is registered before LDAP integrated, LDAP account should be a new user or inherit from already exist local account.
Actual Behavior:
The email is not registered before LDAP integrated:
LDAP user can not login directly, the status is pending, even the setting of default user role is USER.
The email is registered before LDAP integrated:
LDAP user login failed both with domain password and already registered password, already registered local user login successful with data
Description
Bug Summary:
already exist same name local account conflict to ldap accounts
Reproduction Details
Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
Logs and Screenshots
Browser Console Logs:
Failed to load resource: the server responded with a status of 400 (Bad Request)
index.ts:132 Objectdetail: "400: The email or password provided is incorrect. Please check for typos and try logging in again."Prototype: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()defineGetter: ƒ defineGetter()defineSetter: ƒ defineSetter()lookupGetter: ƒ lookupGetter()lookupSetter: ƒ lookupSetter()proto: (...)get proto: ƒ proto()set proto: ƒ proto()
api/v1/auths/ldap:1
Docker Container Logs:
INFO [open_webui.apps.webui.models.auths] authenticate_user: pblv@xxxx.com
DEBUG [open_webui.main] Commit session after request
INFO: xxxx:61395 - "POST /api/v1/auths/ldap HTTP/1.1" 400 Bad Request
Screenshots/Screen Recordings (if applicable):
