From dbe16a9cb49e723b0d13b09866f7f5079a8ad47a Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 26 Aug 2021 10:45:36 -0400 Subject: [PATCH] Don't use AUTH_HASH_IPS when talking to zmu as it doesn't support that at this time. --- web/api/app/Controller/MonitorsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api/app/Controller/MonitorsController.php b/web/api/app/Controller/MonitorsController.php index 110f590a6..07098623e 100644 --- a/web/api/app/Controller/MonitorsController.php +++ b/web/api/app/Controller/MonitorsController.php @@ -266,7 +266,7 @@ class MonitorsController extends AppController { if ($mToken) { $auth = ' -T '.$mToken; } else if (ZM_AUTH_RELAY == 'hashed') { - $auth = ' -A '.calculateAuthHash(ZM_AUTH_HASH_IPS?$_SERVER['REMOTE_ADDR']:''); + $auth = ' -A '.calculateAuthHash(''); # Can't do REMOTE_IP because zmu doesn't normally have access to it. } else if (ZM_AUTH_RELAY == 'plain') { # Plain requires the plain text password which must either be in request or stored in session $password = $this->request->query('pass') ? $this->request->query('pass') : $this->request->data('pass');;