user_ldap
user_ldap copied to clipboard
Local ownCloud Group still has ldap mapping besides the LDAP server configuration was deleted
Steps to reproduce
- Install server 9.1 and configure LDAP
- Refresh the admin -> users page
- Create ownCloud local group and add LDAP users:
MariaDB [oc]> select * from oc_group_user;
+----------+--------------------+
| gid | uid |
+----------+--------------------+
| Carloses | Athanasios_Janik |
| Carloses | Benjamin_Holzer |
| Carloses | Bertha_Gruner |
| Carloses | Brandi_Dengler |
| Carloses | Carola_Klages |
| Carloses | Caterina_Thielen |
| Carloses | Charles_Reinhard |
| Carloses | Cindy_Diefenbach |
| Carloses | Dirk_Mewes |
| Carloses | Ellen_Arnold |
| Carloses | Ellinor_Koppe |
| Carloses | Ercan_Gerhards |
| Carloses | Ernst-August_Flach |
| admin | admin |
+----------+--------------------+
- Delete LDAP configuration
- Run cron.php
- Users are still in the database table.
Expected behaviour
Users are deleted from the group after deleting
Actual behaviour
Users are still in the database table oc_group_user and displayed in the user interface:
MariaDB [oc]> select * from oc_group_user;
+----------+--------------------+
| gid | uid |
+----------+--------------------+
| Carloses | Athanasios_Janik |
| Carloses | Benjamin_Holzer |
| Carloses | Bertha_Gruner |
| Carloses | Brandi_Dengler |
| Carloses | Carola_Klages |
| Carloses | Caterina_Thielen |
| Carloses | Charles_Reinhard |
| Carloses | Cindy_Diefenbach |
| Carloses | Dirk_Mewes |
| Carloses | Ellen_Arnold |
| Carloses | Ellinor_Koppe |
| Carloses | Ercan_Gerhards |
| Carloses | Ernst-August_Flach |
| admin | admin |
+----------+--------------------+

Server configuration
ownCloud version: (see ownCloud admin page) 9.1.
As fas as I know, removing the LDAP configuration doesn't delete the users, at most the users will be marked as deletable after checking that those users aren't available anymore.
LDAP users have to be removed via occ user:delete. After that, the groups should be updated correctly.
Note that this behaviour might have changed a bit in 10.0.x