iscsi-target: Add demo-mode TPG authentication context support
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 20 Jun 2013 01:48:51 +0000 (18:48 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 4 Jul 2013 02:44:32 +0000 (19:44 -0700)
commitc3e51442711d20ea1245bb6d260aa05593849e82
tree746a99fb66a70c138247cac66655a7971bce07e0
parente4b512e7133f5243f080db8238c5be8434cbcdfd
iscsi-target: Add demo-mode TPG authentication context support

This patch adds a auth configfs group context following existing
explict NodeACL and discovery auth within:

  /sys/kernel/config/target/iscsi/$TARGETNAME/$TPGT/auth/

This patch allows these attributes to be used for CHAP authentication
an TPG is configured in demo-mode (generate_node_acl=1).

Note this authentication information takes precedence over NodeACL
authentication when struct se_node_acl->dynamic_node_acl is present.

Cc: Dax Kelson <dkelson@gurulabs.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/iscsi/iscsi_target_core.h
drivers/target/iscsi/iscsi_target_nego.c