Hi nab, Thanks for the help. I have back ported the patch provided, and was able to make it to work. But still facing some issues. What I need is to authenticate the target using the chap, and still provide access to any iSCSI initiator trying to connect (ie, with out using initiator mask). In demo mode I observed that chap also wont be working. Is there any solution available for this issue. I have set demo_mode_write_protect=0 generate_node_acls=1 cache_dynamic_acls=1 and i didn't have any initiators being masked to my target. Thanks again for the support Regards, Ranjan ________________________________________ From: Nicholas A. Bellinger [nab@xxxxxxxxxxxxxxx] Sent: Tuesday, November 19, 2013 1:05 AM To: Kumar, Ranjan RK Cc: target-devel; target-devel-owner@xxxxxxxxxxxxxxx; Sankar, Abhilash AS Subject: Re: Unable to add chap per target without initiator masking Hi Ranjan, On Sat, 2013-11-16 at 01:33 -0700, Kumar, Ranjan RK wrote: > Hi nab, > > I'm using Linux-3.8.6 and i'm trying to have user chap for per targets > without initiator mask . How can i achieve this ? > My experiments with demo mode didn't work out. Can anyone please help > me with this issue. > Support for demo-mode TPG authentication went into v3.11-rc1 with the following commit: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/target/iscsi?id=c3e51442711d20ea1245bb6d260aa05593849e82 Note this logic is standalone, and should be easy enough to backport to v3.8.y code. --nab -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html