Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

smb login improperly escapes username

未关闭
#18 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞

调研方向

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 "[email protected]" without regressing the simpler username.

由索引模型根据 Issue 内容生成。

描述

0. Needs triage bug
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 "[email protected]" 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
  1. Set up Samba
  2. smbpasswd -a "[email protected]", smbpasswd -a "myuser"
  3. Set password
  4. Try login from connected NextCloud. "myuser" works, "[email protected]" 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: '[email protected]' (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"}
主要语言
JavaScript
星标
120
派生
72
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/user_external 的其他 Issue

查看 nextcloud/user_external 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。