Skip to main content

PATCH – Update global account lockout properties and LDAP properties

Use the PATCH method to update properties in AccountService resource for Redfish service.

Request URL

PATCH https://<BMC_IPADDR>/redfish/v1/AccountService

Request body

Properties to be updated are shown as bellow.

Field

Type

Description

AccountLockoutDuration

Number

The time in seconds an account is locked after the account lockout threshold is met. The range of this value is 60~172800.

AccountLockoutThreshold

Number

The number of failed login attempts before a user account is locked for a specified duration. The value should be between 0 and 10.

MinPasswordLength

Number

The minimum password length that the implementation will allow a password to be set to. By default, this value is 10.

LDAP

ObjectThe first LDAP external account provider this AccountService supports.
 

ServiceAddresses

String

This property contains the addresses of the user account providers this resource references. The format of this field depends on the Type.

 

LDAPService

ObjectThis property contains additional mapping information needed to parse a generic LDAP service.
  

SearchSettings

ObjectThis property contains the settings needed to search an external LDAP service.
   

BaseDistinguishedNames

StringThe base distinguished names to use when searching the LDAP service.
   

GroupNameAttribute

StringThe attribute name that contains the name of the Group on the group LDAP entry.
   

GroupsAttribute

StringThe attribute name that contains the Groups for a user on the user LDAP entry.
   

UsernameAttribute

StringThe attribute name that contains the Username on the user LDAP entry.
 

Authentication

ObjectThis property contains the authentication information for the external account provider.
  

Username

StringThis property contains the username of authentication used to connect to the external account provider.
  

Password

StringThis property contains the password of authentication used to connect to the external account provider.

LocalAccountAuth

StringThis property shall govern how the service uses the Accounts collection within this AccountService as part of authentication. Details about each of the modes are found in the description of the enum values.

Response body

The response returns the same content as GET operation with updated properties.

Status code

HTTP Status CodeError Message ID
500InternalError