Closed dgarlans closed 8 months ago
https://github.com/nextcloud/user_saml/commit/69c5f8f4211fa14a945399e0cfaefc4307d8256e
It looks like this was done deliberately. "- allow local group modifications in some cases
We use SAML to centrally manage the multifactor authentication for our users and administrators through single sign on. Was this a change implemented specifically to disallow the assignment of administrators via SAML?
Thanks for reporting. Closing it as a duplicate of https://github.com/nextcloud/user_saml/issues/813
Thanks for reporting. Closing it as a duplicate of #813
Some how i missed this one! thanks
⚠️ This issue respects the following points: ⚠️
Bug description
According to documentation, and our use of nextcloud over the last several years, when we have users login to nextcloud via saml using duo, if we want a user to be an admin on the nextcloud instance, we just had to make sure they were a part of the group passed through saml as "admin".
Now, however, we've been setting up some new nextcloud instances and it's not working anymore. We see that the user is a member of a group called "admin", but if we look in the command line through occ user info, we see the user actually gets added to "SAML_admin", instead of the actual "admin" group.
This is happening on 28.0.2 and 28.0.3. It worked on 28.0.1, but after upgrading to 28.0.2 or fresh installing 28.02 or 28.0.3 the incorrect behavior is occurring.
Steps to reproduce
Expected behavior
User should be added to actual "admin" group and become an administrator. This worked correctly throughout many previous versions going back to at least 17-18.
Installation method
Community Docker image
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
My initial examination of the relevant code makes it seem like this was a deliberate change, specifically on this line of code: https://github.com/nextcloud/user_saml/blob/181ecd34e1cc24c72108e29e291024a63442d6a6/lib/GroupManager.php#L305