[IMAP] login without domain is alowed and creates new users
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- php
- Ambito
- authentication, backend
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- JavaScript
- Stelle
- 121
- Fork
- 73
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/user_external
-
0. Needs triage bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nextcloud/user_external#298 · 1 reazione ·
-
NC 35 compatibilityAperta0. Needs triage enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
nextcloud/user_external#311 · 2 commenti · 4 reazioni ·
-
0. Needs triage bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
nextcloud/user_external#310 · 2 commenti ·
-
v4.0.0 released!Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
nextcloud/user_external#295 · 3 reazioni ·
-
0. Needs triage bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
nextcloud/user_external#281 · 6 commenti · 3 reazioni ·
Tutte le issue di nextcloud/user_external
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
naver/egjs-flicking#971 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
RADAR-base/radar-self-enrolment-ui#118 ·
I maintainer di solito rispondono entro 1 giorno
-
Renderer treats a sub-pixel width difference as a resize, which cancels the `motion()` entranceAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
triage-needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
MicrosoftDocs/edge-developer#3970 ·
I maintainer di solito rispondono entro 1 giorno
-
agent/scanner hive/hosted-available-lke648397-260827-5n31 quality testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno