[IMAP] login without domain is alowed and creates new users
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- php
- Lĩnh vực
- authentication, backend
Hướng nghiên cứu
Start by reproducing the behavior with the shown OC_User_IMAP configuration, especially with domain stripping disabled. Compare authentication for [email protected] and user, and verify the resulting Nextcloud UIDs and external-account records. Done means a domainless login is rejected when the IMAP server rejects it and no unintended user is created.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Steps to reproduce
- setup nextcloud and configure
user_externalas further below (especially withfalsefor domain stripping). - login as
[email protected]and everything seems to work as it should: new users get automatically created withuid[email protected].
also the tablesusers_external,accountsandcredentialsseem fine... - now try to login as
userwith the same (correct) password: then a new user withuidusergets created and seems to work like a normal nextcloud-user, although a login without the domain does not work at the plain IMAP-server! 😲 - first i thought this issue occurres because this instance has accidentally created new users without domain while migrating from user_external <0.6.0.
but i've deleted them all and this bug seems to "work" also for completely new users.
Expected behaviour
user_external should IMHO not add the domain for authentication and even more important not strip it for the nextcloud uid especially if it is configured to have uids with domain!
in best case this creates confusion or panic at the users and is just annoying for admins... but in the worst case with more than one user_backends resp. domain, this creates a hell of a mess and serious trouble!
Actual behaviour
see Steps to reproduce
Affected Authentication backend
at least IMAP (i don't use other)
Server configuration
User External App version: (see Nextcloud apps page)
0.8.0
Operating system:
ubuntu
Web server:
apache
Database:
mysql 5.7.28
PHP version:
7.2.24
Nextcloud version: (see Nextcloud admin page)
16.0.8.1
Updated from an older Nextcloud/ownCloud or fresh install:
updated from at least NC13
Where did you install Nextcloud from:
hoster script
Signing status:
Signing status
No errors have been found.
List of activated apps:
App list
quite a bunch, but IMHO in this case irrelevant.
Nextcloud configuration:
Config report
...
'user_backends' =>
array (
0 =>
array (
'class' => 'OC_User_IMAP',
'arguments' =>
array (
0 => 'mail.server.tld',
1 => 993,
2 => 'ssl',
3 => 'domain.tld',
4 => false,
5 => false,
),
),
),
...
Logs
Web server error log
Web server error log
nothing regarding this issue
Nextcloud log (data/nextcloud.log)
Nextcloud log
nothing regarding this issue
Browser log
Browser log
nothing regarding this issue
- Ngôn ngữ chính
- JavaScript
- Star
- 121
- Fork
- 73
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/user_external
-
0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nextcloud/user_external#298 · 1 reaction ·
-
NC 35 compatibilityĐang mở0. Needs triage enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
nextcloud/user_external#311 · 2 bình luận · 4 reaction ·
-
0. Needs triage bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
nextcloud/user_external#310 · 2 bình luận ·
-
v4.0.0 released!Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 20/100
nextcloud/user_external#295 · 3 reaction ·
-
0. Needs triage bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
nextcloud/user_external#281 · 6 bình luận · 3 reaction ·
Tất cả issue của nextcloud/user_external
Issue tương tự
-
Remove: Fox Deportes SDĐang mởcheck:passed feeds:remove
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
iptv-org/database#37176 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 9 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hawk-digital-environments/HAWKI#443 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feedback simulation workshop
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
githubnext/gh-aw-workshop#4370 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
AltimateAI/vscode-dbt-power-user#2089 ·