]> git.proxmox.com Git - pve-access-control.git/blobdiff - pveum
Auth/LDAP: add necessary options for syncing
[pve-access-control.git] / pveum
diff --git a/pveum b/pveum
index 4ab2e0c4c4b9672d68fa987103ed4bdba7b29f44..34ed82cc748757e39a39eb0e8677ea6b32504ba5 100755 (executable)
--- a/pveum
+++ b/pveum
@@ -5,22 +5,4 @@ use warnings;
 
 use PVE::CLI::pveum;
 
-my $read_password = sub {
-
-    # return $ENV{PVE_PW_TICKET} if defined($ENV{PVE_PW_TICKET});
-
-    my $term = new Term::ReadLine ('pveum');
-    my $attribs = $term->Attribs;
-    $attribs->{redisplay_function} = $attribs->{shadow_redisplay};
-    my $input = $term->readline('Enter new password: ');
-    my $conf = $term->readline('Retype new password: ');
-    die "Passwords do not match.\n" if ($input ne $conf);
-    return $input;
-};
-
-my $prepare = sub {
-    # autmatically generate the private key if it does not already exists
-    PVE::Cluster::gen_auth_key();
-};
-
-PVE::CLI::pveum->run_cli($read_password, undef, $prepare);
+PVE::CLI::pveum->run_cli_handler();