cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

LDAP mapping leftover when subdomain is deleted

Open artem-sidorenko opened this issue 3 years ago • 2 comments

ISSUE TYPE
  • Bug Report
COMPONENT NAME
LDAP
CLOUDSTACK VERSION
4.17.0.1
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

LDAP mapping is left in the DB when subdomain is removed

STEPS TO REPRODUCE
  • Setup LDAP
  • Create a subdomain
  • Link some group or OU to the subdomain
  • Remove subdomain
  • check the table ldap_trust_map - mapping is still there

Similar to the https://github.com/apache/cloudstack/pull/4899

EXPECTED RESULTS
MariaDB [cloud]> select * from ldap_trust_map;
Empty set (0.01 sec)
ACTUAL RESULTS
MariaDB [cloud]> select * from ldap_trust_map;
+----+-----------+------+---------------------------------------------------+--------------+------------+
| id | domain_id | type | name                                              | account_type | account_id |
+----+-----------+------+---------------------------------------------------+--------------+------------+
|  6 |         6 | OU   | cn=users,cn=accounts,dc=test,dc=com |            0 |          0 |
+----+-----------+------+---------------------------------------------------+--------------+------------+
1 row in set (0.00 sec)

artem-sidorenko avatar Sep 20 '22 13:09 artem-sidorenko

Thanks for opening your first issue here! Be sure to follow the issue template!

boring-cyborg[bot] avatar Sep 20 '22 13:09 boring-cyborg[bot]

same for LDAP configuration

artem-sidorenko avatar Sep 20 '22 13:09 artem-sidorenko

I also meet this issue, Please help to handle this.

xuanyuanaosheng avatar Dec 07 '22 07:12 xuanyuanaosheng

@artem-sidorenko @xuanyuanaosheng , can you add the same trust_map/configuration again?

DaanHoogland avatar Dec 08 '22 16:12 DaanHoogland

@artem-sidorenko can you try #7915 ? it should fix your problem. closing this provisionally, feel free to re-open

DaanHoogland avatar Sep 19 '23 14:09 DaanHoogland