I am attempting to use a Ubuntu Server 14.04 as an iSCSI target for some Windows 7 clients. I installed targetcli on the Ubuntu Server and configured one LUN as a test.
Code:
/> ls
o- / .....................................................................
[...]
o- backstores
..........................................................
[...]
| o- fileio ............................................... [0 Storage
Object]
| o- iblock ............................................... [1 Storage
Object]
| | o- disk0 ..................................... [/dev/cciss/c0d1
activated]
| o- pscsi ................................................ [0 Storage
Object]
| o- rd_dr ................................................ [0 Storage
Object]
| o- rd_mcp ............................................... [0 Storage
Object]
o- ib_srpt ........................................................ [0
Target]
o- iscsi .......................................................... [1
Target]
| o- iqn.2006-06.fmnas.local:sn.001 .................................. [1
TPG]
| o- tpgt1
.......................................................
[enabled]
| o- acls
........................................................ [1
ACL]
| | o- iqn.1993-08.org.debian:01:11ca3ce2b641
............. [1 Mapped
LUN]
| | o- mapped_lun0
......................................... [lun0
(rw)]
| o- luns
........................................................ [1
LUN]
| | o- lun0 .............................
[iblock/disk0
(/dev/cciss/c0d1)]
| o- portals
.................................................. [1
Portal]
| o- 10.0.3.96:3260
...............................................
[OK]
o- loopback ....................................................... [0
Target]
o- qla2xxx ........................................................ [0
Target]
o- tcm_fc ......................................................... [0
Target]
I then enabled CHAP authentication
Code:
/iscsi/iqn.20...:sn.001/tpgt1> get attribute
authentication
authentication=1
Next I set the CHAP userid and password, but did not specify a mutual challenge.
Code:
/iscsi/iqn.20...:11ca3ce2b641> get auth
AUTH CONFIG GROUP
mutual_password=
The mutual_password auth parameter.
mutual_userid=
The mutual_userid auth
parameter.
password=Password123
The password auth
parameter.
userid=testUser1
The userid auth parameter.
When I setup the Windows 7 initiator, I specified the Name in the CHAP settings to be the same as the userid and set the Target secret to be the same as the password above.
However, when I try to do a discovery of the target from the Windows 7 initiator, the Target complains about the following found in syslog:
Code:
Jul 2 22:19:15 fmnas kernel: [819187.317599] CHAP_N values do not match!
Jul 2 22:19:15 fmnas kernel: [819187.323463] Security negotiation failed.
Jul 2 22:19:15 fmnas kernel: [819187.329365] iSCSI Login negotiation failed.
I am assuming CHAP_N is the name, but as stated above, I ensured they were the same. That is if I am doing them in the correct locations. Can anyone point me in the right direction or let me know what fundamental mistake I am doing?
I REALLY appreciate it.