Revert "cli: manager, tape, debug: setup auth context to make local connect work"

This reverts commit 6bac67195e and
commit 783e88c2df as they were both
superseded by 569324cb ("provide separate helpers for pub/priv auth
keyring access").
This commit is contained in:
Thomas Lamprecht 2023-03-29 14:58:35 +02:00
parent 569324cb95
commit bd8e8991d3
3 changed files with 0 additions and 14 deletions

View File

@ -23,11 +23,6 @@ fn main() {
let mut rpcenv = CliEnvironment::new();
rpcenv.set_auth_id(Some(format!("{}@pam", username)));
let args: Vec<String> = std::env::args().take(2).collect();
if args.len() < 2 || args[1] != "printdoc" {
proxmox_backup::auth_helpers::setup_auth_context(true);
}
run_cli_command(
cmd_def,
rpcenv,

View File

@ -490,10 +490,6 @@ async fn run() -> Result<(), Error> {
let mut rpcenv = CliEnvironment::new();
rpcenv.set_auth_id(Some(String::from("root@pam")));
if args.len() < 2 || args[1] != "printdoc" {
proxmox_backup::auth_helpers::setup_auth_context(true);
}
run_async_cli_command(cmd_def, rpcenv).await; // this call exit(-1) on error
Ok(())

View File

@ -1113,10 +1113,5 @@ fn main() {
let mut rpcenv = CliEnvironment::new();
rpcenv.set_auth_id(Some(String::from("root@pam")));
let args: Vec<String> = std::env::args().take(2).collect();
if args.len() < 2 || args[1] != "printdoc" {
proxmox_backup::auth_helpers::setup_auth_context(true);
}
proxmox_async::runtime::main(run_async_cli_command(cmd_def, rpcenv));
}