---
name: "iscsi_session_password_get"
section: "3"
platform: "linux"
package: "open-iscsi"
version: "2.1.13-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/iscsi_session_password_get"
---

# iscsi\_session\_password\_get(3)

Retrieve authentication password of specified session.

## NAME

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

## SYNOPSIS

**const char \* iscsi\_session\_password\_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 password 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**.
