Re: Odd behaviour during unidirectional CHAP authentication

2008-08-27 Thread Nandkumar

Thanks Shyam.
So in this case target replies with NONE as it has choosen NONE
between CHAP and NONE.

Here initiator is asking for authentication and Target is not ready
for authentication. In this scenario authentication should fail.
Right?
To make authentication strict, initiator should only pass CHAP as
Authentication parameter rather than passing CHAP,NONE. So if target
is not supporting CHAP it will reply with Reject and auth will fail.

On the other side, if initiator doesn't set CHAP and target sets CHAP,
Authentication Fails, which is perfect.

Thanks
Nand


On Aug 27, 1:36 pm, [EMAIL PROTECTED] wrote:
 Nandkumar wrote:
  Here is what initiator and taget passes to each other while iscsi

 negotiation phase. Assuming CHAP is only enabled on initiator and not on
 target.

  1) Initiator pass CHAP,NONE as Authentication parameter.
  2) Target replies with NONE.
  3) Both will settle on NONE as Authentication parameter.

 The negotiation is succeding with None as the parameter because of the
 following text from the rfc.

 The target MUST reply with the first option in the list it
        supports and is allowed to use for the specific initiator unless
        it does not support any, in which case it MUST answer with
        Reject (see Section 5.2 Text Mode Negotiation).
 So, since there is no reject from the Target which supports None as the
 authentication parameter the login will succeed.
 Thanks,
 Shyam Iyer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Odd behaviour during unidirectional CHAP authentication

2008-08-26 Thread Nandkumar

HI,

During unidirectional CHAP configuration on RHEL5.2, I found following
odd behaviour.
 If initiator CHAP is enabled and Target CHAP is _not_ enabled ,
Authentication Passes.

I looked at code, trace and RFC and here is my observation.

Here is what initiator and taget passes to each other while iscsi
negotiation
phase. Assuming CHAP is only enabled on initiator and not on target.
1) Initiator pass CHAP,NONE as Authentication parameter.
2) Target replies with NONE.
3) Both will settle on NONE as Authentication parameter.

RFC specifies that, if both (initiator/target) don't agree on same
authentication protocol, iscsi login should fail.
So in this case, RHEL 5.2 iscsi initiator should ideally pass only
CHAP as Authentication parameter to target, so that if target says
NONE, negotiation should fail.

Can someone please confirm if this is working as per design?

configuration :
iscsi-initiator-utils-6.2.0.868-0.3
RHEL 5.2

Thank you
Nandkumar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---