[pve-devel] [PATCH storage] pbs: fix token auth with PVE::APIClient
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Dec 3 14:03:43 CET 2020
Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
PVE/Storage/PBSPlugin.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm
index 43bd72f..bc777f5 100644
--- a/PVE/Storage/PBSPlugin.pm
+++ b/PVE/Storage/PBSPlugin.pm
@@ -624,7 +624,7 @@ my sub pbs_api_connect {
my $user = $scfg->{username} // 'root at pam';
if (my $tokenid = PVE::AccessControl::pve_verify_tokenid($user, 1)) {
- $params->{apitoken} = "PBSAPIToken=${tokenid}=${password}";
+ $params->{apitoken} = "PBSAPIToken=${tokenid}:${password}";
} else {
$params->{password} = $password;
$params->{username} = $user;
--
2.20.1
More information about the pve-devel
mailing list