Commit Graph

402 Commits

Author SHA1 Message Date
Sukhwinder Dhillon 8739a9da73
Fix setup wizard (#5094) 2023-09-07 13:37:10 +02:00
Eric Lippmann 1b91a93e34 Make `host` optional for `oci` database resources
`oci` uses Zend's `Oracle` adapter, which does not use this setting at
all.
2023-09-07 08:51:22 +02:00
Eric Lippmann 0bac6cfe07 Config: Add setting to enable strict CSP 2023-08-24 16:02:06 +02:00
Sukhwinder Dhillon ee9d139a3a PhpDoc: Fix incorrect `@param` and `@return` type hints 2023-08-23 10:53:15 +02:00
Sukhwinder Dhillon c501e3e2e1 AddMemberForm: Fix `Variable '$userName' is probably undefined` 2023-08-23 10:53:14 +02:00
Sukhwinder Dhillon 0198054943 CreateMembershipForm: Fix `Variable '$groupName' is probably undefined` 2023-08-23 10:53:14 +02:00
raviks789 89630bf0de `ResourceConfigForm`: Import class `Zend_Form_Element`
Class `Zend_Form_Element` is the return type of the method `getForceCreationCheckBox()`. Hence the class should be imported.
2023-08-23 10:53:14 +02:00
raviks789 2eb3b6c405 `ResourceConfigForm`: Fix return type for `edit()` and `remove()` methods 2023-08-23 10:53:14 +02:00
Alexander A. Klimov 3784fe80b7 LoggingConfigForm: on Docker default to webserver log 2023-01-24 11:23:34 +01:00
Alexander A. Klimov a3100d378b SshResourceForm: fix XSS by escaping user-defined resource name
in the tooltip of the message shown instead of the private key.
2022-12-01 11:35:11 +01:00
Sukhwinder Dhillon 09d378ab65 ApplicationConfigForm: Remove loop and simplify the code 2022-05-27 14:02:11 +02:00
Sukhwinder Dhillon a250202fa3 ApplicationConfigForm: Remove not required Form elements 2022-05-27 14:02:11 +02:00
Sukhwinder Dhillon aad2419545 Remove obsolete `config_backend` option and not required code
The user preferences backend is now always a `db`.
2022-05-27 14:02:11 +02:00
Johannes Meyer 0d032989e6 Fix style issues in recent security fixes 2022-03-08 15:20:16 +01:00
Johannes Meyer 9883c36841 SshResourceForm: Don't accept `file://...` as private key 2022-02-23 16:41:40 +01:00
Johannes Meyer 16f1f51f66 GeneralConfigForm: Fix error if there's no config.ini 2021-11-02 13:29:36 +01:00
Johannes Meyer 1fd00dcf1c We drop support for the `INI` config backend type with v2.11 2021-07-12 10:35:56 +02:00
Johannes Meyer 0756797fbb Make configuration of custom user-group backends possible
refs #2840
2021-06-18 10:41:39 +02:00
Gianluca Piccolo 1e7f700102 Make configuration of custom user backends possible
refs Icinga/icingaweb2#2840
2021-06-18 10:28:35 +02:00
sukhwinder33445 ab97b6fdf0
Enforce database as configuration backend (#4135) 2021-02-18 12:31:21 +01:00
Valentina Da Rold 0520ed348d Add ConfigFormEventsHook to UserForm.php
Add ConfigFormEventsHook to UserGroupForm.php

Add check in getValues for UserForm.php
2020-06-17 13:30:30 +02:00
Johannes Meyer 6a4b07a0f7 Remove `required => true` from skip validation switches 2020-04-20 14:44:35 +02:00
Johannes Meyer abef0621ff forms: Remove `required => true` from force creation checkboxes 2020-04-20 09:04:04 +02:00
Johannes Meyer e01852f34b Update `required` attribute of all forms
Some were missing it, some were adding it unnecessarily.
Since it's now displayed what's required this needed to
be streamlined.
2020-04-09 14:39:52 +02:00
Johannes Meyer 425699d7b0 forms/Config: Don't call `array_map` without an array 2020-01-13 13:47:37 +01:00
Johannes Meyer 7b488d7f93 swag: Fix violations of PSR-12
PSR-2 has been deprecated and phpcs v3.5.3
now checks for the successor PSR-12
2019-12-04 11:28:08 +01:00
Johannes Meyer 13ad506393 css: Rename class `icinga-forms` to `icinga-form` 2019-07-29 10:17:59 +02:00
Johannes Meyer f841c3d42f Apply icinga form style to remaining form classes 2019-07-29 10:17:59 +02:00
Johannes Meyer 1a030d3d65 LdapResourceForm: Remove hostname validator
It's now done automatically by the connection itself.

refs #3639
2019-04-23 10:56:05 +02:00
Eric Lippmann 403c2d3495
Merge pull request #3481 from marianrh/feature/optionally-disable-mysql-server-certificate-validation
Allow disabling MySQL server certificate validation by setting ssl_do_not_verify_server_cert
2019-02-26 10:39:21 +01:00
Markus Frosch 8c58ad7739 DbResourceForm: Remove default value for host when not required
Mainly used for Oracle

refs #3643
2018-12-12 11:09:10 +01:00
Markus Frosch 2df8132c46 DbConnection: Make host optional for Oracle connections 2018-12-04 15:50:53 +01:00
Markus Frosch 3f782460dc LdapConnection: Add timeout setting with a useful default value 2018-10-16 14:35:50 +02:00
Marian Rainer-Harbach 5e40405a12 Allow disabling MySQL server certificate validation by setting ssl_do_not_verify_server_cert
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2018-07-16 11:41:13 +02:00
Eric Lippmann 47405127d0 Add config to hide/show pplication state messages
refs #2835
2018-07-09 16:28:28 +02:00
Eric Lippmann f9af22e409 Remove unused variable 2018-06-27 09:40:22 +02:00
Uwe Ebel 4b5cf47cce Introduce SQLite resource type
refs #3381

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2018-06-27 09:40:22 +02:00
Eric Lippmann 6c2b4d3982 Revert "Allow to configure persistent database connections"
This reverts commit 61f251d6ad.
2018-06-22 14:46:23 +02:00
Johannes Meyer cece9d7e65 LoggingConfigForm: Fix that the facility is missing without any log config
Also re-sets syslog as the default selection as it's the actual default
without any log config. The previous commit in this file fixed this the
wrong way. (Shame on me..)
2018-06-08 14:21:15 +02:00
Alexander A. Klimov fc1f6e13ab Drop PHP 5.3 support 2018-05-07 11:36:54 +02:00
Alexander A. Klimov 117bcc5962 UserGroupBackendForm: add button "Validate Configuration"
refs #3233
2018-01-19 16:31:24 +01:00
Johannes Meyer 17fa071d73 setup: Don't show logging facility if webserver logging is selected
Syslog used to be the default selection. Now it's the webserver log.
2017-11-27 16:43:51 +01:00
Alexander A. Klimov 9084ce2174 Restore form elements' defaults
refs #2997
2017-10-09 12:05:30 +02:00
Alexander A. Klimov c259fe6e50 Don't override filter or base DN
refs #2997
2017-10-09 11:23:58 +02:00
Alexander A. Klimov a171a14399 LdapBackendForm: move domain discovery from createElements() to isValidPartial()
refs #2997
2017-10-06 16:44:57 +02:00
Alexander A. Klimov 5ef8be2031 LdapBackendForm: move discovery from createElements() to isValidPartial()
refs #2997
2017-10-06 16:16:12 +02:00
Alexander A. Klimov 6ac0f7fe46 LdapBackendForm: fill in the base DN if discovered one
refs #2990
2017-10-06 13:29:55 +02:00
Alexander A. Klimov b7b7796e34 AuthBackendPage: set the subform's defaults before creating it
refs #2990
2017-10-06 13:26:21 +02:00
Michael Friedrich ab364e0fc7 Remove unsupported livestatus functionality
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2017-09-29 10:33:55 +02:00
Uwe Ebel 39838f1606 Add database resource type IBM for DB2
It uses the pdo_ibm driver and Zend Adapter Zend_Db_Adapter_Pdo_Ibm.

Signed-off-by: Markus Frosch <markus.frosch@icinga.com>
2017-09-19 14:32:09 +02:00