Hy,

I have one target (iscsitarget) with one LUN running one Debian and an Initiator (Open-sicsi on Debian). I want to make two way authentication with chap but it doesen't work on Debian, also i tryed with an microsoft Initator and it's working with the same config but on debian it dosen't work
I pun the config here:

Target:/etc/ietd.conf

#Global Config
#CHAP only for discovery
IncomingUser joe secret
OutgoingUser jack 12charsecret

Target iqn.2009-04.local.fog:storage.disk2.sys1.xyz
IncomingUser chapin chapincoming
OutgoingUser chapout chapoutgoing
....

Initiator:/etc/iscsi/iscsid.conf

node.session.auth.authmethod = CHAP
node.session.auth.username = chapin
node.session.auth.password = chapincoming
#node.session.auth.username_in = chapout
node.session.auth.password_in = chapoutgoing

discovery.sendtargets.auth.authmethod = CHAP
discovery.sendtargets.auth.username = joe
discovery.sendtargets.auth.password = secret
#discovery.sendtargets.auth.username_in = jack
discovery.sendtargets.auth.password_in = 12charsecret
...

Under folder /etc/iscsi/nodes/iqn.2009-04.local.fog:storage.disk2.sys1.xyz/ip_target/default
...
node.session.auth.authmethod = CHAP
node.session.auth.username = chapin
node.session.auth.password = chapincoming
node.session.auth.password_in = chapoutgoing
...
and
/etc/iscsi/send_targets/ip_target/st_config
...
discovery.sendtargets.auth.authmethod = CHAP
discovery.sendtargets.auth.username = joe
discovery.sendtargets.auth.password = secret
discovery.sendtargets.auth.password_in = 12charsecret
...
if i remove the outgoing user and password for both target and initiator will succes authentication but with outgoing user and pass don't succeed to authenticate

I will put the syslog

failing authentication, received incorrect username from target iqn.2009-04.local.fog:storage.disk2.sys1.xyz
Login authentication failed with target iqn.2009-04.local.fog:storage.disk2.sys1.xyz
conn 0 giving up on login attempts

I hope that will help me

Thanks
Ciprian