You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2026/08/22 18:01:58 UTC

(cloudstack) branch ghi11473-link-account-to-ldap-ui created (now d18c9b498dd)

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

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


      at d18c9b498dd ui: link account to LDAP

This branch includes the following new commits:

     new d18c9b498dd ui: link account to LDAP

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(cloudstack) 01/01: ui: link account to LDAP

Posted by da...@apache.org.
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 <da...@apache.org>
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',