Commit Graph

33 Commits

Author SHA1 Message Date
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
Michael Friedrich 1078b7de1a Setup Wizard: Fix missing MySQL error code 1698 handling
refs #2909
2017-08-07 15:14:20 +02:00
Johannes Meyer 181e2ef05c Swag: Fix swag (aka a whole bunch of code style issues..) 2017-01-27 14:48:59 +01:00
Noah Hilverling e9eeb030a6 DbTool: Do not replace '%' with '%%' in method grantPrivileges
fixes #13615
2016-12-15 15:12:19 +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 0bafc944d3 Conform to code style guidelines
refs #11115
2016-12-08 17:09:00 +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
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
Johannes Meyer ded6666897 wizard: Show a warning if the IDO is used for the internal database
resolves #9653
2015-08-28 15:25:40 +02:00
Johannes Meyer e7cfc25b04 DbTool: Add method getServerVersion()
refs #9460
2015-08-18 16:19:01 +02:00
Johannes Meyer 41ebb49c58 DbTool: Add method isConnected()
refs #9460
2015-08-18 16:18:25 +02:00
Johannes Meyer 7305edc74c DbTool: Be less error-prone while calling array_search 2015-07-31 11:04:17 +02:00
Johannes Meyer 56c4fdf8a1 Wizard: Fix db privilege checks, again
The wizard were not able to verify privileges if some or even all
privileges were granted on database level causing it to grant
redundant privileges on table level.
2015-07-03 10:28:09 +02:00
Johannes Meyer 49d4be79ef DbTool: Some coding style fixes 2015-07-02 17:00:04 +02:00
Johannes Meyer 0c1365753e DbTool: Properly escape database wildcards when checking privileges
fixes #9543
2015-07-02 16:58:37 +02:00
Johannes Meyer a21d54460d DbTool: Fix that all mysql privileges were checked regardless of their context
refs #8707
2015-04-13 14:17:18 +02:00
Johannes Meyer e0891aedca DbTool: Add mysql context identifiers for the REFERENCES privilege
Though this privilege is not in use until mysql version 5.7.6 it is registered
as privilege in the privilege tables in earlier versions.

refs #8707
2015-04-13 14:13:02 +02:00
Johannes Meyer d038a2795d Wizard: Differentiate between privileges required to create and setup a db
Fixes the bug that if a database and a login are already existing and only
the schema needs to be set up, which is possible using the resource's login,
the user is required to provide another login with the seemingly missing
privileges.

refs #8707
2015-04-13 14:10:24 +02:00
Johannes Meyer 5c61405a9a Revert "Setup: Fix that the mysql privilege checks are not working in the wizard"
This reverts commit 1835479738.
Operator precedence is a damn useful thing, if known by the developer...
2015-04-13 10:27:10 +02:00
Johannes Meyer 1835479738 Setup: Fix that the mysql privilege checks are not working in the wizard
Missed to commit this yesterday as part of the fix for #8929

refs #8929
2015-04-08 08:55:08 +02:00
Johannes Meyer 2882e2fd5e Setup: Fix that not any privilege checks are working in the wizard
fixes #8929
2015-04-07 16:14:03 +02:00
Alexander Klimov 967a2e82dc Use (only) "@return $this" in fluent interfaces' documentation 2015-04-07 14:24:11 +02:00
Johannes Meyer a8e0b7effc Fix usage of the PostgreSQL system function has_database/table_privilege
On PostgreSQL < 8.4 the system functions has_database_privilege() and
has_table_privilege() do no support comma separated privilege types.

fixes #8354
2015-02-04 13:20:41 +01: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 45408e45af Relax database permission checks in the setup wizard
The wizard considered all permissions being exclusively associated to their
most important context, which is, in the most common case, incorrect.
Permissions assigned on database level do not need to be assigned on
table level as well.

refs #8267
2015-01-26 15:51:47 +01:00
Johannes Meyer 2b2b28915d Fix granting privileges on a mysql host
In case current_user() reports a wildcard identification for the user's
host (e.g. user@%) the percent sign was not escaped causing sprintf
to complain as there were too few arguments in this case.

fixes #7853
2014-12-01 11:00:12 +01:00
Johannes Meyer a288535347 Use the `host' and `port' directives when using a zend adapter in DbTool
fixes #7781
fixes #7798
2014-11-25 16:03:06 +01:00
Johannes Meyer 21ed823da7 Adjust namespace declarations
refs #7163
2014-11-10 16:31:40 +01:00
Johannes Meyer 8f212018ec Move the setup wizard code to a dedicated module
refs #7163
2014-11-10 15:11:44 +01:00