kiranchavala opened a new issue, #11474: URL: https://github.com/apache/cloudstack/issues/11474
### problem Update the API and UI implemenation for https://cloudstack.apache.org/api/apidocs-4.20/apis/linkDomainToLdap.html ### versions ACS 4.20.1 ### The steps to reproduce the bug Steps to reproduce the issue 1. Execute the API https://cloudstack.apache.org/api/apidocs-4.20/apis/linkDomainToLdap.html by providing the name and ldapdomain parameters ``` (localcloud) 🐱 > link domaintoldap domainid=394cbde8-efe2-4ef2-bac0-fa5958fa4134 type=GROUP accounttype=2 ldapdomain=cn=qa-team,dc=example,dc=in name=qa admin=admin { "LinkDomainToLdap": { "accounttype": 2, "domainid": "394cbde8-efe2-4ef2-bac0-fa5958fa4134", "ldapdomain": "cn=qa-team,dc=example,dc=in", "name": "cn=qa-team,dc=example,dc=in", "type": "GROUP" } } ``` 2. Check the API esponse the name value (qa) is not stored anywhere and it's overwritten by the ldapdomain value ``` mysql> select * from ldap_trust_map; +----+-----------+-------+-------------------------------------------+--------------+------------+ | id | domain_id | type | name | account_type | account_id | +----+-----------+-------+-------------------------------------------+--------------+------------+ | 22 | 25 | GROUP | cn=dev-team,ou=Telco-Bng,dc=example,dc=in | 2 | 0 | ``` Also in the UI , we are using the name parameter <img width="1895" height="320" alt="Image" src="https://github.com/user-attachments/assets/e041f7e2-acda-4e05-bc6a-31b88f1be247" /> The description of the name should be updated, <img width="735" height="584" alt="Image" src="https://github.com/user-attachments/assets/db044d9e-00a0-4dfc-aa28-533168938a3a" /> ### What to do about it? Either update the api docs to use one parameter The Link domain to LDAP should say to give the full DN value -- 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]
