Source
_('If HTTP authentication is enabled, all users (even with frontend access set to LDAP/Internal) will be authenticated by the web server, not by Zabbix.')
<?php
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/**
* @var CView $this
* @var array $data
*/
$this->addJsFile('class.form.fieldset.collapsible.js');
$this->includeJsFile('administration.authentication.edit.js.php');
$form = (new CForm())
->addItem((new CVar('form_refresh', $data['form_refresh'] + 1))->removeId())
->addItem((new CVar(CSRF_TOKEN_NAME, CCsrfTokenHelper::get('authentication')))->removeId())
->addVar('action', $data['action_submit'])
->addVar('ldap_removed_userdirectoryids', $data['ldap_removed_userdirectoryids'])
->addVar('mfa_removed_mfaids', $data['mfa_removed_mfaids'])
->setId('authentication-form')
->setAttribute('aria-labelledby', CHtmlPage::PAGE_TITLE_ID)
->disablePasswordAutofill();
// Authentication general fields.
$auth_tab = (new CFormGrid())
->addItem([
new CLabel(_('Default authentication')),
new CFormField(
(new CRadioButtonList('authentication_type', (int) $data['authentication_type']))
->addValue(_x('Internal', 'authentication'), ZBX_AUTH_INTERNAL)
->addValue(_('LDAP'), ZBX_AUTH_LDAP)
->setModern(true)
->removeId()
)
])
->addItem([
new CLabel([
_('Deprovisioned users group'),
makeHelpIcon(_('Only disabled group can be set for deprovisioned users.'))
]),
new CFormField(
(new CMultiSelect([
'name' => 'disabled_usrgrpid',
'object_name' => 'usersGroups',
'data' => $data['disabled_usrgrpid_ms'],
'multiple' => false,
'popup' => [
'parameters' => [
'srctbl' => 'usrgrp',
'srcfld1' => 'usrgrpid',
'srcfld2' => 'name',
'dstfrm' => $form->getId(),