Importing a Weak Dictionary
Function
This interface is used to import a weak dictionary.
- When a weak dictionary is imported or exported, the system treats the dictionary as case-insensitive and saves only corresponding lowercase character strings. When a password is set, the system checks the password against the weak dictionary regardless of the case.
- To retain the weak password configuration, export the weak password and add it to the exported weak password file.
- It is recommended that each weak password rule contains a maximum of 30 characters.
Syntax
Operation type: POST
URL: https://device_ip/redfish/v1/Systems/SecurityService/Actions/SecurityService.PunyDictImport
Request header:
X-Auth-Token: auth_value
{
"FileName":FileName,
"Password":password
}
Request Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
FileName |
Mandatory |
Name of the weak dictionary file to be imported. |
The value is a string of 1 to 255 characters, including uppercase and lowercase letters (a to z and A to Z), digits (0 to 9), and other characters (_.-). The value cannot contain two consecutive dots (..). The suffix must be .conf. |
Password |
Mandatory |
User password. |
Password of an edge management system user. A string of 8 to 20 characters. |
Usage Guidelines
None
Example
Request:
POST https://10.10.10.10/redfish/v1/Systems/SecurityService/Actions/SecurityService.PunyDictImport
Request header:
X-Auth-Token: auth_value
{
"FileName":"import.conf",
"Password":"password"
}
{
"error": {
"code": "Base.1.0.Success",
"message": "Operation success. See ExtendedInfo for more information.",
"@Message.ExtendedInfo": [
{
"@odata.type": "#MessageRegistry.v1_0_0.MessageRegistry",
"Description": "Indicates that no error has occurred.",
"Message": "Import puny dict successfully.",
"Severity": "OK",
"NumberOfArgs": null,
"ParamTypes": null,
"Resolution": "None"
}
]
}
}
Response code: 202
Output Description
Field |
Type |
Description |
|---|---|---|
code |
Character string |
A string indicating the specific message ID in the message registry. |
message |
Character string |
A readable message corresponding to a message in the message registry. |
@odata.type |
Character string |
OData description of a message resource. |
Description |
Character string |
Detailed description of a message resource. |
Message |
Character string |
Detailed information about a message resource. |
Severity |
Character string |
Severity.
|
NumberOfArgs |
Number |
Number of parameters in a message description. |
ParamTypes |
Array |
Parameter type list. |
Resolution |
Character string |
Event handling suggestions. |