LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-03-2014, 06:25 AM   #1
NetEng1
Member
 
Registered: Aug 2011
Distribution: ubuntu
Posts: 40

Rep: Reputation: Disabled
Question iSCSI target CHAP issues (Windows 7 initiator/Ubuntu Server 14.04)


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.
 
Old 07-03-2014, 11:01 AM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Try using double quote " to enclose the username and password.
 
Old 07-07-2014, 09:48 AM   #3
NetEng1
Member
 
Registered: Aug 2011
Distribution: ubuntu
Posts: 40

Original Poster
Rep: Reputation: Disabled
Sorry for my late response.

I tried a single and double quote on the target to specify the userid and password, but it made them blank.

Quote:
/iscsi/iqn.20...:11ca3ce2b641> set auth password="Password1"
Parameter password is now ''.
/iscsi/iqn.20...:11ca3ce2b641> get auth
AUTH CONFIG GROUP
mutual_password=
The mutual_password auth parameter.

mutual_userid=
The mutual_userid auth parameter.

password=
The password auth parameter.

userid=testUser1
The userid auth parameter.
/iscsi/iqn.20...:11ca3ce2b641> set auth password=""Password1""
Parameter password is now ''.
/iscsi/iqn.20...:11ca3ce2b641> set auth password=Password1
Parameter password is now 'Password1'.

I also tried doing the same in the initiator which yielded the same results as before.
 
  


Reply

Tags
iscsi, target, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Using iSCSI On Ubuntu 10.04 (Initiator And Target) LXer Syndicated Linux News 0 08-17-2010 04:01 PM
iSCSI on Fedora 12 Target w/ XP Pro Initiator vdi_nenna Linux - Hardware 1 12-11-2009 04:08 PM
LXer: Using iSCSI On Ubuntu 9.04 (Initiator And Target) LXer Syndicated Linux News 0 07-07-2009 03:11 PM
I can't install and use iscsi initiator and target on ubuntu 8.10, who can help me? nicegiving Linux - Software 1 05-22-2009 10:01 AM
setting up iscsi initiator and target gauthamk Linux - Software 0 10-05-2007 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration