96 Commits

Author SHA1 Message Date
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
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
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 61f251d6adbceab57752395d50e893d6cda76f98.
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
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
Johannes Meyer
7864450dde LdapResourceForm: Add hostname validation
refs #2645
2017-02-02 11:08:07 +01:00
Johannes Meyer
181e2ef05c Swag: Fix swag (aka a whole bunch of code style issues..) 2017-01-27 14:48:59 +01:00
Eric Lippmann
de94749502 Note that its possible to provide multiple LDAP hosts separated by a space
fixes #11809
2016-12-12 16:42:56 +01: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
Matthias Jentsch
9e40f5f2c7 Remove option to skip certificate validation to prevent insecure configurations
Skipping certificate validation will allow MITM on every single request and not give any real security over just running unencrypted queries. On top of that, there is no way to configure this behavior from within PHP except of setting environment variables, which is really hacky and has side effects on other requests.

fixes #9607
2015-08-19 16:20:33 +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
Matthias Jentsch
cf8b760ade Use Inspection API in LdapResourceForm
refs #9630
2015-07-15 19:33:47 +02:00
Johannes Meyer
a8ac420897 LdapConnection: Establish a connection lazily 2015-07-10 09:51:39 +02:00
Johannes Meyer
c3ad7b211a Ldap\Connection: Rename to LdapConnection
refs #8954
2015-06-24 09:05:29 +02:00
Johannes Meyer
5fd2eb639a LdapResourceForm: Display exact error messages to the user 2015-06-23 14:08:50 +02:00
Matthias Jentsch
42de13a2b9 Merge branch 'feature/ssh-remote-connection-resource-configuration-7595'
resolves #7595
2015-06-15 17:30:42 +02:00
Alexander Fuhr
49589128ef Rename identity_key with private_key in ssh resource
refs #7595
2015-05-28 14:09:13 +02:00
Alexander Fuhr
bf21f55656 Add a new ssh resource form
refs #7595
2015-05-28 10:44:58 +02:00
Eric Lippmann
250f863faa Allow anonymous LDAP binding
fixes #9224
2015-05-22 14:15:59 +02:00
Johannes Meyer
62bb35a71e Fix that the ldap port does not change when updating the encryption to use
fixes #8958
2015-04-07 15:07:36 +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
Johannes Meyer
a3f2d7de7e LdapResourceForm: Translate "None" with a context as it's ambiguous 2015-03-13 08:53:08 +01:00
Eric Lippmann
9f0af662a7 Write none instead of plaintext for unencrypted LDAP resources 2015-03-13 00:47:23 +01:00