shishi_authorize_k5login(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

πŸ’– shishi_authorize_k5login πŸ’–

okay bestie, so this one is shishi_authorize_k5login(3) β€” a lil API function from the shishi library, living its best life in section 3 of the manual. it's giving "am I allowed in?" energy and honestly? iconic.


✨ SYNOPSIS ✨

#include <shishi.h>

int shishi_authorize_k5login(Shishi * handle, const char * principal,
       const char * authzname);

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, bestie. you gotta allocate it with shishi_init() first, no skipping steps πŸ’…
  • const char * principal β€” a string holding the principal name you want plus the realm. like, the whole thing, not just the name part, okay? πŸ¦‹
  • const char * authzname β€” the authorization name. the one we're checking up on πŸ‘‘

🌸 DESCRIPTION 🌸

so basically it authorizes authzname against the principal you want, following the MIT/Heimdal authorization method. that's the vibe. that's the whole thing. lowkey elegant, ngl ✨


🫢 RETURN VALUE 🫢

  • returns 1 if authzname is authorized for services by principal β€” slay, you're in πŸ’–
  • returns 0 otherwise β€” not me getting rejected by the k5login file 😭

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't gatekeep, 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.


🌈 SEE ALSO 🌈

the full documentation for shishi is maintained as a Texinfo manual πŸ“š if the info and shishi programs are properly installed at your site, this command:

info shishi

should give you access to the complete manual. periodt πŸ’…


and that's the whole page, bestie ✨ this lil writeup is from shishi version 1.0.3, dated alongside shishi_authorize_k5login(3) β€” go forth and authorize, you main character πŸ§šπŸ’œ