refactor: 💡 update accounts model with ldap account attributes (#1766)

✅ Closes: ICU-10050
This commit is contained in:
Lisbet Alvarez authored and GitHub committed 2023-07-12 10:57:14 -07:00
1 parent ba0edd603d
commit 56e8a73100
2 files changed
+24 -5

No files matched your search

+23 -4
View File
@@ -49,9 +49,9 @@ export default class GeneratedAccountModel extends BaseModel {
})
version;
// =attributes (password)
// =attributes (password and LDAP)
@attr('string', {
for: 'password',
for: ['password', 'ldap'],
isNestedAttribute: true,
description: 'The account login name',
})
@@ -60,8 +60,27 @@ export default class GeneratedAccountModel extends BaseModel {
// =attributes (OIDC)
@attr('string', { for: 'oidc', isNestedAttribute: true }) subject;
@attr('string', { for: 'oidc', isNestedAttribute: true }) issuer;
@attr('string', { for: 'oidc', isNestedAttribute: true, readOnly: true })
// =attributes (OIDC and LDAP)
@attr('string', {
for: ['oidc', 'ldap'],
isNestedAttribute: true,
readOnly: true,
})
email;
@attr('string', { for: 'oidc', isNestedAttribute: true, readOnly: true })
@attr('string', {
for: ['oidc', 'ldap'],
isNestedAttribute: true,
readOnly: true,
})
full_name;
// =attributes (LDAP)
@attr('string', { for: 'ldap', isNestedAttribute: true, readOnly: true }) dn;
@attr('string-array', {
for: 'ldap',
isNestedAttribute: true,
readOnly: true,
})
member_of_groups;
}