artem-sidorenko opened a new issue, #6752:
URL: https://github.com/apache/cloudstack/issues/6752
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete
the comments.
-->
##### ISSUE TYPE
* Bug Report
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
LDAP
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main
branch.
-->
~~~
4.17.0.1
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
-->
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
##### SUMMARY
LDAP mapping is left in the DB when subdomain is removed
<!-- Explain the problem/feature briefly -->
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal
test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
- 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
Related to the https://github.com/apache/cloudstack/pull/4899
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
MariaDB [cloud]> select * from ldap_trust_map;
Empty set (0.01 sec)
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
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)
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]