O365 IMAP Auth end of life 2022-10-01
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Ambito
- authentication
Direzione di ricerca
Start by tracing the IMAP authentication path in user_external and review the linked Microsoft Exchange guidance on basic-authentication deprecation. Define a supported replacement for O365 authentication and migration expectations; done means affected users can authenticate after basic authentication is disabled without relying on manual SQL changes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
IMAP Authentication in user_external uses basic authentication.
As of October 1, 2022 Microsoft will begin disabling basic authentication in Exchange365.
(There is information in the Microsoft link above describing how you can opt out of having Microsoft disable IMAP basic authentication for your tenant.)
Normally it is not possible to set a password in /settings/users for accounts authenticating through user_external. However, if you manually create an entry in oc_users with a uid that matches an entry in oc_users_external, it becomes possible to set a local nextcloud password.
My plan at the moment is to move my existing users from IMAP auth to internal Nextcloud Auth, then require twofactor_email for the migrated users.
The code snippet below works on my system to create entries in oc_users with matching uid values from oc_users_external.
My database settings from config.php:
'dbtype' => 'pgsql',
'dbname' => 'nextcloud',
'dbtableprefix' => 'oc_',
-
Connect to the sql database
sudo -u postgres psql -t -d nextcloud -
Manually create an entry in 'oc_users' using the same value for uid and displayname used in oc_users_external:
insert into oc_users(uid,displayname,uid_lower) select uid, displayname,lower(uid) from oc_users_external where uid like '<uid-from-oc_users_external>'; -
Once there is an entry in "oc_users" with a uid that matches an entry in oc_users_external, the user's password can be set in /settings/users
-
The User now sees the same files & shares if logging in using the original IMAP password or the new locally set password
-
Requring two factor auth using twofactor_email ensures that security remains tied to the user's email
There is some fine-tuning that could be applied to this procedure:
- All accounts could be migrated (remove the "where..." clause)
- All accounts could have a pre-defined password applied
- Create a bogus user
- Set the password for the bogus user
- Get the encrypted password info from oc_users for the bogus user
- Add the encrypted password to the sql 'insert' command
This code snippet sets the selected user's local password to "badPassword" -
insert into oc_users(uid,displayname,uid_lower,password)
select
uid,
displayname,
lower(uid),
'3|$argon2id$v=19$m=65536,t=4,p=1$aWZKcTZsV08yczguSHlNWA$3Tdbsc4hVuiM4o6zLtsR1xxhL9T27HzE2cM1umYl7nI'
from oc_users_external where uid like '<uid-from-oc_users_external>';
- 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
-
[DevEx]: Playground specs are excluded from both GUI and CI, so videoPlayground is unreachableApertadev experience
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
cuttle-cards/cuttle#1413 ·
I maintainer di solito rispondono entro 1 giorno
-
macOS
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
beyondcode/herd-community#1761 ·
-
More wallpapersApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
Make a dry lesson funApertacontent good first issue hacktoberfest
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
vieanderes/understory#19 ·
-
automated issue report
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
lirantal/discoprint#37 ·
I maintainer di solito rispondono entro 1 giorno