myproxy-passphrase-policy
来自「代理服务器源代码 供大家学习使用,希望大家喜欢」· 代码 · 共 21 行
TXT
21 行
#!/usr/bin/perl($username, $dn, $credname, $retriever_policy, $renewer_policy) = @ARGV;chomp($passphrase = <STDIN>);use Crypt::Cracklib; # if missing, install with: # perl -MCPAN -e 'install Crypt::Cracklib'$Crypt::Cracklib::DICT = '/usr/lib/cracklib_dict';if ($renewer_policy && $passphrase eq "") { exit(0); # allow empty passphrase for renewable creds}$reason = fascist_check($passphrase);if ($reason ne "ok") { print $reason, "\n"; exit(1);}exit(0);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?