Closed Mannshoch closed 4 years ago
Can you elaborate a little bit more on "not possible"? Anything in the logs?
( replaced username and domain with a dummy)
Is there any chance this is still being worked on? I'm having the same issue after updating to 16.0.4. Tried every config i could think of but nope.
~Moreover, user_external worked fine before the update, but there is no entry of it in the database. Is this normal? People used to log into nextcloud via IMAP, but all users (local & IMAP) seem to be listed only under oc_accounts.~
*EDIT: Also, I attempted to connect to the same IMAP server from a different NC, which didn't work either =/
**EDIT: I was able to find the users_external database table, but updating or removing entries doesn't seem to help.
Is there a possibility to get useful feedback from user_external?
@Mannshoch the webserver log doesn't really contain any information which would help here; I thought more about the Nextcloud log or the Mail server's log...
Take a look at this comment: https://github.com/nextcloud/user_external/issues/105#issuecomment-526811528 and PR #102 for improved logging in the next release
I tested the new release. Now I get an Error message:
[user_external] Error: ERROR: Could not connect via roundcube lib: The Auth_SASL package is required for DIGEST-MD5 authentication
GET /ocs/v2.php/cloud/capabilities from 80.253.95.99 at 2019-09-12T08:32:09+02:00
[index] Error: OC\User\NoUserException: Backends provided no user object at <<closure>>
0. <<closure>>
getUserFolder("USER-MAIL@DOMAIN.CH")
1. /httpdocs/CLOUD/lib/private/Files/Node/LazyRoot.php line 64
call_user_func_array([OC\Files\Node\Root {},"getUserFolder"], ["USER-MAIL@DOMAIN.CH"])
2. /httpdocs/CLOUD/lib/private/Files/Node/LazyRoot.php line 281
__call("getUserFolder", ["USER-MAIL@DOMAIN.CH"])
3. /httpdocs/CLOUD/lib/private/Share20/Share.php line 177
getUserFolder("USER-MAIL@DOMAIN.CH")
4. /httpdocs/CLOUD/apps/files_sharing/lib/Controller/ShareInfoController.php line 88
getNode()
5. /httpdocs/CLOUD/lib/private/AppFramework/Http/Dispatcher.php line 166
info("haLF3avFnhvD7Lb", "", null)
6. /httpdocs/CLOUD/lib/private/AppFramework/Http/Dispatcher.php line 99
executeController(OCA\Files_Sharin ... {}, "info")
7. /httpdocs/CLOUD/lib/private/AppFramework/App.php line 118
dispatch(OCA\Files_Sharin ... {}, "info")
8. /httpdocs/CLOUD/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
main("OCA\\Files_Shar ... r", "info", OC\AppFramework\ ... {}, {_route: "files_sharing.ShareInfo.info"})
9. <<closure>>
__invoke({_route: "files_sharing.ShareInfo.info"})
10. /httpdocs/CLOUD/lib/private/Route/Router.php line 297
call_user_func(OC\AppFramework\ ... {}, {_route: "files_sharing.ShareInfo.info"})
11. /httpdocs/CLOUD/lib/base.php line 987
match("/apps/files_sharing/shareinfo")
12. /httpdocs/CLOUD/index.php line 42
handleRequest()
POST /index.php/apps/files_sharing/shareinfo?t=haLF3avfNhvD7Lb
from 80.74.131.91 at 2019-09-12T08:31:54+02:00
[files] Error: Backends provided no user object for michel.ketterle@sp-wil.ch
POST /index.php/apps/files_sharing/shareinfo?t=haLF3avfNhvD7Lb
from 80.74.131.91 at 2019-09-12T08:31:54+02:00
@Mannshoch have you tried installing the Auth_SASL php package? looks like this is required in your case (the way your IMAP server authenticates) by the roundcube mail library we are using...
I'm not able to install anything. I have a simple PHP webspace with mail. In Backend Im able to setup the Webmail access. And that is already setup to Roundcube. I'm able to change it to horde if needed.
hmm, I see; but then that's going to be difficult... The only thing I can recommend to you is to continue to use the old code, as long as this solution works on your hoster's system (basically as long as they don't update their php environment to not include the old unmaintained mailing library)
Do the old version also work on Nextcloud 16+ ?
I try to write at my webhosters support and need some arguments. What old PHP package did you replaced with Auth_SASL?
yes, the old version should still work with Nextcloud 17... you would just need to adjust the nextcloud-dependency max-version in appinfo/info.xml ...
it's the php-imap extension... take a look at issue #44 for arguments and reference links and on the pr #49 for the change to roundcubes library which unfortunately needs this Auth_SASL dependency for authentication in your case (seems to depend on the imap mailserver config/implementation)
also the php-imap extension only supports TLSv1.1 (no v1.2 or 1.3) which causes issues as well
My Webhoster told me they installed pear and Auth_SASL for me. But I still get this error:
ERROR: Could not connect via roundcube lib: The Auth_SASL package is required for DIGEST-MD5 authentication
Are there other requirements I may need?
if I test with <?php require_once 'Mail.php'; var_dump(class_exists('Mail')); then I get True. Auth_SASL should work then, shouldn't it?
My Webhoster told me they installed pear and Auth_SASL for me. But I still get this error:
ERROR: Could not connect via roundcube lib: The Auth_SASL package is required for DIGEST-MD5 authentication
Are there other requirements I may need?
i just update from 14.x to 15. and same error. any workaround?
My Webhoster told me they installed pear and Auth_SASL for me. But I still get this error:
ERROR: Could not connect via roundcube lib: The Auth_SASL package is required for DIGEST-MD5 authentication
Are there other requirements I may need?
hmm strange; maybe the webserver wasn't restarted properly after adding the package?
My Webhoster told me they installed pear and Auth_SASL for me. But I still get this error:
ERROR: Could not connect via roundcube lib: The Auth_SASL package is required for DIGEST-MD5 authentication
Are there other requirements I may need?hmm strange; maybe the webserver wasn't restarted properly after adding the package?
thanks! i update too the connection string for the imap server and just work again.
great to hear that you made it working again @ftoledo ! maybe you can share with us what you exactly changed so others can take a look and hopefully fix their setups as well...?
great to hear that you made it working again @ftoledo ! maybe you can share with us what you exactly changed so others can take a look and hopefully fix their setups as well...?
yeap, i just update the server settings (the array items) at mi config.php
'user_backends' =>.
array (
0 =>.
array (
'class' => 'OC_User_IMAP',
'arguments' =>.
array (
0 => '127.0.0.1',
1 => 143,
2 => NULL,
3 => 'midomain.com.ar',
4 => true,
5 => false,
),
),
),
I teste every thing possible now and I have only in one condition an other Feedback than
ERROR: Could not connect via roundcube lib: The Auth_SASL package is required for DIGEST-MD5 authentication
If I set the security to 'tls' i get
ERROR: Could not connect via roundcube lib: Empty startup greeting
I just hit the same issue by upgrading NC from 14 to 15. I'm running NC 15.0.13, user_external 0.7.0 on FreeBSD 11.3 with Apache 2.4.41, PHP 7.2.24 and Pear-Auth_SASL 1.1.0.
Lucky I was able to temporary disable DIGEST-MD5 authentication on our IMAP sever, thus I worked it around for now, but this problem can be a show-stopper for anyone who cannot change their mail server settings.
I'm not able to deactivate DIGEST-MD5 because I have no control for this settings
It looks like the the code is unable to use the Pear Auth_SASL, even if it is installed and working (I'm running it on FreeBSD 11.3):
# pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.4.3 stable
Auth 1.6.4 stable
Auth_SASL 1.1.0 stable
Console_Getopt 1.4.1 stable
PEAR 1.10.6 stable
Structures_Graph 1.1.1 stable
Or the cause can be related to this? Failed authentication via Roundcube: AUTHENTICATE DIGEST-MD5
Dear Developers
I request you for a stable solution. My Nextcloud is still at 15.0.5 external_user is at 0.5.1 and I wish to update to current Nextcloud.
I'm not sure where the Problem is but I please you to find a solution for this issue. I know, I'm not a big customer. There is still this little club with Nextcloud and Mail from a cheap shared hoster webspace I serve as admin. But If you could spear some time. I would like it if you could work on this.
If you need any Information, I would likely help
Hi @Mannshoch Please note that I'm not a Nextcloud employee but just a community member maintaining this app in my spare time which is very rare currently. I can understand your demand for a solution to this issue and I'm sad to not being able to provide this quickly.
So please also don't blame Nextcloud GmbH for not solving this; they are limited in man power as well and need to focus on customer requests. If you're a customer of Nextcloud GmbH, please use the official communication ways to ask a solution there.
In the mean time I'd like to encourage anyone willing to take a deeper look at the code and to contribute changes and improvements :)
Is it may possible to add the old way as a fallback or an extra tick you have to set in settings to user_external?
hi everyone we have a nice new approach for IMAP authentication which hopefully also fixes this issue from @rollbrettler in #122 (Thanks a lot to them!) now we're looking for as much volunteers as possible to test this out, so please take a look at #122 - further info (also on how to proceed) will be following there...
please take a look at this comment with info on how to proceed: https://github.com/nextcloud/user_external/pull/122#issuecomment-582109772
Steps to reproduce
old config.php
new config.php
example user: username@domain.ch