1iscsi_session_username_get(3)     API Manual     iscsi_session_username_get(3)
2
3
4

NAME

6       iscsi_session_username_get - Retrieve authentication username of speci‐
7       fied session.
8

SYNOPSIS

10       const char * iscsi_session_username_get (struct iscsi_session *se);
11

ARGUMENTS

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

DESCRIPTION

17       Retrieve  the authentication username of specified iSCSI session.  Cur‐
18       rently open-iscsi only support CHAP authentication method.   It's  con‐
19       trolled this setting in iscsid.conf:
20

RETURN

22       const  char  *. Empty string if not using CHAP authentication or failed
23       to read authentication information.  No need to free this  memory,  the
24       resources will get freed by iscsi_session_free or iscsi_sessions_free.
25
26
27
28July 2023                 iscsi_session_username_giestcsi_session_username_get(3)
Impressum