RPC_GSS_GETCRED(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

✨ NAME ✨

rpc_gss_getcred β€” Get authorization information for an RPC request. That’s the whole vibe, bestie: you’re pulling the auth info for an RPC request, and this function is the main character. πŸ’…

okay so this is the RPC_GSS_GETCRED(3) page from the Library Functions Manual, and it’s here to explain the creds situation. 🫢


πŸ“š LIBRARY πŸ“š

RPC GSS-API Authentication Library (librpcsec_gss, -lrpcsec_gss). Slay, that’s the library you’re linking against. ✨


πŸ›  SYNOPSIS πŸ› 

#include <rpc/rpcsec_gss.h>

AUTH *
rpc_gss_getcred(struct svc_req *req, rpc_gss_rawcred_t **rcred,
    rpc_gss_ucred_t **ucred, void **cookie);

πŸ’– DESCRIPTION πŸ’–

This function returns the RPCSEC_GSS authenticated credentials associated with an RPC request. No cap, that’s literally the whole function’s job. πŸ”₯


πŸŽ€ PARAMETERS πŸŽ€

  • req β€” The RPC request to query. This is the request you’re asking about. πŸ‘‘
  • rcred β€” If non-null, *rcred is set to point at the raw credentials for this request.
  • ucred β€” (the original page leaves this one with no description here, so I’m not inventing one 🫢)
  • rcred β€” If non-null, *ucred is set to point at the corresponding unix credentials. Yes, the label shows up twice in the original β€” I’m preserving the whole thing exactly, bestie πŸ’…
  • cookie β€” If non-null, *cookie is set to the cookie value returned by a callback function registered with rpc_gss_set_callback(). πŸͺ

🌈 RETURN VALUES 🌈

Returns TRUE if successful, FALSE otherwise. That’s it β€” iconic binary behavior. ⭐


πŸ¦‹ SEE ALSO πŸ¦‹

Go read those too if you want the full lore. iykyk. 🧚


πŸ’œ HISTORY πŸ’œ

The rpc_gss_getcred function first appeared in FreeBSD 8.0. A historic moment, honestly. πŸŽ€


πŸ‘‘ AUTHORS πŸ‘‘

This manual page was written by Doug Rabson <dfr@FreeBSD.org>. Respect the author, bestie. 🫢


mwah πŸ’‹ β€” this one’s from Debian, dated January 26, 2010, and it’s the RPC_GSS_GETCRED(3) page. Bye bestie! πŸŽ€βœ¨

πŸ“¦ where this page comes from