MariaDB [cloud]> select * from ldap_trust_map;
Empty set (0.01 sec)
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)
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
LDAP mapping is left in the DB when subdomain is removed
STEPS TO REPRODUCE
Similar to the #4899
EXPECTED RESULTS
ACTUAL RESULTS