shisa_principal_update(3)
β¨ shisa_principal_update β the glow-up edit for your principal data π
okay bestie, welcome to shisa_principal_update(3), a page from the shishi manual, section 3 (that's the library-call section, iykyk). it's the API function that lets you edit the deets you've got stored about a principal. no cap.
πΈ NAME πΈ
shisa_principal_update β API function π
π¦ SYNOPSIS π¦
#include <shisa.h>
int shisa_principal_update(Shisa * dbh, const char * realm, const char *
principal, const Shisa_principal * ph);
like, she takes a handle, a realm, a principal, and a struct pointer, and she returns an int. that's the whole vibe. β
π ARGUMENTS π
Shisa * dbhβ the Shisa library handle you got fromshisa(). your lil connection to the whole operation, fr fr. π«Άconst char * realmβ the name of the realm the principal belongs to. where she lives, basically. πconst char * principalβ the name of the principal you want info about. that's your girl. πconst Shisa_principal * phβ pointer to an existing principal structure holding the info you want to store in the database. this is the payload, bestie. π¦β¨
π DESCRIPTION π
so what she does is modify the information stored about the given principal, and we're talking PRINCIPAL@REALM here β that's the exact format, keep it. π
now here's the tea: it's usually a good idea to set only the fields that are to be updated in ph. like, don't dump your whole struct in there if you only changed one thing. that's just messy. π
the generally suggested move is:
- first call
shisa_principal_find()to grab the current info π - then modify one field π§
- then call
shisa_principal_update()β¨
and ngl, modifying several values at once is not recommended in general, because:
- it will overwrite any modifications made to other fields between the two calls β by other processes π (yes, other processes are out here editing the same thing, the audacity)
- it will cause all values to be written again, which may generate more overhead. extra work for no reason, and we don't do that here π
so like... one field at a time, bestie. slow and iconic. π’π
β RETURN VALUE β
SHISA_OKβ slay, it worked πSHISA_NO_REALMβ the indicated realm does not exist πSHISA_NO_PRINCIPALβ the indicated principal does not exist π- an error code otherwise β the catch-all, the "something else went down" π«
π REPORTING BUGS π
found a bug? don't suffer in silence, report it to <bug-shishi@gnu.org>. πβ‘οΈπ§
- 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.
(that's the whole license vibe β keep the notice, keep the notice, and you're golden β¨)
π 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 β¨ educated β¨ π§
and that's the page, bestie!! π this was shisa_principal_update(3) from shishi version 1.0.3 β go forth and update responsibly, one field at a time. mwah πππ¦
π¦ where this page comes from
- debian bookworm: libshisa-dev 1.0.3-1+b1 Β· GPL-3.0-or-later
- debian trixie: libshisa-dev 1.0.3-5+b1 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: libshisa-dev 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: libshisa-dev 1.0.3-5
- ubuntu resolute: libshisa-dev 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: libshisa-dev 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