Skip to content

Commit c12b4ea

Browse files
Fixed User ID and Group ID attribute default value (#389)
* Implement service login console (#385) - Navigation: Operations > Service login consoles - Jira: https://jsw.ibm.com/browse/PFEBMC-2401 Signed-off-by: Nabil Ananthamangalath <[email protected]> * LDAP - User ID attributes and Group ID Attributes - Fixed the updated values for Open LDAP and Active directory attributes when saved as blank. Signed-off-by: Vedangi Mittal <[email protected]> --------- Signed-off-by: Nabil Ananthamangalath <[email protected]> Signed-off-by: Vedangi Mittal <[email protected]> Co-authored-by: Nabil Ananthamangalath <[email protected]>
1 parent fa19bd3 commit c12b4ea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/store/modules/SecurityAndAccess/LdapStore.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,11 @@ export const LdapStore = defineStore('ldapStore', {
164164
LDAPService: {
165165
SearchSettings: {
166166
BaseDistinguishedNames: [baseDn],
167+
GroupsAttribute: groupIdAttribute,
168+
UsernameAttribute: userIdAttribute,
167169
},
168170
},
169171
};
170-
if (groupIdAttribute)
171-
data.LDAPService.SearchSettings.GroupsAttribute = groupIdAttribute;
172-
if (userIdAttribute)
173-
data.LDAPService.SearchSettings.UsernameAttribute = userIdAttribute;
174172

175173
if (activeDirectoryEnabled) {
176174
return await this.saveActiveDirectorySettings(data);

0 commit comments

Comments
 (0)