shisa_principal_find(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– shisa_principal_find(3) πŸ’–

okay bestie, so this is a page from the shishi manual (section 3, the library-call girlies) and it's all about shisa_principal_find β€” the function that goes and finds your principal for you. it's giving librarian energy but for realms. let's get into it 🫢


✨ NAME ✨

shisa_principal_find β€” an API function, and yes that's literally all the original says, so that's all I'm saying too πŸ’…


🌸 SYNOPSIS 🌸

#include <shisa.h>

int shisa_principal_find(Shisa * dbh, const char * realm, const char *
principal, Shisa_principal * ph);

like, that's the whole vibe. one include, one function call, four args. easy πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • Shisa * dbh β€” the Shisa library handle, and you get it from shisa(). it's your little dbh bestie, the thing that holds everything together.
  • const char * realm β€” the name of the realm that your principal belongs to. like the group chat your principal is in ✨
  • const char * principal β€” the name of the principal you want the tea about. that's who we're investigating πŸ”
  • Shisa_principal * ph β€” a pointer to a principal structure that you already allocated earlier (yes, before you called this, bestie β€” do not show up empty-handed). all the info about the principal gets stored in there. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically it extracts the info about the given PRINCIPAL@REALM pair β€” the one you picked out with principal and realm. that's it, that's the job. no cap, it just goes and pulls up the receipts for that pair. πŸ“


⭐ RETURN VALUE ⭐

here's the vibe check on what comes back:

  • SHISA_OK β€” slay, it worked πŸ’–
  • SHISA_NO_REALM β€” the realm you named doesn't exist 😭
  • SHISA_NO_PRINCIPAL β€” the principal you named doesn't exist 😭
  • or, you know, some other error code. generic L, sorry bestie πŸ’€

🌈 REPORTING BUGS 🌈

found a bug? not the moment we wanted, but okay β€” report it to <bug-shishi@gnu.org> πŸ›


Copyright Β© 2002-2022 Simon Josefsson.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

(translation: use it, share it, remix it, just keep the receipts. iconic behavior honestly ✨)


🌸 SEE ALSO 🌸

the full documentation for shishi lives in a Texinfo manual, and if info and the shishi programs are properly installed at your site, this command:

info shishi

should give you access to the complete manual. go read it, i know you want to πŸ“–πŸ’…


anyway that's the whole page, bestie β€” every flag, every arg, every return code, nothing skipped, we ate and left no crumbs πŸŽ€βœ¨

shishi, version 1.0.3, and this little shisa_principal_find(3) page is officially a wrap. mwah πŸ’– bye!! πŸ¦‹