lsm_iscsi_chap_auth - Man Page

Set iSCSI CHAP authentication.

Synopsis

int lsm_iscsi_chap_auth (lsm_connect *conn, const char *init_id, const char *in_user, const char *in_password, const char *out_user, const char *out_password, lsm_flag flags);

Arguments

conn

Valid connection pointer

init_id

String. The iSCSI Initiator IQN.

in_user

String. The inbound user name

in_password

String. The inbound password

out_user

String. The outbound user name

out_password

String. The outbound password

flags

Reserved for future use, must be LSM_CLIENT_FLAG_RSVD.

Version

1.0

Description

Set the username password for iSCSI CHAP authentication, inbound and outbound.

Return

Error code as enumerated by 'lsm_error_number'.
   * LSM_ERR_OK
       On success.
   * LSM_ERR_INVALID_ARGUMENT
       When not a valid lsm_connect pointer or invalid flags.
   * LSM_ERR_NO_SUPPORT
       Not supported.

Info

April 2023 Libstoragemgmt C API Manual