owncloud / user_ldap

📒
GNU Affero General Public License v3.0
17 stars 17 forks source link

Local ownCloud Group still has ldap mapping besides the LDAP server configuration was deleted #31

Open felixboehm opened 8 years ago

felixboehm commented 8 years ago

Steps to reproduce

  1. Install server 9.1 and configure LDAP
  2. Refresh the admin -> users page
  3. 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              |
+----------+--------------------+
  1. Delete LDAP configuration
  2. Run cron.php
  3. 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              |
+----------+--------------------+

screenshot from 2016-08-09 18 30 11

Server configuration

ownCloud version: (see ownCloud admin page) 9.1.

jvillafanez commented 7 years ago

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