You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have setup the "LDAP User and Group Backend". I have an user in an LDAP group with RDN uid=admins which I promoted to be the administrative group for Nextcloud via php occ ldap:promote-group admins. However, this is not sufficient. If one logs in with an LDAP account that is in the LDAP group, but not in the local built-in group admin, several pages which require admin privileges exhibit an odd behavior and do not work as expected
As a work-around one can additionally add the affected LDAP user to the local built-in group admin via php occ group:adduser admin <ldap account>, but of course this makes promoting the LDAP admin group pointless.
The affected pages are:
User/group management (./settings/users): Groups and groups memberships are not shown. Only the active users are visible. Moreover in the navigation bar on the left side, the items "Administration" (for ./settings/users/admin) and "Disabled Users" (for ./settings/users/disabled) are missing. Also functionality is limited. If one attempts to edit an active user, e.g. (re-)set the password is seemingly works, but actually nothing happens. This is essentially bug [Bug]: LDAP User and Group Backend - Groups are not shown in Settings -> User, but groups are available on CLI and in other dialogs #42474.
LDAP/AD Integration (./settings/admin/ldap): The page only shows a partially filled form and reports the configuration as incomplete. If one tries to complete the form and edit the configuration two things might happen: the action fails silently, i.e. it appears as if it was successful, but after a page refresh the form is partially filled again, or an error is reported (happens if one tries to delete the offending configuration). This is essentially bug [Bug]: LDAP User and Group Backend - Web UI repeately reports LDAP configuration as incomplete #42475.
I haven't tested other administrative pages thoroughly. Chances are that there are more.
Steps to reproduce
Configure the "LDAP User and Group Backend"
Create an LDAP user account and an LDAP group which contains that LDAP account
Promote the LDAP group to be the administrative group for NC via php occ ldap:promote-group
(Optionally: Ensure that everything is as expected using CLI commands)
Log in as the LDAP user which is in the administrative LDAP group
Go to one of the affected administrative pages (e.g. ./settings/users or ./settings/admin/ldap)
The page only works partially, shows incomplete information and behaves oddly
Expected behavior
An LDAP user in the administrative LDAP group should be able to the administrative pages normally and without bugs.
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Other
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?
However, this is not sufficient. If one logs in with an LDAP account that is in the LDAP group, but not in the local built-in group admin, several pages which require admin privileges exhibit an odd behavior and do not work as expected
My assumption than is that on those places it is not checked whether the user is an admin, but only the local group membership. Those cases have to be fixed individually. Needs to be clarified whether those places can be detected by some good grepping, or require more mundane manual work.
Bug description
I have setup the "LDAP User and Group Backend". I have an user in an LDAP group with RDN
uid=admins
which I promoted to be the administrative group for Nextcloud viaphp occ ldap:promote-group admins
. However, this is not sufficient. If one logs in with an LDAP account that is in the LDAP group, but not in the local built-in groupadmin
, several pages which require admin privileges exhibit an odd behavior and do not work as expectedAs a work-around one can additionally add the affected LDAP user to the local built-in group
admin
viaphp occ group:adduser admin <ldap account>
, but of course this makes promoting the LDAP admin group pointless.The affected pages are:
./settings/users
): Groups and groups memberships are not shown. Only the active users are visible. Moreover in the navigation bar on the left side, the items "Administration" (for./settings/users/admin
) and "Disabled Users" (for./settings/users/disabled
) are missing. Also functionality is limited. If one attempts to edit an active user, e.g. (re-)set the password is seemingly works, but actually nothing happens. This is essentially bug [Bug]: LDAP User and Group Backend - Groups are not shown in Settings -> User, but groups are available on CLI and in other dialogs #42474../settings/admin/ldap
): The page only shows a partially filled form and reports the configuration as incomplete. If one tries to complete the form and edit the configuration two things might happen: the action fails silently, i.e. it appears as if it was successful, but after a page refresh the form is partially filled again, or an error is reported (happens if one tries to delete the offending configuration). This is essentially bug [Bug]: LDAP User and Group Backend - Web UI repeately reports LDAP configuration as incomplete #42475.I haven't tested other administrative pages thoroughly. Chances are that there are more.
Steps to reproduce
php occ ldap:promote-group
./settings/users
or./settings/admin/ldap
)Expected behavior
An LDAP user in the administrative LDAP group should be able to the administrative pages normally and without bugs.
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Other
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?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: