Wallet...:Regex(3pm)
β¨ Wallet::ACL::Krb5::Regex β¨
okay bestie, so this is the manual page for Wallet::ACL::Krb5::Regex β it lives in the Wallet...:Regex(3pm) section of the Perl docs (User Contributed Perl Documentation, if you're being fancy) π
πΈ NAME πΈ
Wallet::ACL::Krb5::Regex β it's the regex wallet ACL verifier for Kerberos principals, and yes that's a whole mouthful, we love her anyway π
π¦ SYNOPSIS π¦
my $verifier = Wallet::ACL::Krb5::Regex->new;
my $status = $verifier->check ($principal, $acl);
if (not defined $status) {
die "Something failed: ", $verifier->error, "\n";
} elsif ($status) {
print "Access granted\n";
} else {
print "Access denied\n";
}
literally the whole vibe in seven lines, no cap π
π DESCRIPTION π
Wallet::ACL::Krb5::Regex is the wallet ACL verifier you use to verify ACL lines of type "krb5-regex". The value of one of those ACLs is a Perl regular expression, and here's the tea: the ACL grants access to a given Kerberos principal if and only if that regular expression matches the principal. No match, no access, periodt β¨
π METHODS π
new()β makes a brand new ACL verifier for you π«Ά. For this particular verifier there's no setup work at all, it's giving low-maintenance queen.check(PRINCIPAL, ACL)β returns true if the Perl regular expression that the ACL specifies matches the PRINCIPAL, false if it doesn't, andundefwhen there's an error (go peek at DIAGNOSTICS below for that drama π).error()β hands you the error back, but only ifcheck()returnedundef. Otherwise, nothing to see here π.
π DIAGNOSTICS π
- malformed krb5-regex ACL β the ACL parameter you passed to
check()was a malformed Perl regular expression. it's broken bestie, fix it π - no principal specified β the PRINCIPAL parameter you passed to
check()wasundefor the empty string. you forgot the principal, babe π - no ACL specified β the ACL parameter you passed to
check()wasundefor the empty string. and you forgot the ACL too. iconic, but not in the good way π
β SEE ALSO β
Wallet::ACL(3), Wallet::ACL::Base(3), Wallet::ACL::Krb5(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 her π
π AUTHOR π
Ian Durkacz β thank you for your service, king π«Ά
and that's a wrap on the Wallet...:Regex(3pm) page, bestie!! this one's perl v5.40.0, dated 2024-11-12, brought to you by User Contributed Perl Documentation πβ¨π¦ go forth and match those principals, mwah π
πΈ
π¦ 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