ISCSI_LOGIN_OPTIONS structure (iscsidsc.h)
The ISCSI_LOGIN_OPTIONS structure is used by initiators to specify the characteristics of a login session.
Syntax
typedef struct {
ULONG Version;
ISCSI_LOGIN_OPTIONS_INFO_SPECIFIED InformationSpecified;
ISCSI_LOGIN_FLAGS LoginFlags;
ISCSI_AUTH_TYPES AuthType;
ISCSI_DIGEST_TYPES HeaderDigest;
ISCSI_DIGEST_TYPES DataDigest;
ULONG MaximumConnections;
ULONG DefaultTime2Wait;
ULONG DefaultTime2Retain;
ULONG UsernameLength;
ULONG PasswordLength;
PUCHAR Username;
PUCHAR Password;
} ISCSI_LOGIN_OPTIONS, *PISCSI_LOGIN_OPTIONS;
Members
Version
The version of login option definitions that define the data in the structure. This member must be set to ISCSI_LOGIN_OPTIONS_VERSION 0.
InformationSpecified
A bitmap that indicates which parts of the ISCSI_LOGIN_OPTIONS structure contain valid data.
LoginFlags
A bitwise OR of login flags that define certain characteristics of the login session. The following table indicates the values that can be assigned to this member:
AuthType
An enumerator value of type ISCSI_AUTH_TYPES that indicates the authentication type.
HeaderDigest
An enumerator value of type ISCSI_DIGEST_TYPES that indicates the type of digest for guaranteeing the integrity of header data.
DataDigest
An enumerator value of type ISCSI_DIGEST_TYPES that indicates the type of digest for guaranteeing the integrity of non-header data.
MaximumConnections
A value between 1 and 65535 that specifies the maximum number of connections to the target device that can be associated with the login session.
DefaultTime2Wait
The minimum time to wait, in seconds, before attempting to reconnect or reassign a connection that has been dropped.
DefaultTime2Retain
The maximum time allowed to reassign a connection after the initial wait indicated in DefaultTime2Wait has elapsed.
UsernameLength
The length, in bytes, of the user name specified in the Username member.
PasswordLength
The length, in bytes, of the user name specified in the Password member.
Username
The user name to authenticate to establish the login session. This value is not necessarily a string. For more information, see the Remarks section in this document.
Password
The user name to authenticate to establish the login session. This value is not necessarily a string. For more information, see the Remarks section in this document.
Remarks
Initiators use the ISCSI_LOGIN_OPTIONS structure when creating a login session with the LoginIScsiTarget routine.
The Username and Password members are either strings or binary values that are used for iSCSI authentication. The exact meaning and function of these two values depends on the type of authentication used. For the Challenge Handshake Authentication Protocol (CHAP), the value in the Username member is the CHAP name, and the value in the Password member is the shared secret of the target. If there is no value specified in Username, the initiator node name is used as the CHAP name.
If the authentication protocol requires that these two values be strings, they must be ANSI strings.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Header | iscsidsc.h |