Don't use AUTH_HASH_IPS when talking to zmu as it doesn't support that at this time.

This commit is contained in:
Isaac Connor 2021-08-26 10:45:36 -04:00
parent 7c1c8482c6
commit dbe16a9cb4
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ class MonitorsController extends AppController {
if ($mToken) { if ($mToken) {
$auth = ' -T '.$mToken; $auth = ' -T '.$mToken;
} else if (ZM_AUTH_RELAY == 'hashed') { } 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') { } else if (ZM_AUTH_RELAY == 'plain') {
# Plain requires the plain text password which must either be in request or stored in session # 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');; $password = $this->request->query('pass') ? $this->request->query('pass') : $this->request->data('pass');;