For each initiator, enter the following command: iscsi security add -i initiator -s {chap | none | deny} -p inpassword -n inname [-o outpassword -m outname]
initiator is the initiator name in the iSCSI nodename format.
The
-s option takes one of three values:
-
chap
—Authenticate using a CHAP user name and password.
-
none
—The initiator can access the storage system without authentication.
-
deny
—The initiator cannot access the storage system.
inpassword is the inbound password for CHAP authentication. The storage system uses the inbound password to authenticate the initiator.
inname is a user name for inbound CHAP authentication. The storage system uses the inbound user name to authenticate the initiator.
outpassword is a password for outbound CHAP authentication. The storage system uses this password for authentication by the initiator.
outname is a user name for outbound CHAP authentication. The storage system uses this user name for authentication by the initiator.
Note: If you generated a random password, you can use this string for either
inpassword or
outpassword. If you enter a string, the storage system interprets an ASCII string as an ASCII value and a hexadecimal string, such as 0x1345, as a binary value.