Source
CMessageHelper::setErrorTitle(_s('Incorrect value for field "%1$s": %2$s.', $field, _('cannot be empty')));
<?php
/*
** Zabbix
** Copyright (C) 2001-2024 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
class CControllerAuthenticationUpdate extends CController {
/**
* @var CControllerResponseRedirect
*/
private $response;
protected function init() {
$this->response = new CControllerResponseRedirect((new CUrl('zabbix.php'))
->setArgument('action', 'authentication.edit')
->getUrl()
);
}
protected function checkInput() {
$fields = [
'form_refresh' => 'int32',
'ldap_test_user' => 'string',
'ldap_test_password' => 'string',
'ldap_test' => 'in 1',
'db_authentication_type' => 'int32',
'change_bind_password' => 'in 0,1',
'authentication_type' => 'in '.ZBX_AUTH_INTERNAL.','.ZBX_AUTH_LDAP,
'http_case_sensitive' => 'in '.ZBX_AUTH_CASE_INSENSITIVE.','.ZBX_AUTH_CASE_SENSITIVE,
'ldap_case_sensitive' => 'in '.ZBX_AUTH_CASE_INSENSITIVE.','.ZBX_AUTH_CASE_SENSITIVE,
'ldap_configured' => 'in '.ZBX_AUTH_LDAP_DISABLED.','.ZBX_AUTH_LDAP_ENABLED,
'ldap_host' => 'db config.ldap_host',
'ldap_port' => 'int32',
'ldap_base_dn' => 'db config.ldap_base_dn',
'ldap_bind_dn' => 'db config.ldap_bind_dn',
'ldap_search_attribute' => 'db config.ldap_search_attribute',
'ldap_bind_password' => 'db config.ldap_bind_password',
'http_auth_enabled' => 'in '.ZBX_AUTH_HTTP_DISABLED.','.ZBX_AUTH_HTTP_ENABLED,
'http_login_form' => 'in '.ZBX_AUTH_FORM_ZABBIX.','.ZBX_AUTH_FORM_HTTP,
'http_strip_domains' => 'db config.http_strip_domains',
'saml_auth_enabled' => 'in '.ZBX_AUTH_SAML_DISABLED.','.ZBX_AUTH_SAML_ENABLED,
'saml_idp_entityid' => 'db config.saml_idp_entityid',
'saml_sso_url' => 'db config.saml_sso_url',
'saml_slo_url' => 'db config.saml_slo_url',
'saml_username_attribute' => 'db config.saml_username_attribute',
'saml_sp_entityid' => 'db config.saml_sp_entityid',
'saml_nameid_format' => 'db config.saml_nameid_format',