]> git.proxmox.com Git - pve-access-control.git/blame_incremental - src/test/auth-test.pl
bump version to 7.1-8
[pve-access-control.git] / src / 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);