mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-07-15 03:28:06 +00:00

use the get_standar_mapping 'pve-password' then we can get rid of the Term::ReadLine dependency we use this change to only ask for the password once on 'pveum ticket' Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
16 lines
297 B
Perl
16 lines
297 B
Perl
#!/usr/bin/perl -w
|
|
|
|
use strict;
|
|
use PVE::PTY;
|
|
use PVE::AccessControl;
|
|
|
|
my $username = shift;
|
|
die "Username missing" if !$username;
|
|
|
|
my $password = PVE::PTY::read_password('password: ');
|
|
PVE::AccessControl::authenticate_user($username,$password);
|
|
|
|
print "Authentication Successful!!\n";
|
|
|
|
exit (0);
|