Eric Lippmann
662de28f85
License source files as GPL-3.0-or-later
...
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-26 17:49:26 +01:00
Eric Lippmann
298f52456f
Use Pdo\Mysql driver-specific constants
...
Replace deprecated `PDO::MYSQL_*` constant usage with the driver-specific
`Pdo\Mysql::ATTR_*` constants introduced in PHP 8.4.
This prepares the code for PHP 8.5, where accessing MySQL driver constants
through the generic `PDO` class is deprecated.
This change requires a compatibility shim on older PHP versions to provide
`Pdo\Mysql` for runtimes that do not expose the driver-specific class yet. The
shim is provided in `ipl-sql`. As a consequence, the required version of the
Icinga PHP library has been raised.
2026-03-19 22:27:45 +01:00
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
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
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
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
Alexander A. Klimov
fc1f6e13ab
Drop PHP 5.3 support
2018-05-07 11:36:54 +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
Alexander A. Klimov
3889e870a3
Don't require passwords for DB resources
...
fixes #12170
2016-12-11 17:23:14 +01:00
Alexander A. Klimov
e10384770d
DbResourceForm: make the encryption selection a checkbox
...
refs #11115
2016-12-08 17:52:07 +01:00
Alexander A. Klimov
eafb066024
DbResourceForm: make code a bit less redundand
...
refs #11115
2016-12-08 17:30:16 +01:00
Alexander A. Klimov
2e1c1da927
DbResourceForm: move the encryption settings below all others
...
refs #11115
2016-12-08 17:11:15 +01:00
Johannes Meyer
b759ab6f5a
DbResourceForm: Don't show SSL form elements by default
...
Addded additionally a check for PHP 5.4 so that these elements
are not shown for earlier versions.
refs #11115
2016-05-27 15:45:22 +02:00
Johannes Meyer
5e7817cad2
DbResourceForm: Fix initial db type selection
...
refs #11115
2016-05-27 15:42:16 +02:00
Lee Clemens
87e774cb88
Add SSL Support to MySQL resources
...
Signed-off-by: Johannes Meyer <johannes.meyer@netways.de>
2016-05-27 13:15:48 +02:00
Alexander A. Klimov
474803fee4
Change all license headers to only reflect a file's year of creation
...
refs #11000
2016-02-08 15:41:00 +01:00
Eric Lippmann
64783fd10e
Allow to set the character set for database resources
2015-09-29 19:37:36 +02:00
Eric Lippmann
1d382ed149
lib: Optimize imports in the DbResourceForm
2015-09-28 16:30:48 +02:00
Eric Lippmann
2d38eb1650
Document that it's possible to use unix domain sockets for MySQL and PostgreSQL connections
...
fixes #9787
2015-09-28 16:29:01 +02:00
Eric Lippmann
06c6b09863
Set default port for Postgres connections if it's the first available driver
...
refs #9683
2015-09-17 12:46:49 +02:00
Eric Lippmann
4e1543fd34
Make MySQL the default choice when configuring database connections again
2015-09-07 17:23:12 +02:00
Eric Lippmann
61f251d6ad
Allow to configure persistent database connections
2015-09-07 17:08:25 +02:00
Eric Lippmann
65e4d23d89
Require a port only for postgres connections
...
Screw it!
refs #9683
2015-09-07 17:01:09 +02:00
Eric Lippmann
e45140dd86
Don't mess w/ default ports when configuration a database connection
2015-09-07 16:57:43 +02:00
Eric Lippmann
947d5c6190
Don't require to configure a port for database connections
2015-09-07 16:52:54 +02:00
Eric Lippmann
56bef276e0
Allow to create MSSQL and Oracle resources
...
refs #9683
2015-09-07 16:44:35 +02:00
Johannes Meyer
2c4b6eb915
ResourceConfigForm: Replace isValid- with inspectResource()
...
refs #7588
2015-07-24 14:24:11 +02:00
Matthias Jentsch
f4054d575b
Add Inspection API to db connection
...
refs #9641
2015-07-16 15:29:45 +02:00
Johannes Meyer
dc4d1246a9
Fix that the sql port does not change when updating the type of the database
...
fixes #7491
2015-04-07 15:07:36 +02:00
Eric Lippmann
6bae2e0a53
Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL
2015-02-04 10:52:27 +01:00
Eric Lippmann
5b4fab0750
Add license header
...
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann
5fa2e3cfdc
Revert "Add license header"
...
This reverts commit 338d067aba .
2015-02-03 16:16:26 +01:00
Eric Lippmann
338d067aba
Add license header
...
fixes #7788
2015-02-03 15:51:04 +01:00
Johannes Meyer
2d957205ef
Using $this when not in object context, doesn't work.
...
refs #7551
2015-01-19 13:47:53 +01:00
Johannes Meyer
dbd69ba693
Replace t() and mt() with translate() in the application's forms
...
refs #7551
2015-01-19 11:26:23 +01:00
Johannes Meyer
ebf908b1b5
Make db requirement checks more sensitive
...
fixes #7837
2014-12-01 15:38:10 +01:00
Johannes Meyer
7621f6642d
Adjust usages of Icinga\Application\Config
...
refs #7147
2014-11-18 13:11:52 +01:00
Johannes Meyer
ddf2ef5cc9
Remove $request parameter from Form::onSuccess and Form::onRequest
...
fixes #7552
2014-11-14 14:59:29 +01:00
Johannes Meyer
775c20d9ad
Rename namespace Icinga\Form to Icinga\Forms
...
refs #7553
2014-11-14 10:57:14 +01:00
Johannes Meyer
1c4a5ce86f
Leave it up to Icinga\Web\Form to instantiate our own form elements
2014-11-14 10:15:27 +01:00
Johannes Meyer
9d292269b1
Merge branch 'master' into feature/setup-wizard-7163
...
Conflicts:
application/forms/Config/Resource/LdapResourceForm.php
test/php/application/forms/Config/Authentication/LdapBackendFormTest.php
2014-11-11 09:44:11 +01:00
Johannes Meyer
7b99b74ae1
Prefer Icinga\Application\Config instead of Zend_Config
...
refs #7147
2014-11-07 13:53:03 +01:00
Johannes Meyer
ab93969944
Add missing platform checks to DbResourceForm
2014-09-29 14:46:27 +02:00
Johannes Meyer
380ffe45b9
Add some redundancy to get more implicitness
...
Although this commit does not seem reasonable
at first the "big" picture proves its necessity!
refs #7163
2014-09-29 11:20:39 +02:00
Johannes Meyer
0e92e333aa
Make isValid* calls of configuration forms being static
...
This allows a more flexible usage as there is no need to access instance
formdata when validating such configuration.
2014-09-29 11:02:45 +02:00