Wallet...::Root(3pm)
π Wallet::ACL::LDAP::Attribute::Root β the 3pm girlie π
okay bestie, so this is Wallet...::Root(3pm), a page from the User Contributed Perl Documentation section, and it's literally the root instance edition of the LDAP attribute ACL verifier. it's giving β¨main character energyβ¨ for the /root girlies and honestly? obsessed. π
β¨ NAME β¨
Wallet::ACL::LDAP::Attribute::Root β Wallet ACL verifier for LDAP attributes (root instances) π¦
β¨ SYNOPSIS β¨
my $verifier = Wallet::ACL::LDAP::Attribute::Root->new;
my $status = $verifier->check ($principal, "$attr=$value");
if (not defined $status) {
die "Something failed: ", $verifier->error, "\n";
} elsif ($status) {
print "Access granted\n";
} else {
print "Access denied\n";
}
no cap, that's the whole vibe right there. π
β¨ DESCRIPTION β¨
okay so listen, Wallet::ACL::LDAP::Attribute::Root does exactly what Wallet::ACL::LDAP::Attribute does, except it's pickier in the best way. it requires the principal to be a root instance β meaning it has to be in the form <principal>/root@<realm> β and then it strips the /root portion right off from the principal before checking it against the LDAP attribute and value.
and just like the base LDAP Attribute ACL verifier, the value of one of these ldap-attr-root ACLs is an attribute, followed by an equal sign, followed by a value. that's the whole recipe bestie. π
so when does it say slay? it grants access to a given principal if and only if the LDAP entry for that principal (with /root stripped off, obviously π) has that attribute set to that value. no exceptions, no vibes-based exceptions, fr fr.
to actually use this object, you need to set the same configuration parameters as for Wallet::ACL::LDAP::Attribute. go read Wallet::Config(3) for the deets on those config parameters and how to set wallet configuration. β¨
β¨ METHODS β¨
πΈ check(PRINCIPAL, ACL)
returns true if PRINCIPAL is granted access according to ACL, false if not, and undef on an error (peep DIAGNOSTICS below for that one, it's a whole thing).
ACL must be an attribute name and a value, separated by an equal sign (with no whitespace, okay? don't be messy π).
PRINCIPAL will be granted access if it has an instance of root and if β with /root stripped off β its LDAP entry contains that attribute with that value. both boxes checked or it's a no. π
β¨ DIAGNOSTICS β¨
same as for Wallet::ACL::LDAP::Attribute. literally identical, iykyk. π
β¨ CAVEATS β¨
the instance to strip is not currently configurable. so likeβ¦ /root is the moment, and it's staying the moment. periodt. π
β¨ SEE ALSO β¨
Net::Remctl(3)Wallet::ACL(3)Wallet::ACL::Base(3)Wallet::ACL::LDAP::Attribute(3)Wallet::Config(3)wallet-backend(8)
this module is part of the wallet system. the current version is available from <https://www.eyrie.org/~eagle/software/wallet/>. go get it bestie. π«Ά
β¨ AUTHORS β¨
- Jon Robertson
<jonrober@stanford.edu>π - Russ Allbery
<eagle@eyrie.org>π
and that's the whole page, angel. π this was Wallet...::Root(3pm) from perl v5.40.0, dated 2024-11-12 β thanks for reading, mwah, go forth and verify some ACLs. πβ¨π¦
π¦ where this page comes from
- debian trixie: krb5-wallet-server 1.7 Β· MIT
- ubuntu resolute: krb5-wallet-server 1.7 Β· MIT
- ubuntu stonking: krb5-wallet-server 1.7 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms