KRB5_CHECK_TRANSITED(3)
π KRB5_CHECK_TRANSITED π
okay bestie, gather round, because today we're talking about krb5_check_transited and its little friend group β the realm transit verification + encoding/decoding squad from the Kerberos 5 Library (that's libkrb5, link with -lkrb5). it's giving β¨deep magicβ¨, but we're gonna make it make sense. no cap.
πΈ NAME πΈ
krb5_check_transited, krb5_check_transited_realms, krb5_domain_x500_decode, krb5_domain_x500_encode β realm transit verification and encoding/decoding functions
π LIBRARY π
Kerberos 5 Library (libkrb5, -lkrb5)
β¨ SYNOPSIS β¨
#include <krb5.h>
krb5_error_code
krb5_check_transited(krb5_context context,
krb5_const_realm client_realm, krb5_const_realm server_realm,
krb5_realm *realms, int num_realms, int *bad_realm);
krb5_error_code
krb5_check_transited_realms(krb5_context context,
const char *const *realms, int num_realms, int *bad_realm);
krb5_error_code
krb5_domain_x500_decode(krb5_context context, krb5_data tr,
char ***realms, int *num_realms, const char *client_realm,
const char *server_realm);
krb5_error_code
krb5_domain_x500_encode(char **realms, int num_realms,
krb5_data *encoding);
π¦ DESCRIPTION π¦
so krb5_check_transited() is the vibe-checker for the journey from client_realm all the way to server_realm, where realms and num_realms are the realms sitting between them. it's literally checking the path, bestie. and if the function returns an error value, then bad_realm gets set to the exact realm in the list that caused the drama π β the little snitch, the one who ruined it for everyone.
π¨ ok important: krb5_check_transited() is used internally by the KDC and libkrb5 and should NOT be called by client applications. it's not for you, it's for them. respect the boundary π
krb5_check_transited_realms() β deprecated, babe. she's old, she's tired, let her rest π.
krb5_domain_x500_encode() and krb5_domain_x500_decode() do the encode/decode thing with realm names in the X500 format β that's the format Kerberos uses to describe the transited realms in krbtgts. encode go brrr, decode un-brrr. iconic behavior honestly π
π SEE ALSO π
and that's the whole page, bestie!! π«Ά this lil gem comes to you from HEIMDAL, dated May 1, 2006 β yeah she's an elder but she still ate, fr fr πβ¨ππ¦πΈ
π¦ where this page comes from
- alpine 3.22: heimdal-doc 7.8.0-r4 Β· BSD-3-Clause
- alpine 3.23: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- alpine 3.24: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- debian bookworm: heimdal-dev 7.8.git20221117.28daf24+dfsg-2 Β· BSD-3-Clause
- debian trixie: heimdal-dev 7.8.git20221117.28daf24+dfsg-9+deb13u1 Β· BSD-3-Clause
- epel 10: heimdal-devel 7.8.0-26.el10_2 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- epel 9: heimdal-devel 7.8.0-5.el9 Β· BSD and MIT
- fedora 43: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 43: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-devel 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: heimdal 7.8.0-unstable-2024-09-10
- ubuntu jammy: heimdal-dev 7.7.0+dfsg-3ubuntu1 Β· BSD-3-Clause
- ubuntu noble: heimdal-dev 7.8.git20221117.28daf24+dfsg-5ubuntu3 Β· BSD-3-Clause
- ubuntu questing: heimdal-dev 7.8.git20221117.28daf24+dfsg-9ubuntu1
- ubuntu resolute: heimdal-dev 7.8.git20221117.28daf24+dfsg-11ubuntu1 Β· BSD-3-Clause
- ubuntu stonking: heimdal-dev 7.8.git20240113.1b4565a+dfsg-2ubuntu1 Β· BSD-3-Clause
- Copyright (c) 2004, 2006 Kungliga Tekniska HΓΆgskolan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms