If the user has disabled authentication and not setup CHAP, we will
still try to use CHAP if the initiator sends CHAP,None. The login
will then fail because the user didn't setup CHAP. This patch just
has us detect when CHAP/authentication has been turned off so we
negotiate for None instead of CHA
The following patches fix login negotiation when the user has disabled
authentication, and the initiator is presenting CHAP,None. The problem
is that the target initializes AuthMethod to CHAP (normal session) or
CHAP,None (discovery session), but when the user does authentication=0/
enforce_discove
Move the code to go from iscsi conn to iscsi node auth to a helper
function which will also be used in the next patch.
Signed-off-by: Mike Christie
---
drivers/target/iscsi/iscsi_target_nego.c | 35 +---
1 file changed, 23 insertions(+), 12 deletions(-)
diff --git a/
3 matches
Mail list logo