iscsi\_session\_password\_in\_get(3) API Manual iscsi\_session\_password\_in\_get(3)

# [NAME](#NAME)

iscsi\_session\_password\_in\_get - Retrieve authentication password of specified session.

# [SYNOPSIS](#SYNOPSIS)

**const char * iscsi\_session\_password\_in\_get** **(struct iscsi\_session \*se);**

# [ARGUMENTS](#ARGUMENTS)

[se](#se)

Pointer of 'struct iscsi\_session'. If this pointer is NULL, your program will be terminated by assert.

# [DESCRIPTION](#DESCRIPTION)

Retrieve the inbound authentication password 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:

# [RETURN](#RETURN)

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**.

iscsi\_session\_password\_in\_get October 2026

---

Document: iscsi_session_password_in_get(3) from open-iscsi 2.1.13-r4 (Chainguard OS)
Source: https://github.com/open-iscsi/open-iscsi
