KRB5_APPDEFAULT(3)
π KRB5_APPDEFAULT π
okay bestie, welcome to krb5_appdefault from the Kerberos 5 Library β it's a manual page, it's a whole vibe, and by the end of this you're gonna know exactly how to pull application configuration values out of thin air (well, out of a config file). let's go π¦
β¨ NAME β¨
krb5_appdefault_boolean, krb5_appdefault_string, krb5_appdefault_time β the trio that gets your application configuration value, no cap π
π LIBRARY π
Kerberos 5 Library (libkrb5, -lkrb5)
π SYNOPSIS π
#include <krb5.h>
void
krb5_appdefault_boolean(krb5_context context, const char *appname,
krb5_realm realm, const char *option, krb5_boolean def_val,
krb5_boolean *ret_val);
void
krb5_appdefault_string(krb5_context context, const char *appname,
krb5_realm realm, const char *option, const char *def_val,
char **ret_val);
void
krb5_appdefault_time(krb5_context context, const char *appname,
krb5_realm realm, const char *option, time_t def_val,
time_t *ret_val);
πΈ DESCRIPTION πΈ
so here's the tea β β these functions go get application defaults from the appdefaults section of the krb5.conf(5) configuration file. and the way it's set up, these defaults can be specified per application, and/or per realm. very flexible, very demure, very mindful π«Ά
when you ask for a value, it gets looked for in krb5.conf(5) in order of descending importance. like, most specific wins, and it trickles all the way down. the hierarchy is giving:
[appdefaults]
appname = {
realm = {
option = value
}
}
appname = {
option = value
}
realm = {
option = value
}
option = value
okay so quick glossary because i love you:
appnameis the name of the application.realmis the realm name. and if the realm is omitted it will not be used for resolving values β so don't expect it to magically show up, bestie πdef_valis the value to return if no value is found inkrb5.conf(5). it's your fallback, your safety net, your ride-or-die π
fr fr, that's the whole thing. look up the option, walk the ladder from most specific to least, and if nothing matches, hand back def_val and keep it moving.
π SEE ALSO π
krb5_config(3)krb5.conf(5)
and that's the page, periodt π
this was HEIMDAL, dated July 25, 2000 β yes she's an elder icon and she still ate π go read krb5.conf(5) next, ily, bye πβ¨
π¦ 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
- freebsd 14.5: base 14.5
- 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) 2000 Kungliga Tekniska HΓΆgskolan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms