cloudstack
cloudstack copied to clipboard
LDAP mapping leftover when subdomain is deleted
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)
Thanks for opening your first issue here! Be sure to follow the issue template!
same for LDAP configuration
I also meet this issue, Please help to handle this.
@artem-sidorenko @xuanyuanaosheng , can you add the same trust_map/configuration again?
@artem-sidorenko can you try #7915 ? it should fix your problem. closing this provisionally, feel free to re-open