KRB5PLUGIN_AN2LN_FTABLE_DESC(3)
π krb5plugin_an2ln_ftable_desc β bestie edition π
okay so this is a page straight out of the Heimdal Kerberos 5 library manual, and we're talking about krb5plugin_an2ln_ftable_desc β literally the description of the krb5_aname_to_lname(3) plugin facility. yes bestie, it's a whole plugin situation. buckle up. π
β¨ NAME β¨
krb5plugin_an2ln_ftable_desc β the lowdown on the krb5_aname_to_lname(3) plugin facility. it's giving "here's how you plug into the name-mapping machine." π
πΈ SYNOPSIS πΈ
#include <an2ln_plugin.h>
π¦ Detailed Description π¦
so. the whole tea: this is the description of the krb5_aname_to_lname(3) plugin facility. π«Ά
krb5_aname_to_lname(3) is pluggable. the plugin is named KRB5_PLUGIN_AN2LN (and its lil nickname is 'an2ln', cute), and it has exactly one minor version: KRB5_PLUGIN_AN2LN_VERSION_0, which is 0. one version, no chaos, periodt.
the plugin for krb5_aname_to_lname(3) is made of a data symbol that points at a structure of type krb5plugin_an2ln_ftable, and that struct has four fields:
π§ Parameters π§
initβ the plugin initialization function (go peek atkrb5-plugin(7)for the deets, iykyk)minor_versionβ the plugin minor version number, which is0finiβ the plugin finalization functionan2lnβ the plugin'saname_to_lnamefunction
the an2ln field is the moment β it's the plugin entry point that does the traditional aname_to_lname operation, and it can do it however the plugin wants, honestly, main character energy, do your thing. π
BUT. and this is important bestie. it gets invoked in no particular order relative to the other an2ln plugins. none. zero. so instead, it gets a 'rule' argument that says which plugin is actually supposed to act on that rule. and if the rule is not applicable to this plugin? the plugin's an2ln function must return KRB5_PLUGIN_NO_HANDLE. no cap. that's the vibe check. π
π the arguments, in this exact order π
plug_ctxβ the context value that the plugin'sinitfunction outputcontextβ akrb5_contextruleβ theaname_to_lnamerule currently being evaluated (this one comes fromkrb5.conf(5), bestie)anameβ thekrb5_principalthat's getting mapped to anlnameset_res_fβ a function the plugin must call to set its result πset_res_ctxβ the first argument you hand toset_res_f(the second one is the resultlnamestring, fyi)
β Author β
generated automatically by Doxygen for the Heimdal Kerberos 5 library, straight from the source code. it's iconic, it's hands-off, it's literally a robot doing the writing for us. π
π okay that's the whole page bestie, go forth and plug in responsibly π
signing off with the deets: Version 7.8.0, dated Tue Nov 15 2022, from your friends at the Heimdal Kerberos 5 library manual, krb5plugin...table_desc(3) β¨π¦
π¦ 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
- 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms