mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-07 11:10:31 -07:00
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
|
||
---|---|---|
.. | ||
identity/keycloak | ||
mh | ||
net_tools/pritunl | ||
oracle | ||
remote_management/lxca | ||
source_control | ||
storage | ||
_filelock.py | ||
_mount.py | ||
_stormssh.py | ||
alicloud_ecs.py | ||
android_sdkmanager.py | ||
btrfs.py | ||
cloud.py | ||
cmd_runner.py | ||
cmd_runner_fmt.py | ||
consul.py | ||
csv.py | ||
database.py | ||
datetime.py | ||
deps.py | ||
dimensiondata.py | ||
django.py | ||
gandi_livedns_api.py | ||
gconftool2.py | ||
gio_mime.py | ||
gitlab.py | ||
heroku.py | ||
homebrew.py | ||
hwc_utils.py | ||
ibm_sa_utils.py | ||
ilo_redfish_utils.py | ||
influxdb.py | ||
ipa.py | ||
jenkins.py | ||
known_hosts.py | ||
ldap.py | ||
linode.py | ||
locale_gen.py | ||
lxd.py | ||
manageiq.py | ||
memset.py | ||
module_helper.py | ||
ocapi_utils.py | ||
oneandone.py | ||
onepassword.py | ||
oneview.py | ||
online.py | ||
opennebula.py | ||
pipx.py | ||
proxmox.py | ||
puppet.py | ||
pure.py | ||
python_runner.py | ||
redfish_utils.py | ||
redis.py | ||
rundeck.py | ||
saslprep.py | ||
scaleway.py | ||
snap.py | ||
ssh.py | ||
univention_umc.py | ||
utm_utils.py | ||
vardict.py | ||
version.py | ||
vexata.py | ||
wdc_redfish_utils.py | ||
xenserver.py | ||
xfconf.py |