Creates a local CHAP account for iSCSI initiator authentication.
By default, a local CHAP account is enabled. If you do not specify a password, one is automatically generated.
For local CHAP authentication of iSCSI initiators, you must enable this functionality, as described in grpparams iscsi-local-auth.
Also, to enable functionality that prevents unauthorized hosts from discovering targets only protected with CHAP, see grpparams discovery-use-chap.
After creating a local CHAP account, set up an access control record for the volume to which you want to restrict access and specify the account name. For more information on setting up an access control record, see volume select access create .
Format
chapuser create name [enable|disable] [password password]
Variable
|
name |
CHAP account (user) name, up to 63 alphanumeric characters. CHAP user names are case-sensitive. |
Parameters
|
enable|disable |
Enables (default) or disables the CHAP account. |
|
passwd password |
CHAP account password, up to 255 alphanumeric characters. The password is automatically generated if one is not specified. |
Example
The following commands create two local CHAP accounts:
> chapuser create hadid password testchappass
CHAP user creation succeeded.
> chapuser create tperry disable
CHAP user creation succeeded.
Generating password.
Password is jHZRRBpZxpBZPHBz