Wallet::Policy::Stanford3pm
Stanford's wallet naming and ownership policy
Usage
use Wallet::Policy::Stanford;my ($type, $name, $user) = @_;my $error = valid_name($type, $name, $user);my ($name, @acl) = default_owner($type, $name);
Overview
Wallet::Policy::Stanford implements Stanford's wallet naming and ownership policy as described in docs/stanford-naming in the wallet distribution. It is primarily intended as an example for other sites, but it is used at Stanford to implement that policy.
This module provides the default_owner() and verify_name() functions that are part of the wallet configuration interface (as documented in Wallet::Config). They can be imported directly into a wallet configuration file from this module or wrapped to apply additional rules.