summaryrefslogtreecommitdiffstats
path: root/app/common/services
diff options
context:
space:
mode:
authorbeccabroek <beccabroek@gmail.com>2018-11-07 12:22:31 -0600
committerGunnar Mills <gmills@us.ibm.com>2019-09-26 20:04:56 +0000
commit5e258e43070b46b9d1ec5ec01e02b9f707cbf7b8 (patch)
treedcce595926ecd55bdb86f93800dcb95886cd06e5 /app/common/services
parent5dac9e155e46cd8615a057ff6fe1577a9f21a0a7 (diff)
downloadphosphor-webui-5e258e43070b46b9d1ec5ec01e02b9f707cbf7b8.tar.gz
phosphor-webui-5e258e43070b46b9d1ec5ec01e02b9f707cbf7b8.zip
LDAP configuration and user groups
Adds LDAP page and ability to add and change configuration settings. Adds ability to add, remove and edit user groups for LDAP. Resolves openbmc/phosphor-webui#38 Resolves openbmc/phosphor-webui#39 Tested: Loaded on to a witherspoon and able to add initial LDAP config as well us update the configuration and role groups. Appropriate messages displayed to user when required fields are missing or in the incorrect format. Change-Id: If8a21f3f9d9334415ead73472e90b2a0823bf9ea Signed-off-by: beccabroek <beccabroek@gmail.com> Signed-off-by: Dixsie Wolmers <dixsiew@gmail.com> Signed-off-by: Derick Montague <derick.montague@ibm.com>
Diffstat (limited to 'app/common/services')
-rw-r--r--app/common/services/api-utils.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js
index 51da8bb..2b3cac9 100644
--- a/app/common/services/api-utils.js
+++ b/app/common/services/api-utils.js
@@ -604,6 +604,14 @@ window.angular && (function(angular) {
});
},
+ saveLdapProperties: function(properties) {
+ return $http({
+ method: 'PATCH',
+ url: DataService.getHost() + '/redfish/v1/AccountService',
+ withCredentials: true,
+ data: properties
+ });
+ },
createUser: function(user, passwd, role, enabled) {
var data = {};
data['UserName'] = user;
OpenPOWER on IntegriCloud