RPC_GSS_SET_SVC_NAME(3)

πŸ’– RPC_GSS_SET_SVC_NAME(3) πŸ’–

okay bestie, so this is a page from the Library Functions Manual β€” it's rpc_gss_set_svc_name, and it's literally the glow-up your RPC service needs to get a GSS-API service principal attached to it. let's get into it πŸŽ€


✨ NAME ✨

rpc_gss_set_svc_name β€” Associate a GSS-API service principal with an RPC service


🌸 SYNOPSIS 🌸

#include <rpc/rpcsec_gss.h>

bool_t
rpc_gss_set_svc_name(const char *principal, const char *mechanism,
    u_int req_time, u_int program, u_int version);

πŸ’… DESCRIPTION πŸ’…

This function registers a service principal which will be used to authenticate RPCSEC_GSS security contexts for a given RPC program and version. that's it, that's the whole vibe β€” you hand it a principal, it makes it the identity for that program+version combo, and RPCSEC_GSS contexts get checked against it. iconic behavior, no cap πŸ‘‘


πŸ¦‹ PARAMETERS πŸ¦‹

  • principal β€” a string representing the service principal, and it has to be in the form "service@hostname". yes the @ is mandatory, don't skip it πŸ’€
  • mechanism β€” the name of the security mechanism
  • req_time β€” the time in seconds that the service credentials should remain valid. peep gss_acquire_cred(3) for more details. principal.
  • program β€” RPC program number for this service
  • version β€” RPC program version for this service
not me pointing out that stray "principal." at the end of req_time β€” it's in the original, so it stays, bestie πŸ™ˆ copy the source, not the typo-eraser

⭐ RETURN VALUES ⭐

Returns TRUE if the service principal was registered or FALSE otherwise. binary. yes or no. slay or flop. that's the whole return contract πŸ’–


🌈 AVAILABILITY 🌈

The rpc_gss_set_svc_name() function is part of libtirpc. so if you're missing it, that's a linking situation, not a you problem 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

rpc(3), gssapi(3), gss_acquire_cred(3), rpcsec_gss(3)


πŸŽ€ AUTHORS πŸŽ€

This manual page was written by Doug Rabson <dfr@FreeBSD.org>. thank you Doug, absolute legend, we stan πŸ’œ


and that's the whole page, bestie!! this manual page came to you from Debian, dated January 26, 2010 β€” vintage but still serving looks ✨ go register that principal, mwah πŸ’‹

πŸ“¦ where this page comes from