Redfish: implement obtaining AccountService config (#9403)
Example result from querying OpenBMC's bmcweb Redfish server:
```
changed: false
failed: false
redfish_facts:
accountservice_config:
entries:
'@odata.id': /redfish/v1/AccountService
'@odata.type': '#AccountService.v1_15_0.AccountService'
AccountLockoutDuration: 0
AccountLockoutThreshold: 0
Accounts:
'@odata.id': /redfish/v1/AccountService/Accounts
ActiveDirectory:
Authentication:
AuthenticationType: UsernameAndPassword
Password: null
Username: ''
LDAPService:
SearchSettings:
BaseDistinguishedNames:
- ''
GroupsAttribute: ''
UsernameAttribute: ''
RemoteRoleMapping: []
ServiceAddresses:
- ''
ServiceEnabled: false
Description: Account Service
HTTPBasicAuth: Enabled
HTTPBasicAuth@AllowableValues:
- Enabled
- Disabled
Id: AccountService
LDAP:
Authentication:
AuthenticationType: UsernameAndPassword
Password: null
Username: ''
Certificates:
'@odata.id': /redfish/v1/AccountService/LDAP/Certificates
LDAPService:
SearchSettings:
BaseDistinguishedNames:
- ''
GroupsAttribute: ''
UsernameAttribute: ''
RemoteRoleMapping: []
ServiceAddresses:
- ''
ServiceEnabled: false
MaxPasswordLength: 20
MinPasswordLength: 8
MultiFactorAuth:
ClientCertificate:
CertificateMappingAttribute: CommonName
Certificates:
'@odata.id': /redfish/v1/AccountService/MultiFactorAuth/ClientCertificate/Certificates
'@odata.type': '#CertificateCollection.CertificateCollection'
Members: []
Members@odata.count: 0
Enabled: true
RespondToUnauthenticatedClients: true
Name: Account Service
Oem:
OpenBMC:
'@odata.id': /redfish/v1/AccountService#/Oem/OpenBMC
'@odata.type': '#OpenBMCAccountService.v1_0_0.AccountService'
AuthMethods:
BasicAuth: true
Cookie: true
SessionToken: true
TLS: true
XToken: true
Roles:
'@odata.id': /redfish/v1/AccountService/Roles
ServiceEnabled: true
ret: true
```
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
.keep | ||
9403-redfish-add-get-accountservice.yml |