ksmbd_auth_ntlmv2(9)
π NAME π
Okay bestie, welcome to ksmbd_auth_ntlmv2(9) from the Kernel API Manual β this is literally the NTLMv2 authentication handler. No cap, that's the whole vibe of this one. β¨
β¨ SYNOPSIS β¨
Here's the signature, copied exactly because we do not mess with code:
int ksmbd_auth_ntlmv2 (struct ksmbd_conn *conn , struct ksmbd_session
*sess , struct ntlmv2_resp *ntlmv2 , int blen , char *domain_name , char
*cryptkey , char *sess_key );
π ARGUMENTS π
connβ the connection. It's giving βwhich connection are we onβ energy.sessβ the session of the connection. Bestie, it's the session belonging to the connection.ntlmv2β the NTLMv2 challenge response. Iconic.blenβ the NTLMv2 blob length. Yes, the length of the NTLMv2 blob.domain_nameβ the domain name. Simple, clean, slay.cryptkeyβ the session crypto key. Keep it safe.sess_keyβ the derived session key output buffer. She's an output buffer, so treat her right.
π RETURN π
It returns 0 on success, and an error number on error. That's it. Periodt. β
π¦ SEE ALSO π¦
The kernel file is ./fs/smb/server/auth.c, and these are the related manual pages to check out:
ksmbd_decode_ntlmssp_auth_blob(9)ksmbd_decode_ntlmssp_neg_blob(9)ksmbd_build_ntlmssp_challenge_blob(9)ksmbd_sign_smb2_pdu(9)ksmbd_sign_smb3_pdu(9)ksmbd_init_rdma_sg(9)ksmbd_crypt_rdma(9)
With love from the source/version ./fs/smb/server, dated October 2026, this has been ksmbd_auth_ntlmv2(9) β bye bestie, hydrate and vibe responsibly π
π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms