plucky (3) iscsi_session_username_get.3.gz

Provided by: libopeniscsiusr-dev_2.1.10-3ubuntu2_all bug

NAME

       iscsi_session_username_get - Retrieve authentication username of specified session.

SYNOPSIS

       const char * iscsi_session_username_get (struct iscsi_session *se);

ARGUMENTS

       se          Pointer  of 'struct iscsi_session'.  If this pointer is NULL, your program will be terminated
                   by assert.

DESCRIPTION

       Retrieve the authentication username of specified iSCSI session.  Currently open-iscsi only support  CHAP
       authentication method.  It's controlled this setting in iscsid.conf:

RETURN

       const char *. Empty string if not using 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.