[stgt] how to set mutual chap with targets.conf

Mike Christie michaelc at cs.wisc.edu
Tue Feb 1 23:38:44 CET 2011

On 07/09/2010 02:20 PM, Tomasz Chmielewski wrote:
> Am 09.07.2010 20:47, Mike Christie wrote:
>> Hi list and Tomasz,
>> I see Tomo merged the patch to support mutual CHAP here:
>> http://git.kernel.org/?p=linux/kernel/git/tomo/tgt.git;a=commitdiff;h=6f914cf641c8f53b22bf76aa5aba2f8a408c81c9
>> I was wondering if there is a patch to set it in targets.conf too?
> Not that I know of. Is changing tgt-admin needed at all?
> Looks also my one of my patches ("add iSNS support" from 30 March 2010)
> was not applied - I'll have to change it a bit, as it no longer applies.
> Could you give me a couple of tgtadm examples for the patch you mention?

Sorry for the late reply.

I have been trying to work on this one, but my perl is just too weak. 
Got lucky on readonly patch :).

To set this you create a account like normal, but instead of binding it 
to a tid you bind it globally by not passing in any tid.

tgtadm --lld iscsi --op new --mode account --user hoge --password deadbeaf
tgtadm --lld iscsi --op bind --mode account --user hoge

# bind globally for outgoing
tgtadm --lld iscsi --op new --mode account --user fujita --password tomo
tgtadm --lld iscsi --op bind --mode account --user fujita --outgoing
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

More information about the stgt mailing list