Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add username prefix option for IMAP authentication #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hschletz
Copy link

@hschletz hschletz commented Dec 3, 2020

Adds another option to IMAP authentication. If configured, this prefix will be prepended to the username before authenticating against an IMAP server.
The prefix is used for authentication only and not part of the Nextcloud username, making it invisible to the end-user.

Use case: Our company's mail provider uses a cryptic prefix for usernames, and there ist nothing we could do about it. For example, a user's mail address would be [email protected], but the IMAP username would be something like gr5418962-username.
To save our users from having to memorize a seemingly random character sequence, this PR allows adding the prefix to the plugin config:

array (
    0 => 'mail.example.com',
    1 => 143,
    2 => 'tls',
    3 => NULL,
    4 => true,
    5 => false,
    6 => 'gr5418962-',
),

This allows logging in as username, which will also be the Nextcloud username. The prefix will never become visible to the user or the application.

Adds another option to IMAP authentication. If configured, this prefix will be prepended to the username before authenticating against an IMAP server.
The prefix is used for authentication only and not part of the nextcloud username., making it invisible to the end-user.

Signed-off-by: Holger Schletz <[email protected]>
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