Export (0) Print
Expand All
Expand Minimize

iSCSI HBA Mutual CHAP

Note  This content applies to the Windows Logo Kit (WLK). For the latest information using the new Windows Hardware Certification Kit (HCK), see Windows HCK User's Guide on the Windows Hardware Dev Center.

Type: Automated Test

Overview

The iSCSI HBA Mutual CHAP test verifies that the initiator, that is, the host system that initiates the block storage transfer, can use the Challenge Handshake Authentication Protocol (CHAP) authentication mechanism. The test verifies mutual CHAP.

Details

The Mutual CHAP test implements a simple test target and does not require a separate iSCSI target device. The test initiates a login to the test target specifying mutual CHAP. The target verifies that the initiator follows the CHAP protocol specifics detailed in the iSCSI specification. Different test variations will use different encodings (Base16 or Base64) for CHAP responses. In addition, the test returns both valid and invalid responses to the initiator's challenge in order to verify that the HBA properly authenticates the target and returns the appropriate status to the user.

Run Time:
Log File:
System Restart Required: No
Test Category:
Supported operating systems for Logo or Signature testing:
  • Windows Vista

  • Windows Server 2003

  • Windows XP

Program:

Requirements

Software Requirements

The test tool requires the following software:

  • Supported operating system (see list above)

  • Software components included with the device that is being tested

  • On Windows XP and Windows Server 2003, you need the latest version of the Microsoft iSCSI software initiator.

Hardware Requirements

The test tool requires the following hardware:

  • Device to be tested

  • Computer that meets the minimum software requirements

  • Windows keyboard

  • Two-button pointing device

  • Color display monitor capable of at least 1024 by 768 resolution, 32-bits per pixel, 60 Hz

  • Hard drive with a minimum of 20 GB available on partition C:

  • 1 GB network adapter

Processor

The test tool runs on the following processor architectures:

  • x86

  • x64

  • Itanium

Running iSCSI HBA Mutual CHAP

Run the test as a DTM job.
Fill the required data in the configuration UI that pops up when this job is scheduled.

Command Syntax

Command optionDescription

iscsi_initchap -mutual -hct

 

Troubleshooting

  1. Look at the job results log file for test failures.

  2. Verify that the iSCSI configuration information is entered correctly in the configuration dialog (A popup dialog box that appears when the job is scheduled from the device console)

Code Tour

File Manifest

FileLocation

iscsi_initchap.exe

...\tests\%ARCHITECTURE%\nttest\driverstest\storage\wdk\iscsi

 

Test Assertions

