lsm_iscsi_chap_auth(3)
π lsm_iscsi_chap_auth β ok so we're doing iSCSI CHAP auth π
Bestie. Sit down. Grab a strawberry π. We are in the Libstoragemgmt C API Manual and today's main character is lsm_iscsi_chap_auth, which sets up your iSCSI CHAP authentication β both directions, inbound and outbound. Yes, both. She's thorough. π
β¨ SYNOPSIS β¨
int lsm_iscsi_chap_auth (lsm_connect *conn, const char *init_id, const char *in_user, const char *in_password, const char *out_user, const char *out_password, lsm_flag flags);
Look at all those arguments. Six of them plus flags. It's giving thorough. π
π ARGUMENTS π
connβ a valid connection pointer. Like, actually valid. A real one. If it's not valid we're gonna have a whole situation (see RETURN, bestie).init_idβ a String. This is the iSCSI Initiator IQN. That's your initiator's whole government name.in_userβ a String. The inbound user name. π«Άin_passwordβ a String. The inbound password. Keep it secret, keep it safe πout_userβ a String. The outbound user name.out_passwordβ a String. The outbound password. Also secret. Obviously. πflagsβ reserved for future use, so it must beLSM_CLIENT_FLAG_RSVD. Don't get creative with this one, it's not that kind of party. π«
πΈ VERSION πΈ
1.0 β she's been here a minute and she knows what she's doing. β
π¦ DESCRIPTION π¦
Set the username password for iSCSI CHAP authentication, inbound and outbound.
That's it. That's the whole vibe. You hand her a connection, an initiator IQN, and the in/out credentials, and she makes the CHAP auth happen. Periodt. β¨
π₯ RETURN π₯
She gives you back an error code, enumerated by lsm_error_number. Here's the whole menu, no skips:
LSM_ERR_OKβ on success. Slay! The good one. We love her. πLSM_ERR_INVALID_ARGUMENTβ when it's not a validlsm_connectpointer, or the flags are invalid. Yeah, she checks. She always checks. πLSM_ERR_NO_SUPPORTβ not supported. It's not you, it's the backend. π
Heads up bestie: if yourconnpointer is fake or yourflagsisn'tLSM_CLIENT_FLAG_RSVD, you're gettingLSM_ERR_INVALID_ARGUMENTback and honestly? You earned it. π
That's the whole page, fr fr. Written up in the Libstoragemgmt C API Manual, version-dated February 2026, and yeah β the girl is literally named lsm_iscsi_chap_auth(3). Iykyk. ππ¦π
π¦ where this page comes from
- fedora 43: libstoragemgmt-devel 1.10.3-1.fc43 Β· LGPL-2.1-or-later
- fedora 44: libstoragemgmt-devel 1.10.3-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms