nextcloud / user_external

👥 External user authentication methods like IMAP, SMB and FTP
https://apps.nextcloud.com/apps/user_external
107 stars 64 forks source link

Compatibility with Nextcloud 26 #222

Closed phol closed 1 year ago

phol commented 1 year ago

At the moment, the external user authentication addon is listed as incompatible with Nextcloud 26.

fkieling commented 1 year ago

I've also the same problem: currently no compatibility with NC26.

mateusmagen commented 1 year ago

Waiting for compatibility

nk-managedoffice commented 1 year ago

works now for me - without any updates, 3.1.0 app version and nc26

eazy commented 1 year ago

@nk-managedoffice

How can you run the old version with the latest NC release? I'll get the warning that the user_external app is not compatible und the app is automaticaly getting updated.

Thanks

nk-managedoffice commented 1 year ago

wrong pic v3.1.0 sry

image NC App Store and GitHub different

nk-managedoffice commented 1 year ago

Installed a NC instance again with my Script ...

Version: https://download.nextcloud.com/server/releases/latest.zip (v26.0.0beta2-9-g64e24c dirty) or only 26.0.0

Step 1: user_external installation via occ command occ app:install user_external and occ app:enable user_external -f

Step2: try to login via IMAP - login and mail work without problems - same settings as 3 weeks ago.

Edit: installed a few more instances - the following 2 commands via occ are enough and it works right away occ app:install user_external occ app:enable user_external -f

Output: user_external 3.1.0 installed user_external 3.1.0 enabled

my5cent: was no change or update - but ONLY when i enable with -f i can login via "user_external" app ... no idea why

freibadschwimmer commented 1 year ago

user_external (3.1.0) app does not work for me on NC26. I had upgraded to NC26 via browser. I was able to enable user_external, but users who were registered using the external authentication are not listed in the active users anylonger. I do see an increased number count of disabled users, but the users who registered with external authentication are not listed (they are added to the count, but their names/details are not listed). Also, trying to log in with other/new user name for which the user_external was set up does not work.

I also tried re-initiating the upgrade from terminal, as well as occ maintenance:repair, but no luck.

Hence, I could not get user_external working on NC26.

Edit: The log is getting flooded with: User backend \OCA\UserExternal\IMAP not found. Whether the app is disabled or enabled.

freibadschwimmer commented 1 year ago

Now here's something odd: After reporting that the app did not work for me with NC26, I closed my computer to deal with the issue later.

Now, when I checked again, it suddenly seems to work. Not sure was miraculously fixed the problem, but the flooding logged errors stopped a few minutes after I left, the users are back listed as active users, and using IMAP login works again. Not sure what happened meanwhile, except for maybe the cronjob must have been running (could this have done something?).

Yet, it still throws occasional errors:

[user_external] Error: ERROR: Could not connect to imap server via curl: 
GET /ocs/v1.php/cloud/user?format=json

[PHP] Error: Undefined array key 1 at .../nextcloud/apps/user_external/lib/IMAP.php#85
GET /ocs/v1.php/cloud/user?format=json

Edit: To add: Running on Apache 2.4.54, PHP 8.1.17 (FPM)

NathanHbt commented 1 year ago

Hello, I have upgraded from Nextcloud 25 to Nextcloud 26 and can confirm that the application is working. My users are still able to log in using their IMAP account.

Best regards,

Glandos commented 1 year ago

Same for me, it works without any issues

Aaron-Ritter commented 1 year ago

If it works can you just do a final test and update the compatibility in the config file?

Drumsk8 commented 1 year ago

I needed php occ app:enable user_external -f before it would work properly in NC26. Now I can login.

ghost commented 1 year ago

I just upgraded my Nextcloud from 25.xxx to 26.0.2. External IMAP users (oc_users_ecternal database table) are not visible in user list and they can't login to Nextcloud. Only those in local (oc_users database table) can authenticate. occ app:disable user_external and occ app:enable user_external -f don't change anything

ghost commented 1 year ago

Now here's something odd, same as freibadschwimmer: After reporting that the app did not work for me with NC26, I have restarted apache to apply one PHP config change, and all users are visible now ! It makes no sense !

Aaron-Ritter commented 1 year ago

Hi @come-nc @skjnldsv @violoncelloCH,

As you are some of the latest committer for nextcloud/user_external I was hoping you could help us to find out what we could do to get the Compatibility with nextcloud 26 commited. As the issue is now open since soon 3 months.

Is there anything which can be done with regards to testing by side what has already been done? Really hope for your input and direction.

And as the 27.0.0 (2023-06-13) Release is days away https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule it would be really amazing to have a approach of getting the compatibility tested and released sooner.

Thanks, Aaron

skjnldsv commented 1 year ago

https://github.com/nextcloud-releases/user_external/actions/runs/5256550951

giphy

skjnldsv commented 1 year ago

Sorry it took so long, apps releases is overwhelming! Please report any issues and ping me if any