This is an automated email from the ASF dual-hosted git repository.

DaanHoogland pushed a commit to branch ghi11473-link-account-to-ldap-ui
in repository https://gitbox.apache.org/repos/asf/cloudstack.git

commit d18c9b498dd5ec0808fbe5599b106f6e8bd5cad1
Author: Daan Hoogland <[email protected]>
AuthorDate: Sat Aug 22 20:01:35 2026 +0200

    ui: link account to LDAP
---
 ui/public/locales/en.json        |  1 +
 ui/src/config/section/account.js | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/ui/public/locales/en.json b/ui/public/locales/en.json
index f57460efa48..977519ccdff 100644
--- a/ui/public/locales/en.json
+++ b/ui/public/locales/en.json
@@ -1597,6 +1597,7 @@
 "label.limits": "Limits",
 "label.limits.configure": "Configure limits",
 "label.link": "Link",
+"label.link.account.to.ldap": "Link account to LDAP",
 "label.link.domain.to.ldap": "Link domain to LDAP",
 "label.linklocalip": "Link-local/Control IP address",
 "label.linux": "Linux",
diff --git a/ui/src/config/section/account.js b/ui/src/config/section/account.js
index 5766fd8a0f9..5a9f8eaf660 100644
--- a/ui/src/config/section/account.js
+++ b/ui/src/config/section/account.js
@@ -121,6 +121,31 @@ export default {
       },
       component: shallowRef(defineAsyncComponent(() => 
import('@/views/iam/AddLdapAccount.vue')))
     },
+    {
+      api: 'linkAccountToLdap',
+      icon: 'LinkOutlined',
+      label: 'label.link.account.to.ldap',
+      docHelp: 
'adminguide/accounts.html#using-an-ldap-server-for-user-authentication',
+      dataView: true,
+      show: (record, store) => {
+        return store.isLdapEnabled
+      },
+      args: ['type', 'domainid', 'ldapdomain', 'account', 'accounttype', 
'roleid', 'admin'],
+      mapping: {
+        type: {
+          options: ['GROUP', 'OU']
+        },
+        accounttype: {
+          options: ['0', '2']
+        },
+        domainid: {
+          value: (record) => { return record.domainid }
+        },
+        account: {
+          value: (record) => { return record.name }
+        }
+      }
+    },
     {
       api: 'updateAccount',
       icon: 'edit-outlined',

Reply via email to