This category is for issues regarding specific apps, NOT general issues with YunoHost.
on
This form is written in English but feel free to write in French if you’re more comfortable!
on
What app is this about, and its version
Nextcloud, 34.0.4~ynh1
What YunoHost version are you running
12.1.41.2
What type of hardware are you using
VPS bought online
Describe your issue
When I log in directly via the Nextcloud portal, there are no issues.
When I access Nextcloud after logging in via the YNH portal (with the same user), the user account is immediately disabled.
It might be a coincidence, but this has been happening to me since the security update: 0037_fix_bad_permissions
Thanks in advance for your help.
I tryied to reproduce your issue by logging in in the portal and then entering nexcloud via the tile but I am not facing the same issue. .
Is it the nexcloud account or the yunohost accound that is disabled ?
I’ve tested this with various users, and it seems to happen only to users who have Nextcloud 2FA enabled. I suspect there is a link between the YNH SSO login and this 2FA, which is causing the account to be blocked and disabled.
However, I have no idea why this is suddenly happening…
Up!
Has anyone else encountered the same problem? Or does anyone have an idea on how to resolve this issue? 2FA and SSO was working well so far.
Thanks.
To be more complete: I think the authentication might fail because of this protection ( protect_against_basic_auth_spoofing).
Then, since the 2FA tries y retries the authentication, the ip gets banned both by the nextcloud fail2ban jail and by nextcloud’s brute-force protection.
But the problem only seemed to start after the YNH SSO login, and that protection seems to permanently block basic auth. While the auth_header overwrite happens after ynh-SSO and, as you mentioned, keeps being relevant regardless of the general basic auth “protection” (i.e. if basic auth is disabled).
So it might also rather be the auth_header package setting that could need adjusting.
I could not find any official yunohost command to override that package manifest configuration with an an admin setting, to test it out, maybe manually edit /etc/yunohost/app/…/settings.. and restart nginx?
@otm33 Unfortunately, none of the commands worked. My account gets blocked every time, if I leave 2FA enabled.
And I usually proceeded this way : 1) Log into the YunoHost portal → 2) Click on the Nextcloud tile 3) Log into Nextcloud portal (id/password) 4) Nextcloud 2FA page 5) Access to Nextcloud
Yes, I agree. But I suppose I didn’t pay attention to it since two-factor authentication was enabled; so I thought it was normal, until it blocked me a few weeks ago. -_-’
Could it be a general and severe SSO bug that there is no way to configure inserting the SSO authUserHeaders without overriding the app’s authorisation header?
Testing this with nextcloud could be interesting for the general discussion at: