Skip to content

fix: scope LOGINDISABLED check to plaintext LOGIN branch - #935

Open
EJSRobinson wants to merge 1 commit into
mscdex:masterfrom
EJSRobinson:master
Open

EJSRobinson wants to merge 1 commit into
mscdex:masterfrom
EJSRobinson:master

Conversation

@EJSRobinson

Copy link
Copy Markdown

The LOGINDISABLED guard was an unconditional early return placed above auth mechanism selection, so servers advertising both AUTH=XOAUTH2 and LOGINDISABLED (e.g. Exchange Online) aborted before the XOAUTH2 branch was reached, even with a valid token configured.

Move the check inside the user/password branch so it only blocks plaintext LOGIN. Basic auth behaviour and error message are unchanged; the STARTTLS use of LOGINDISABLED is untouched.

The LOGINDISABLED guard was an unconditional early return placed above auth mechanism selection, so servers advertising both AUTH=XOAUTH2 and LOGINDISABLED (e.g. Exchange Online) aborted before the XOAUTH2 branch was reached, even with a valid token configured.

Move the check inside the user/password branch so it only blocks plaintext LOGIN. Basic auth behaviour and error message are unchanged; the STARTTLS use of LOGINDISABLED is untouched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant