This procedure assumes that you are logged in to the local system that contains the iSCSI targets.
Unidirectional authentication is the default method. Complete steps 3–5 only.
For bidirectional authentication. Complete steps 3–7.
target# itadm modify-target -a chap target-iqn
Create the initiator context with the initiator's full node name and with the initiator's CHAP secret key.
target# itadm create-initiator -s initiator-iqn Enter CHAP secret: ************ Re-enter secret: ************
target# itadm modify-initiator -u initiator-CHAP-name initiator-iqn
target# itadm modify-target -s target-iqn Enter CHAP secret: ************ Re-enter secret: ************
target# itadm modify-target -u target-CHAP-name target-iqn