smb login improperly escapes username
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- authentication, backend
Research direction
Start with the SMB login backend of user_external and reproduce the failure using the documented Samba usernames, especially the address containing "@". Compare the failing login with the working "myuser" case; the issue is done when the documented external login succeeds for "myuser@something.com" without regressing the simpler username.
Written by the indexing model from the issue text.
Description
Affected apps
This afflicts the smb login backend of user_external. It also applies to external storage so I'm not sure where to post this.
Expected behaviour
Use the Samba user "myuser@something.com" to login to NextCloud.
Actual behaviour
Login fails because the username is improperly escaped (I assume) and so the "@" causes it to fail. The login works fine with the (separately added) user "myuser."
Steps to reproduce
- Set up Samba
smbpasswd -a "myuser@something.com",smbpasswd -a "myuser"- Set password
- Try login from connected NextCloud. "myuser" works, "myuser@something.com" doesn't.
Server configuration
NGINX: nginx/1.10.3
PHP
Version: 7.1.2
Memory Limit: 512.0 MB
Max Execution Time: 10800
Upload max size: 10.0 GB
Database
Type: mysql
Version: 10.1.21
Size:
NextCloud version: 11.0.2.7
Logs
Web server error log
Nothing - though that might be down to container settings
ownCloud log (data/owncloud.log)
{"reqId":"t13LpmruSZpw0FvUqaQ1","remoteAddr":"192.168.3.87","app":"core","message":"Login failed: 'myuser@something.com' (Remote IP: '192.168.3.87')","level":2,"time":"2017-03-13 12:25:26","method":"POST","url":"\/login?user=myuser%40something.com","user":"--","ver
sion":"11.0.2.7"}
- Dominant language
- JavaScript
- Stars
- 120
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/user_external
-
0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nextcloud/user_external#298 · 1 reaction ·
-
NC 35 compatibility Open0. Needs triage enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
nextcloud/user_external#311 · 1 comment · 2 reactions ·
-
0. Needs triage bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
nextcloud/user_external#310 · 2 comments ·
-
v4.0.0 released! Open
Difficulty 1/5 Under an hour Newbie friendliness 20/100
nextcloud/user_external#295 · 3 reactions ·
-
0. Needs triage bug
Difficulty 3/5 1-2 days Newbie friendliness 52/100
nextcloud/user_external#281 · 6 comments · 3 reactions ·
All issues in nextcloud/user_external
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
babalae/bettergi-scripts-list#3674 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
vadimdemedes/ink#1029 ·
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·