iscsi_session_username_in_get
Retrieve authentication username of specified session.
- Provided by: libopeniscsiusr-dev (Version: 2.1.5-1ubuntu1.1)
- Source: open-iscsi
- Report a bug
Retrieve authentication username of specified session.
const char * iscsi_session_username_in_get (struct iscsi_session *se);
Retrieve the inbound authentication username of specified iSCSI session. Currently open-iscsi only support CHAP authentication method. The inbound authentication here means the iSCSI initiator authenticates the iSCSI target using CHAP. It's controlled this setting in iscsid.conf:
const char *. Empty string if not using inbound CHAP authentication or failed to read authentication information. No need to free this memory, the resources will get freed by iscsi_session_free or iscsi_sessions_free.