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