shishi_kdcreq_proxy_p(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_kdcreq_proxy_p(3) β€” the shishi manual, section 3 πŸ’–

okay bestie, sit down, grab a strawberry πŸ“, because we're about to learn whether a Kerberos request is out here asking to be a proxy. yes it's niche. yes it's iconic. let's go πŸ¦‹


✨ NAME ✨

shishi_kdcreq_proxy_p β€” it's an API function, bestie. that's the whole name card πŸ’…


🌸 SYNOPSIS 🌸

#include <shishi.h>

int shishi_kdcreq_proxy_p(Shishi * handle, Shishi_asn1 kdcreq);

two args, one int back. clean. no notes. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” the shishi handle, and you gotta get it the legit way, as allocated by shishi_init(). don't be out here passing vibes, pass the handle 🫢
  • Shishi_asn1 kdcreq β€” the KDC-REQ variable we're pulling the kdc-options field out of. that's the one we're snooping on πŸ‘€

πŸ’œ DESCRIPTION πŸ’œ

so the whole job of this function? it determines if the KDC-Option proxy flag is set. that's it. that's the gig. 🎯

now let's talk about what the PROXY option means, because it's lowkey important:

The PROXY option says "hey, this is a request for a proxy."

and here's the catch, the fine print, the "read the room" moment: this option will only be honored if the ticket-granting ticket in the request has its PROXIABLE bit set. no bit, no proxy. that's the rule, no cap. πŸ”₯

and where do you say which hosts the resulting ticket should be valid from? the address(es) of the host go in the addresses field of the request. that's literally where they live. put them there, don't improvise πŸ’€


⭐ RETURN VALUE ⭐

Returns non-0 iff the proxy flag is set in KDC-REQ. so: truthy = yes she's proxying, zero = nope. fr fr 🌈


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't just scream into the group chat, report it properly, bestie:


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.

(that's the license, and it's very generous of him, we stan πŸ’œ)


🧚 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 main character energy πŸ“šβœ¨


and that's the whole page, bestie! this was from the shishi manual, version 1.0.3, page shishi_kdcreq_proxy_p(3) β€” proxy-checking, flag-reading, absolutely slaying. mwah πŸ’…πŸ’–πŸŽ€