Replace imap_rcube library with curl call#122
Conversation
|
@violoncelloCH I understand that this is a quite an intrusive PR let me now what you think. |
|
hi @rollbrettler |
|
looks very promising and worked flawlessly in a first test... it even seems to be quicker with this than before... 👍 |
|
So to make this as easy as possible for potential testers, I've packaged a release with the changes from this pull-request: user_external-0.8.1-dev2.tar.gz |
|
After extracting you need to activate "External user Authentication 0.8.1-dev" under https://your.cloud/index.php/settings/apps/disabled I can confirm, that I could just login via imap auth with that version on a local NC 18.0.0 (debian stretch, apache2, mariadb 15.1) |
|
[PHP] Error: Undefined variable: rcube at /nextcloud/apps/user_external/lib/imap.php#106 POST /login [PHP] Error: Trying to get property 'error' of non-object at /nextcloud/apps/user_external/lib/imap.php#106 POST /login [user_external] Error: ERROR: Could not connect via roundcube lib: POST /login |
|
I have a similar error to #122 (comment) |
|
@Mannshoch @kevo-gt thanks for reporting, I completely missed the error case. I assume it would still not work for you though. Since there is still an error with connecting to your imap server, but maybe the error is now more descriptive. |
|
Resolves #59 for me, perfect! |
|
here is a new archive with the updates: user_external-0.8.1-dev2.tar.gz |
Thanks. I tried it and get the below error: I have curl and php73-curl installed and the OS is FreeBSD 12.0 |
|
@kevo-gt I see. Thanks for reporting. I think I fixed it. Iam not a php expert though. |
This has now worked, thanks very much! It is quite fast logging in as well |
|
With https://github.com/rollbrettler/user_external/archive/master.tar.gz Curl is working if I log into my webspace and run curl inside it: Please check my config.php: |
|
@Mannshoch according to your comment here #97 (comment) your setting before was not validating the certificate https://github.com/rollbrettler/user_external/archive/disable-certificate-check.tar.gz |
|
@rollbrettler SSL do not work over ssh If I exchange imap://... with imaps://... I get this error. I'll test the update as fast as possible. |
|
Was able to do the test earlier than expected. Could It may be a problem of the special characters in my E-Mail password? |
|
Bash indeed treats
Any chance you can share some more information about the env? |
This comment has been minimized.
This comment has been minimized.
|
@violoncelloCH will you squash and merge or shall I squash the commits? Otherwise there will be quite some noise in the commit history. |
|
Thanks a lot @rollbrettler and @violoncelloCH for your work. |
|
@rollbrettler I would be glad if you could squash the commits :) |
This commit removes the imap_rcube library with a curl call to the imap endpoint. Since curl is a dependency of nextcloud this should not cause any issues. This closes nextcloud#116 Signed-off-by: Tim Wichmann <tim@wichmann.online>
|
Commits are squashed |
|
just a question about the "migration path" to include it into #126: |
|
@DJCrashdummy In fact there is no automatic migration, but any value is considered as true while an empty string/value is considered as false; so this should(TM) work out of the box without a need to adapt the config. |
|
so let's hope that nobody has accidentally used |
|
this should have never worked because you would have passed an invalid string into the rcube lib... |
- parameter number `2` (the 3rd one): adapted options according to nextcloud#126 (comment) to fit nextcloud#122 - parameter number `3` (the 4th one): added the second possibility to allow all domains according to nextcloud#126 (comment) Signed-off-by: DJCrashdummy <DJCrashdummy@users.noreply.github.com>
|
When could the update be released? |
|
as soon as possible 🙃 ... this should have already been done, I see... will try to do it very soon :) |
|
here it comes: #133 |
|
Yea. Thanks a lot. Now I was able to upgrade from 15 -> 16 -> 17 and everything is working. 👍 |
|
Cool! Nice to hear... |
This commit removes the imap_rcube library with a curl call to the imap endpoint.
Since curl is a dependency of nextcloud this should not cause any issues.
This fixes #116
fixes #59
fixes #97
and fixes #105