shishi_authorized_p(3)
β¨ NAME β¨
shishi_authorized_p β it's an API function, bestie π
(from the shishi manual, section 3, if you were wondering where we are rn)
πΈ SYNOPSIS πΈ
#include <shishi.h>
int shishi_authorized_p(Shishi * handle, Shishi_tkt * tkt, const char *
authzname);
π ARGUMENTS π
Shishi * handleβ the shishi handle, and no you can't just make one up, it's the one allocated byshishi_init(). π«ΆShishi_tkt * tktβ an input variable carrying the ticket info. it's giving "the receipts" fr.const char * authznameβ the authorization name. that's the name we're asking about. π
π¦ DESCRIPTION π¦
okay so this is a simplistic authorization check β key word simplistic, bestie, don't come for her β that checks authzname against the encrypted client principal name sitting inside the ticket. π₯
Here's the tea on the two auth types:
- For the
"basic"authentication type, the principal name must coincide withauthzname. like, they have to match. that's it. no wiggle room, no notes. π - The
"k5login"authentication type attempts the MIT/Heimdal method of parsing the file"~/.k5login"to find additional equivalence names. so it's lowkey like "okay you're not literally the same name but the k5login file says you're equivalent, so slay." β¨
π RETURN VALUE π
- Returns
1ifauthznameis authorized for services by the encrypted principal π - Returns
0otherwise π
that's it. a lil 1 or a lil 0. binary queen. π
π REPORTING BUGS π
Found a bug? not the vibe, but pls report it to <bug-shishi@gnu.org> so it can get fixed π«Ά
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
π COPYRIGHT π
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. (yes bestie, you may copy it, royalty-free, iconic behavior π)
π 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, the command
info shishi
should give you access to the complete manual. go read it, it's giving lore. π
and that's the whole page, bestie π that was shishi_authorized_p(3) from the shishi 1.0.3 manual β stan a secure authentication library fr fr, mwah πβ¨
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms