]>
git.proxmox.com Git - pve-cluster.git/blob - data/test/scripts/test-verify-token.pl
11f07dcd04733c04c462c5d1c160a91fe977b994
13 ## For quick test you can add arbitrary fake tokens to token.cfg:
14 # echo 'root@pam 1234512345XXXXX' >> /etc/pve/priv/token.cfg
16 my $token = shift // '1234512345XXXXX';
17 my $userid = shift // 'root@pam';
19 my $res = PVE
::Cluster
::verify_token
($userid, $token);
21 print "token '$userid $token' ". ($res ?
'' : "not " ) ."found\n";