Originally created by @shihao138096 on GitHub (Mar 10, 2025).
Check Existing Issues
I have searched the existing issues and discussions.
I am using the latest version of Open WebUI.
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
I have read and followed all instructions in README.md.
I am using the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
I have listed steps to reproduce the bug in detail.
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
set Microsoft AD with cn is nickename, isn't username.
config ldap in open webui
use ldap login
Logs & Screenshots
Additional Information
No response
Originally created by @shihao138096 on GitHub (Mar 10, 2025).
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
- [x] I am using the latest version of Open WebUI.
### 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
- [x] I have read and followed all instructions in `README.md`.
- [x] I am using the latest version of **both** Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have listed steps to reproduce the bug in detail.
### 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
1. set Microsoft AD with cn is nickename, isn't username.
2. config ldap in open webui
3. use ldap login
### Logs & Screenshots
### Additional Information
_No response_
GiteaMirror
added the bug label 2025-11-11 15:52:14 -06:00
@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
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.
@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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @shihao138096 on GitHub (Mar 10, 2025).
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.