[IMAP] login without domain is alowed and creates new users
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- php
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- JavaScript
- スター
- 120
- フォーク
- 72
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/user_external のほかの issue
-
0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nextcloud/user_external#298 · リアクション 1 件 ·
-
NC 35 compatibilityオープン0. Needs triage enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
nextcloud/user_external#311 · コメント 6 件 · リアクション 6 件 ·
-
0. Needs triage bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
nextcloud/user_external#310 · コメント 2 件 ·
-
v4.0.0 released!オープン
難易度 1/5 1時間未満 初心者へのやさしさ 20/100
nextcloud/user_external#295 · リアクション 3 件 ·
-
0. Needs triage bug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
nextcloud/user_external#281 · コメント 6 件 · リアクション 3 件 ·
nextcloud/user_external の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
maintenance
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
alphagov/accessible-autocomplete#826 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
olahol/react-tagsinput#229 ·
-
[BUG] npm pkg delete removes the first array item for a nonexistent property対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
jonathanong/no-mistakes#2260 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信