ISCSI Auth

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Target

  • /etc/iet/ietd.conf

IncomingUser initiator-admin sysadm Target iqn.2020-12.org.xinux.doom:storage

IncomingUser initiator-admin sysadm

Initiator

# *************
# CHAP Settings
# *************

# To enable CHAP authentication set node.session.auth.authmethod
# to CHAP. The default is None.
node.session.auth.authmethod = CHAP

# To set a CHAP username and password for initiator
# authentication by the target(s), uncomment the following lines:
node.session.auth.username = initiator-admin
node.session.auth.password = sysadm

# To set a CHAP username and password for target(s)
# authentication by the initiator, uncomment the following lines:
#node.session.auth.username_in = initiator-admin
#node.session.auth.password_in = sysadm

# To enable CHAP authentication for a discovery session to the target
# set discovery.sendtargets.auth.authmethod to CHAP. The default is None.
discovery.sendtargets.auth.authmethod = CHAP

# To set a discovery session CHAP username and password for the initiator
# authentication by the target(s), uncomment the following lines:
discovery.sendtargets.auth.username = initiator-admin
discovery.sendtargets.auth.password = sysadm

# To set a discovery session CHAP username and password for target(s)
# authentication by the initiator, uncomment the following lines:
#discovery.sendtargets.auth.username_in = initiator-admin
#discovery.sendtargets.auth.password_in = sysadm