ONTAP supports the configuration of default and per-initiator authentication parameters; these parameters are used during the iSCSI connection login phase. Initiators may be allowed access only after successfully
performing the CHAP authentication procedure; or may be allowed access without CHAP authentication; or
denied access.
iscsi security add -i <initiator> -s CHAP -p <inpassword> -n <inname> [ -o
<outpassword> -m <outname> ]
Configure the initiator with CHAP as the authentication method. The -p option is used to specify the inbound CHAP password and the -n option to specify the inbound CHAP username. The -o option is used to specify the outbound CHAP password and the -m option is used to specify the outbound CHAP name.
The outbound CHAP password and username are optional and need to be configured if mutual authentication is desired. If the password is not specified on the command line then the administrator is prompted for the password twice.
http://wafl.co.uk/iscsi/#sthash.76dwm6mG.dpuf