1 Received PDU is a valid login request PDU.
Test Assertion GUID: ef76110a-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The initiator can only use logon request PDUs during iSCSI logon.Apply: The test initiates a CHAP logon by using the LoginIScsiTarget routine. Expect: Each PDU that the test receives has the operation code field set to 0x03.
2 Login request data segment must be NULL terminated.
Test Assertion GUID: ef76110b-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: All logon request PDUs with the data segment length greater than zero must have a NULL terminator in the last valid byte (non-pad byte) of the data segment. Only key = value pairs are allowed in the request-PDU data segments, and the last byte must indicate the end of the last key = value pair. Apply: The test initiates a Challenge Handshake Authentication Protocol (CHAP) logon to the test target by using the LoginIScsiTarget routine. Expect: Each PDU that a test target receives with a data segment must have the last non-padding byte of the PDU set to zero.
3 Bit one of the first byte in a login request PDU must be set to one.
Test Assertion GUID: ef76110c-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI oneway/Mutual CHAP (HBA) test checks that the HBA sets bit one of the first byte of the logon request PDU. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. Expect: For any logon request PDU sent by the HBA to the test target address, bit one of the first byte must be set to 1.
100 Initial login request must specify the security negotiation stage as the current stage.
Test Assertion GUID: ef76110d-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the iSCSI HBA does not request transition out of the security negotiation stage while authentication is being performed. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. Expect: The logon request PDU sent by the HBA must set the current stage (CSG) field of the PDU to 0x00 and the T (transit) bit must be set to 0.
101 Initial login request must contain a data segment.
Test Assertion GUID: ef76110e-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test validates that the length of the data segment in the initial logon-request PDU is nonzero. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine.Expect: The HBA sends an iSCSI logon request PDU to the test target address. The data segment of this request must contain a data segment because the required key = value pairs for the initial logon request are present.
102 The initial login request must contain one and only one TargetName key.
Test Assertion GUID: ef76111c-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the initial request PDU from the HBA contains only one TargetName key. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. Expect: The initial logon request PDU from the HBA contains a TargetName key. Only one TargetName key is required.
103 The TargetName specified in the initial login request must be the same as the target name specified by the login API.
Test Assertion GUID: ef76111d-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the HBA uses the correct target name as specified by the iSCSI service during logon. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. Expect: The initial logon request PDU must contain the name of the test target in the TargetName key.
104 The initial login request must contain one and only one InitiatorName key.
Test Assertion GUID: ef76111e-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the initial request PDU from the HBA contains only one InitiatorName key. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. Expect: The initial logon request PDU from the HBA contains an InitiatorName key. Only one of these keys can be used.
105 The initial login request may only specify one SessionType key, if any, when performing a full login.
Test Assertion GUID: ef76111f-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the initial request PDU from the HBA contains zero or one SessionType key. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. Expect: The initial logon request PDU from the HBA contains either one SessionType key or none at all. When performing a nondiscovery logon, the SessionType key is optional because the default value is normal.
106 The SessionType key in the initial login must specify Normal as the session type.
Test Assertion GUID: ef761120-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the value of the SessionType key specifies that the current session type is a non-discovery session. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. Expect: If the SessionType key is included in the initial logon request PDU from the HBA, it must be SessionType = Normal.
107 The initial login request must contain one and only one AuthMethod key.
Test Assertion GUID: ef761121-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the initial request PDU from the HBA contains only one AuthMethod key. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. Expect: The initial logon request PDU from the HBA contains an AuthMethod key. Only one AuthMethod key is used.
108 The AuthMethod key must specify CHAP as the first value in the list of supported values.
Test Assertion GUID: ef761122-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the initial request PDU from the HBA specifies CHAP as the preferred value for security authentication. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. Expect: The initial logon request PDU from the HBA specifies CHAP as the first value in a list of possible AuthMethod values.
109 Initial login request must not contain any invalid text keys.
Test Assertion GUID: ef76110f-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that the initial logon request received from the HBA contains only the valid keys for this PDU. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine.Expect: The initiator can only include the following keys in the first logon request: InitiatorName, TargetName, SessionType, and AuthMethod.
200 The iSCSI login request that proposes the CHAP algorithm must specify the correct iSCSI stage.
Test Assertion GUID: ef761110-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the iSCSI HBA does not request transition out of the security negotiation stage while authentication is being performed. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target responds to the initial logon request by selecting CHAP as the AuthMethod. Expect: The logon request PDU sent by the HBA must set the current stage (CSG) field of the PDU to 0x00 and the T (transit) bit must be set to zero (0).
201 The iSCSI login request that proposes the CHAP algorithm must contain a data segment.
Test Assertion GUID: ef761111-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test validates that the length of the data segment in the logon request PDU is nonzero. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target responds to the initial logon request by selecting CHAP as the AuthMethod. Expect: The logon request PDU sent as part of the CHAP algorithm proposal must contain a data segment that carries the proposed CHAP algorithms.
203 The iSCSI login request that proposes the CHAP algorithm must contain one and only one CHAP_A key.
Test Assertion GUID: 03515b59-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the initial request PDU from the HBA contains only one CHAP_A key. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target responds to the initial logon request by selecting CHAP as the AuthMethod. Expect: The logon request PDU sent from the HBA must contain the CHAP_A key.
204 Each value included in the CHAP_A key must be a valid numeric value.
Test Assertion GUID: 03515b5a-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that all values specified in the CHAP_A key must be valid numeric values. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target responds to the initial logon request by selecting CHAP as the AuthMethod. Expect: Each value in the list of supported CHAP_A values must be a valid numeric value.
205 The list of supported CHAP_A values must contain one and only one value specifying MD5.
Test Assertion GUID: 03515b5b-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that one of the values included in the list of CHAP algorithms is MD5. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target responds to the initial logon request by selecting CHAP as the AuthMethod. Expect: One value in the list of CHAP_A values must be equal to 5.
206 The iSCSI login request that proposes the CHAP algorithm must contain no invalid text keys.
Test Assertion GUID: ef761112-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that the logon request PDU with the CHAP_A algorithms contains only valid keys for this stage of CHAP authentication. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target responds to the initial logon request by selecting CHAP as the AuthMethod. Expect: The HBA must include the CHAP_A key in this logon request PDU.
300 The iSCSI login request that includes the CHAP response must specify the security negotiation stage as the current stage.
Test Assertion GUID: ef761113-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that the iSCSI HBA specifies the current stage as the security negotiation stage when returning a CHAP response to the target. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm. Expect: The logon request PDU sent by the HBA must set the current stage (CSG) field of the PDU to 0x00.
301 The iSCSI login request that includes the CHAP response must specify a valid stage when the transit bit is set.
Test Assertion GUID: ef761114-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks whether the transit bit is set in the CHAP response logon request. If it is set in the CHAP response, then the next stage field of the PDU must be valid and greater than the current stage field. This check is not made if the T (transit) bit is not set as the next stage field is irrelevant. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget target. The target selects MD5 as the CHAP algorithm. Expect: The HBA sends an iSCSI logon request PDU to the test target address. If the transit bit is set, the next stage field must be valid and greater than the current stage. The next stage must be set to either logon operation negotiation (0x01), or full feature phase (0x03).
302 The iSCSI login request that includes the CHAP response must contain a data segment.
Test Assertion GUID: ef761115-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test validates that the logon request PDU with the CHAP response contains a data segment. Apply: The test initiates a CHAP logon to the test target by using LoginIScsiTarget. The target selects MD5 as the CHAP algorithm. Expect: The logon request PDU sent with the CHAP response must contain a data segment.
303 The iSCSI login request that includes the CHAP response must contain one and only one CHAP_N key.
Test Assertion GUID: 03515b64-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the HBA returns only one CHAP_N key with the CHAP response. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm. Expect: The logon request PDU sent from the HBA must contain the CHAP_N key.
304 The CHAP_N key must contain the user name that was specified by the iSCSI Login API.
Test Assertion GUID: 03515b65-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the HBA returns only one CHAP_N key with the CHAP response logon request PDU. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. During the logon, it provides a specific user name for the HBA to use for CHAP logon. Expect: The logon request PDU sent with the user name (CHAP_N key) contains the same user name as specified in the Login API.
305 The iSCSI login request that includes the CHAP response must contain one and only one CHAP_R key.
Test Assertion GUID: 03515b66-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the HBA returns only one CHAP_R key with the CHAP response logon request PDU. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key to use in computing the CHAP response. Expect: The logon request PDU sent from the HBA must contain the CHAP_R key.
306 The CHAP_R key must contain only one value.
Test Assertion GUID: 03515b67-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the CHAP_R key returned as part of the CHAP response logon request PDU does not contain a list of values. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key for use in computing the CHAP response. Expect: The CHAP_R key may only contain one value.
307 The CHAP_R value must be a valid large binary value.
Test Assertion GUID: 03515b68-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the value returned in the CHAP_R key is a properly encoded binary value. Although the CHAP_R response may be a binary value, for MD5, the required length exceeds the 8-byte limit for decimal encoded responses. Therefore, the encoding may only be hexadecimal or base 64. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key for use in computing the CHAP response. Expect: The value of the target's response PDU CHAP_R is properly encoded as a large-binary-value as defined in section 5.1 of the iSCSI Specification. The value can be encoded either as a hex constant or as a base 64 constant.
308 The CHAP_R value must be 16 bytes in length (unencoded).
Test Assertion GUID: 03515b69-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that the CHAP_R key value is equal to 16 bytes, which is the required length for responses returned as part of the MD5 algorithm. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key to use in computing the CHAP response. Expect: The decoded length of the HBA's CHAP response must be 16 bytes.
309 The CHAP response must be computed correctly.
Test Assertion GUID: ef761116-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the CHAP response returned by the HBA is equivalent to the expected response based on the target secret and the CHAP_I and CHAP_C values sent by the target. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key to use in computing the CHAP response. Expect: The HBA returns a CHAP_R response key with the correct response value.
310 The iSCSI login request that contains the CHAP response must not contain invalid keys.
Test Assertion GUID: ef761117-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that only valid keys are contained in the CHAP response packet. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key to use in computing the CHAP response. Expect: The logon request packet with HBA contains only the CHAP_N and CHAP_R keys when doing one-way CHAP. When mutual CHAP is performed, the CHAP_I and CHAP_C keys are also considered valid. Any other keys are considered errors.
311 The iSCSI login request that includes a mutual CHAP response must contain one and only CHAP_I key.
Test Assertion GUID: 03515b5c-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the HBA logon request contains only one CHAP_I key when performing mutual CHAP. Apply: The test initiates a mutual CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key to use in computing the CHAP response. Expect: The HBA logon request packet PDU must contain one CHAP_I key with the same logon request PDU that contains the CHAP response for the target.
312 The CHAP_I key must contain only one value in the key.
Test Assertion GUID: 03515b5d-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the HBA does not return a list of values in the CHAP_I key when performing mutual CHAP. Apply: The test initiates a mutual CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key for use in computing the CHAP response. Expect: The HBA logon request packet PDU must contain one CHAP_I key and must not contain more than one value for this key.
313 The value specified for the CHAP_I key must be valid numeric value.
Test Assertion GUID: 03515b5e-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the value provided in the CHAP_I= key is a properly encoded numeric value. Apply: The test initiates a mutual CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key for use in computing the CHAP response. Expect: The value of the HBA's CHAP_I key must be properly encoded as a numerical value as defined in section 5.1 of the iSCSI specification. The value may be encoded as a decimal or hexadecimal value.
314 The specified CHAP_I value must not be greater than 255.
Test Assertion GUID: 03515b5f-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the CHAP_I key value is only one byte in its unencoded form. Apply: The test initiates a mutual CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key to use in computing the CHAP response. Expect: The HBA logon request PDU must have a CHAP_I value that is not greater than 255 after it is decoded.
315 The iSCSI login request that includes a mutual CHAP response must contain one and only CHAP_C key.
Test Assertion GUID: 03515b60-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the HBA logon request contains only one CHAP_C key when performing mutual CHAP. Apply: The test initiates a mutual CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key to use in computing the CHAP response. Expect: The HBA logon request packet PDU has one CHAP_C key.
316 The CHAP_C key must contain only one value.
Test Assertion GUID: 03515b61-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the HBA does not return a list of values in the CHAP_C key when performing mutual CHAP. Apply: The test initiates a mutual CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key for use in computing the CHAP response. Expect: The HBA logon request packet PDU must contain one CHAP_C key and must not contain more than one value for this key.
317 The CHAP_C value must be a valid large binary value.
Test Assertion GUID: 03515b62-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that the value provided in the CHAP_C key is a properly encoded large binary value. Apply: The test initiates a mutual CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key to use in computing the CHAP response.Expect: The value of the HBA's CHAP_C key must be properly encoded as a large-binary value as defined in section 5.1 of the iSCSI specification. The value can be encoded as a hexadecimal or base 64 constant.
318 The CHAP_C value must not be longer than 1024 bytes (unencoded).
Test Assertion GUID: 03515b63-c4c9-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that CHAP_C= key value is not longer than the maximum length allowed. The maximum byte length is 1024 bytes. Apply: The test initiates a mutual CHAP logon to the test target by using the LoginIScsiTarget routine. The target selects MD5 as the CHAP algorithm and includes a CHAP_I and CHAP_C key to use in computing the CHAP response.Expect: The non-encoded length of the CHAP_C key must be less than or equal to 1024 bytes.
400 The final login request of the security stage must set the current stage to the security stage.
Test Assertion GUID: ef761118-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that the iSCSI HBA specifies the current stage as the security negotiation stage when requesting transition from that stage. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The test target checks the CHAP response that the HBA returns. The logon response PDU indicates that the authentication was successful. If mutual CHAP is tested, this packet also includes the computed CHAP response. This packet does not set the T (transit) bit, and therefore, the HBA must send another packet requesting transition to the next stage. Expect: The logon request PDU sent by the HBA must set the current stage (CSG) field of the PDU to 0x00.
401 The final login request of the security stage must set the Transit bit in the PDU.
Test Assertion GUID: ef761119-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that an HBA indicates it is ready to proceed to another stage after security negotiation has been completed. This condition is checked in both one-way and mutual CHAP. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The test target checks the CHAP response returned by the HBA. The logon response PDU indicates that authentication was successful. If mutual CHAP is tested, this packet also includes the computed CHAP response. This packet does not set the T (transit) bit, and, therefore, the HBA must send another packet requesting transition to the next stage. Expect: The HBA returns a logon request PDU with the T (transit) bit set to 1.
402 The final login request of the security stage must specify a valid next stage.
Test Assertion GUID: ef76111a-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that an HBA sets the next stage field of the iSCSI logon request PDU to a valid value. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The test target checks the CHAP response returned by the HBA. The logon response PDU indicates that authentication was successful. If mutual CHAP is tested, this packet also includes the computed CHAP response. This packet does not set the T (transit) bit and therefore the HBA must send another packet that requests a transition to the next stage. Expect: The next stage field of the logon request PDU is set to either the operational negotiation stage (0x01) or the full-feature stage (0x03).
403 The final login request of the security stage must not contain a data segment.
Test Assertion GUID: ef76111b-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test verifies that an HBA does not include a data segment in the logon request PDU. Apply: The test initiates a CHAP logon to the test target by using the LoginIScsiTarget routine. The test target checks the CHAP response that is returned by the HBA. The logon response PDU indicates that authentication was successful. If mutual CHAP is tested, this packet also includes the computed CHAP response. This packet does not set the T (transit) bit, and, therefore, the HBA must send another packet that requests a transition to the next stage. Expect: The data segment should not contain any data. The security negotiation has been completed, and, therefore, the HBA and target must transition to the next stage before any more items can be negotiated.
1000 The HBA must connect to the test target.
Test Assertion GUID: ef761105-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that the HBA establishes a connection with the test target. Apply: The test uses the LoginIScsiTarget routine to connect to the test target. Expect: The HBA establishes a TCP/IP connection with the test target.
1001 Connection must remain established during login.
Test Assertion GUID: ef761108-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that the HBA maintains the connection with the test target until the logon process is completed. Apply: The test uses the LoginIScsiTarget routine to connect to the test target. During testing, the test target either returns an error status code in a logon response PDU or returns an invalid CHAP_R response to the initiator during mutual CHAP. Expect: The connection between the HBA and the test target must be maintained until the logon process is terminated by an error status code returned by the test target or an inappropriate response. A failure indicates that the HBA terminated the connection prematurely.
1002 iSCSI Login function must not complete while the HBA is still performing the iSCSI login phase.
Test Assertion GUID: ef761109-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that the HBA driver does not complete the iSCSI logon request from the iSCSI service until the final status of the logon with the test target is completed. Apply: The test uses the LoginIScsiTarget routine to connect to the test target. Expect: The iSCSI logon request sent by the iSCSI service to the target must succeed after the logon process is terminated or the logon process succeeds. A failure indicates that control was returned to the service while the logon process was not yet terminated in error or was successfully completed.
1004 HBA must not send data after target ends login.
Test Assertion GUID: ef761106-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that the HBA does not send any more data to the test target after the test target aborts the logon process. Apply: The test uses the LoginIScsiTarget routine to connect to the test target. The test target, upon completion of CHAP validation, returns an error to terminate the logon. Expect: The HBA honors the error code returned and does not send more data to the target.
1005 HBA must return ISDSC_AUTHENTICATION_FAILURE when the target rejects the CHAP response.
Test Assertion GUID: ef761107-c4c5-11da-94f4-00123f3a6b60
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements
Additional Information: Test: The iSCSI Oneway/Mutual CHAP (HBA) test checks that the HBA driver returns the ISDSC_AUTHENTICATION_FAILURE code to the iSCSI service when an authentication failure occurs. Apply: The test uses the LoginIScsiTarget routine to connect to the test target. The test target either fails the first stage during one-way CHAP or returns an invalid CHAP response during mutual CHAP. Expect: The HBA driver must properly indicate the authentication failure by returning ISDSC_AUTHENTICATION_FAILURE to the service.
The HBA is not required to support Mutual CHAP.
Test Assertion GUID: 0d3996be-65df-4063-a818-1258f8b4b3f1
Windows Logo Program: STORAGE-0002 Storage host controllers and adapters comply with industry standards and Windows requirements

 

 

Build date: 9/14/2012

Community Additions

ADD
Show:
© 2014 Microsoft