/usr/share/doc/libmyproxy-dev/extras/myproxy-passphrase-policy is in libmyproxy-doc 6.1.22-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/usr/bin/perl -T
($username, $dn, $credname, $retriever_policy, $renewer_policy) = @ARGV;
chomp($passphrase = <STDIN>);
use Crypt::Cracklib; # if missing, install with:
# perl -MCPAN -e 'install Crypt::Cracklib'
if ($passphrase eq "") {
exit(0); # allow empty passphrase for other auth methods
}
$reason = fascist_check($passphrase);
if ($reason ne "ok") {
print $reason, "\n";
exit(1);
}
exit(0);
|