Skip to content

Do IMAP auth over direct socket connection#49

Merged
violoncelloCH merged 7 commits intomasterfrom
imap_rcube
Mar 15, 2019
Merged

Do IMAP auth over direct socket connection#49
violoncelloCH merged 7 commits intomasterfrom
imap_rcube

Conversation

@violoncelloCH
Copy link
Member

@violoncelloCH violoncelloCH commented Mar 13, 2019

fixes #44
fixes #13

Like proposed in #44 we took the implementation of roundcube but stripped away everything that's not needed for the authentication.

ref: https://github.com/roundcube/roundcubemail/blob/master/program/lib/Roundcube/rcube_imap_generic.php

as we're not using the php-imap (imap_open) library, this dependency isn't needed any more, however we need some different parameters to be set, so the configuration is different and needs to be changed on running instances (see https://github.com/nextcloud/user_external/blob/ec7929ab6aaaf97eb05b419c9d5b82544d629959/README.md vs. the current one)

thank you very much @ChristophWurst for your help!

cc @nextcloud/user_external @hcderaad @patschi @andryyy @lsbbs

violoncelloCH and others added 4 commits March 13, 2019 17:27
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
This reverts commit 9df4e31.
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@philtrick-twm
Copy link

Just a bit of information, I needed to use the following in the config.php: (I needed to explicitly use the mail server name, rather than 127.0.0.1, and I had to put single quotes around the ssl parameter, otherwise nextcloud had an error)

'user_backends' => array(
array(
'class' => 'OC_User_IMAP',
'arguments' => array(
'mail.example.com', 993, 'ssl', 'example.com'
),
),
),

@violoncelloCH
Copy link
Member Author

@philtrick-twm yes, thank you, see #52 and #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP IMAP extension deprecated OC_User_IMAP supporting only TLSv1

4 participants