From: Marcin Haba Date: Sat, 11 Mar 2023 20:50:51 +0000 (+0100) Subject: baculum: Disable querying API for seeing which authentication methods are supported X-Git-Tag: Release-13.0.3~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9787875ef66f729c75b7f4208966909e791977e;p=thirdparty%2Fbacula.git baculum: Disable querying API for seeing which authentication methods are supported --- diff --git a/gui/baculum/protected/Web/Modules/BaculumAPIClient.php b/gui/baculum/protected/Web/Modules/BaculumAPIClient.php index 61c19cf87..5c5c2e17d 100644 --- a/gui/baculum/protected/Web/Modules/BaculumAPIClient.php +++ b/gui/baculum/protected/Web/Modules/BaculumAPIClient.php @@ -97,8 +97,8 @@ class BaculumAPIClient extends WebModule { if (count($host_cfg) > 0 && $host_cfg['auth_type'] === 'basic') { $userpwd = sprintf('%s:%s', $host_cfg['login'], $host_cfg['password']); curl_setopt($ch, CURLOPT_USERPWD, $userpwd); + curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); } - curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);