Skip to content

Commit 63c6863

Browse files
authored
fix(readme): add Ldap tenant doc
1 parent ab7b5c1 commit 63c6863

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ List --query examples:
108108
hpecp tenant examples
109109
```
110110

111+
Add LDAP role to Tenant:
112+
```sh
113+
ADMIN_GROUP="CN=DemoTenantAdmins,CN=Users,DC=samdom,DC=example,DC=com"
114+
ADMIN_ROLE=$(hpecp role list --query "[?label.name == 'Admin'][_links.self.href] | [0][0]" --output json | tr -d '"')
115+
hpecp tenant add-external-user-group --tenant-id $TENANT_ID --group $ADMIN_GROUP --role-id $ADMIN_ROLE
116+
```
117+
111118
Tenant kube config:
112119
```sh
113120
PROFILE=tenant1 hpecp tenant k8skubeconfig > tenant1_kube.conf

0 commit comments

Comments
 (0)