[Bug]: Deleted ldap account is not listed in disabled users with markRemnantsAsDisabled = 1 #50165
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
28-feedback
bug
feature: ldap
feature: users and groups
Bug description
Deleted ldap account is not listed in disabled users with markRemnantsAsDisabled = 1
Steps to reproduce
Expected behavior
The user should appear there ;)
Nextcloud Server version
28
Additional info
server/apps/user_ldap/lib/User_Proxy.php
Lines 423 to 425 in f63ac94
It's possible to have more than one ldap backend. The above code seems to check if the first ldap connection have the flag set. It should take all backends into account.
Likely resolved by #46992.
stable28:
server/apps/provisioning_api/lib/Controller/AUserData.php
Line 127 in 6c9bb46
master:
server/apps/provisioning_api/lib/Controller/AUserDataOCSController.php
Line 90 in f63ac94
The controller reads the disable state from the oc_preferences table. That does not take the disabled state for ldap remnants into account.
Apparently the users are returned by the endpoint, but filtered out by the frontend because they have enabled = true. Using
$data['enabled'] = $targetUserObject->isEnabled();
makes it work. However there are some menu options, like enable user, that needs to be hidden for ldap remnants.The text was updated successfully, but these errors were encountered: