]> git.proxmox.com Git - pve-access-control.git/blame_incremental - test/auth-test.pl
replace read_password with param_mapping
[pve-access-control.git] / test / auth-test.pl
... / ...
CommitLineData
1#!/usr/bin/perl -w
2
3use strict;
4use PVE::PTY;
5use PVE::AccessControl;
6
7my $username = shift;
8die "Username missing" if !$username;
9
10my $password = PVE::PTY::read_password('password: ');
11PVE::AccessControl::authenticate_user($username,$password);
12
13print "Authentication Successful!!\n";
14
15exit (0);