mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #11500] issue: login by ldap and create user with CN #54917
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 @shihao138096 on GitHub (Mar 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11500
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
0.5.8-rc10
Operating System
CentOS 7.9
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
expect the username to be create is the user input
Actual Behavior
site-packages/open_webui/routers/auths.py
line 267: name=cn,
this line should be 'name=username', because in some case, cn is the nickname.
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@shihao138096 commented on GitHub (Mar 10, 2025):
@TheMasterFX commented on GitHub (Mar 10, 2025):
Does this correlate with my problem in the discussion? https://github.com/open-webui/open-webui/discussions/7298
@shihao138096 commented on GitHub (Mar 11, 2025):
First, you need to determine what attributes your AD domain has.
And then, config open webui ldap.
eg.
My LDAP(Microsoft AD) configuration is as attached. You can refer to it. Pay attention. Since the sAMAccountName attribute is the real username, I have replaced the "uid" with it.