mirror of
				https://git.proxmox.com/git/pve-access-control
				synced 2025-11-04 04:13:10 +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);
 |