RPC_GSS_GET_PRINCIPAL_NAME(3)
π RPC_GSS_GET_PRINCIPAL_NA(3) π
okay so bestie, welcome to a page straight out of the Library Functions Manual β yes, that's the manual section it lives in, and yes, the header on this one is literally RPC_GSS_GET_PRINCIPAL_NA(3) (the name got cut off at the end, iconic truncation behaviour honestly, don't @ me). sit down, grab a lil drink, we're learning how to build a principal name β¨
πΈ NAME πΈ
rpc_gss_get_principal_name β get a principal name. that's it, that's the whole vibe π
π¦ LIBRARY π¦
RPC GSS-API Authentication Library (librpcsec_gss, -lrpcsec_gss) β like, that's the lib you gotta link against, no cap π«Ά
β¨ SYNOPSIS β¨
#include <rpc/rpcsec_gss.h>
bool_t
rpc_gss_get_principal_name(rpc_gss_principal_t *principal,
const char *mech, const char *name, const char *node,
const char *domain);
π DESCRIPTION π
okay so this function can be used to generate a client principal name out of a bunch of different strings. that's literally what it does. it takes your lil string pieces and assembles them into a principal. main character energy π₯
π§ PARAMETERS π§
principalβ if the principal gets created successfully (slay),*principalwill be set to point at the brand new principal, in GSS-API exported name form. like, it's handed to you pre-wrapped. periodt πmechβ the name of the mechanism for this principal. which mechanism, bestie? that one. π¦nameβ the name part of the principal. yeah. the name part. ground-breaking, i know πnodeβ if it's non-null, this is the hostname or instance part of the principal. if it's null, well... it just isn't, and that's fine πdomainβ if it's non-null, this is the domain or realm part of the principal. same deal, null means it's not contributing today π
π RETURN VALUES π
Returns TRUE if the principal was created, or FALSE otherwise. binary queen. we love a clean boolean π
β SEE ALSO β
go read those next, iykyk π
π HISTORY π
The rpc_gss_get_principal_name function first appeared in FreeBSD 8.0. so she's been around. a legacy icon honestly π
π AUTHORS π
This manual page was written by Doug Rabson <dfr@FreeBSD.org>. thank you doug, king behaviour π«Ά
π friendly reminder bestie:nodeanddomainare only used when they're non-null. the manual says exactly that and nothing more, so don't come for me with the "but what happens if..." questions, i am simply relaying the facts β¨
and that's the whole page!! π
this lil beauty came from the Debian crew, dated January 26, 2010, and lives in section 3 under the name RPC_GSS_GET_PRINCIPAL_NAME(3). bye bestie, go build some principals π¦πΈπ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2008 Isilon Inc http://www.isilon.com/
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms