Commit Graph

149 Commits

Author SHA1 Message Date
Johannes Meyer c5761243c1 Wizard: Apply initial administrative rights for groups
refs #9609
2015-07-30 11:35:28 +02:00
Johannes Meyer ff5142896b AuthenticationStep: We're creating the roles.ini, ultimately 2015-07-30 09:04:33 +02:00
Johannes Meyer ba8d05af85 Wizard: Allow to choose a group for initial administrative access
refs #9609
2015-07-29 17:13:06 +02:00
Johannes Meyer 226caac4f9 Wizard: Clear user group stage data on a auth backend type switch as well
refs #9609
2015-07-29 16:28:41 +02:00
Johannes Meyer 3f7081296b Merge branch 'master' into bugfix/allow-to-configure-how-to-manage-groups-9609 2015-07-29 15:02:20 +02:00
Johannes Meyer f72304a2fa Wizard: Allow to configure a user group backend for LDAP user backends
refs #9609
2015-07-29 14:44:28 +02:00
Johannes Meyer e8af4295b1 Allow to manually validate the configuration in the wizard as well
It's a mess...
2015-07-29 10:52:32 +02:00
Johannes Meyer 107c9ff533 Wizard: Use a unordered list to show requirements instead of nested tables
fixes #9533
2015-07-06 13:37:37 +02:00
Johannes Meyer c8c0e13184 Wizard: Show a textarea on the finish page instead of multiple paragraphs
refs #7911
2015-07-03 16:31:11 +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 3aae1acc97 WebWizard: Validate the db schema correctly
This was being validated successfully no matter whether the
schema actually existed or not...
2015-07-02 17:02:12 +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 3e69ef7e9e WebWizard: Fix condition for page `setup_config_db_resource'
refs #8709
2015-07-02 10:23:27 +02:00
Johannes Meyer ac78661943 WebWizard: Fix documentation 2015-07-02 09:23:09 +02:00
Johannes Meyer 7795ad4f95 WebWizard: Drop preferences page and include ApplicationConfigForm instead
refs #8709
2015-07-01 16:02:40 +02:00
Johannes Meyer f615db01fe WebWizard: Show db resource config right after choosing db as auth type
refs #8709
2015-07-01 14:24:48 +02:00
Johannes Meyer 399bbf0795 AuthenticationStep: Adjust usage of a DbUserBackend's insert capability
refs #8826
2015-05-11 16:01:20 +02:00
Johannes Meyer 6ca68f438d Move concrete UserBackend classes to Icinga\Authentication\User
refs #8826
2015-04-21 12:51:31 +02:00
Johannes Meyer d02c078e4a Wizard: Ensure that privileges are checked only once
Another entry in the "The provided credentials cannot be
used to create the database and/or the user" story...
2015-04-15 09:26:39 +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 b37757ca6e Disable the LdapDiscoveryConfirmPage
As long as the discovery code does not report multiple results, as it should,
actually, it's useless to demand the user to confirm the result.

resolves #8602
refs #8725
refs #8708
2015-03-12 16:14:58 +01:00
Johannes Meyer 39a74c4f3d LDAP-Auth backend config: Add support for custom LDAP filter rules
refs #8365
2015-03-11 09:52:14 +01:00
Johannes Meyer 59f43a0f5e Show module requirements as a separate table
refs #8508
2015-03-10 10:56:05 +01:00
Johannes Meyer c44d5d2a73 Use a custom RecursiveIteratorIterator to render a RequirementSet
refs #8508
2015-03-10 09:31:57 +01:00
Johannes Meyer bc450c573d Refactor and fix requirement evaluation
refs #8508
2015-03-10 09:12:06 +01:00
Johannes Meyer e80786d63d Rename Requirements to RequirementSet
refs #8508
2015-03-09 09:05:56 +01:00
Johannes Meyer 4badbc660b Merge branch 'master' into feature/conditional-requirements-8508 2015-03-09 08:51:03 +01:00
Louis Sautier 003a9be43d Fix external authentication with nginx
fixes #8634

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-03-08 15:32:34 +01:00
Johannes Meyer 2af83e7d72 Installation: Use native form title and description support where appropriate
refs #7947
refs #7976
2015-03-02 18:40:47 +01:00
Johannes Meyer d0a8dd8973 Requirements: Do not implement ArrayIterator but RecursiveIterator
refs #8508
2015-02-26 10:52:39 +01:00
Johannes Meyer 87fe9bd2ff Adjust the web wizard so that all database dependencies are grouped
refs #8508
2015-02-26 10:50:05 +01:00
Johannes Meyer 8ed4a943f7 Add support for nested requirement sets
This allows now to link requirements by an OR condition as well and to nest
such grouped requirements in other sets of type AND, and vice versa.

refs #8508
2015-02-26 10:49:03 +01:00
Johannes Meyer 04630a20be Implement all known requirements as object
refs #8508
2015-02-25 13:39:59 +01:00
Johannes Meyer 24d0999fa4 Register requirements as objects
This neutralizes the need for a unique name per requirement as
requirements are now compared based on their type and condition.
It also allows to implement a solution to add simple conditional
requirements.

refs #8508
2015-02-25 13:38:38 +01: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
Johannes Meyer b712d9453b It's not the "permissions.ini" but the "roles.ini" that holds the role settings 2015-02-03 16:38:32 +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 f5a651664c Create the enabledModules directory when necessary only as well
refs #8219
2015-01-30 16:16:12 +01:00
Johannes Meyer a95fd561cd Revert "setup: Convert octal directory mode to decimal notation"
This reverts commit e93e8f6330.
2015-01-30 15:47:21 +01:00
Johannes Meyer d2dd66c9fd Revert "setup: Fix octdec for directory modes"
This reverts commit c0444a81b2.
2015-01-30 15:47:11 +01:00
Johannes Meyer 6416fc421c Do not create directories which are created automatically if necessary
refs #8219
2015-01-30 15:43:39 +01:00
Johannes Meyer 63305fdf9a Add Icinga\Application\Config::saveIni()
Simplifies saving INI files. Icinga\File\Ini\IniWriter does already require an
instance of Icinga\Application\Config so it's obvious to give "Config" the
task to initialize the writer.. We do also have a central place to handle
creating missing ancestor directories now.

refs #8219
2015-01-30 09:32:08 +01:00
Johannes Meyer 50fc85d7ff Rename authentication type "autologin" to "external"
refs #8274
2015-01-27 09:49:36 +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 0b73dbdd6d Fix exception "Undefined index: type" in the WebWizard's page logic
refs #8275
2015-01-26 10:32:33 +01:00
Johannes Meyer 2a543bb5ae Rename the preference setting `type' to `store'
refs #8234
2015-01-23 16:25:23 +01:00
Johannes Meyer 3040116c12 Combine duplicate requirements
refs #8191
2015-01-22 12:47:18 +01:00
Johannes Meyer 96390d34bf Enable modules as part of the main installation routine
refs #8191
2015-01-21 15:03:34 +01:00
Johannes Meyer 817e4e937c Run module wizards as part of the main application's wizard
A user now chooses right after the start which modules to install and
configures them as part of the main routine.

refs #8191
2015-01-21 14:00:57 +01:00
Johannes Meyer 1f6a81aefb Add Wizard::skipPage()
Required to not to duplicate code in custom wizards and to avoid errors
when detecting the direction.

refs #8191
2015-01-21 13:07:08 +01:00
Johannes Meyer 573c1046bb Ensure that the SummaryPage has a unique name when being utilized
refs #8191
2015-01-21 11:44:44 +01:00
Johannes Meyer b468be2813 Drop the ModulePage
refs #8191
2015-01-21 09:59:48 +01:00
Eric Lippmann c0444a81b2 setup: Fix octdec for directory modes
Modes prefixed w/ zero, e.g. 0775 require a string conversion before calling octdec.
2015-01-19 11:43:38 +01:00
Eric Lippmann 70f080313d setup: Use schema path from setup's config or default
refs #8232
2015-01-19 11:43:38 +01:00
Eric Lippmann ef412688e9 setup: Require to set a path to the schema files
refs #8232
2015-01-19 11:43:38 +01:00
Eric Lippmann e93e8f6330 setup: Convert octal directory mode to decimal notation
PHP's chmod sets wrong permissions when using 2770 as directory mode for example.

fixes #8233
2015-01-16 17:01:41 +01:00
Eric Lippmann d3dcf152fb setup: Do not use umask(0)
chmod is not affected in any way by the umask.
2014-12-30 15:40:06 +01:00
Eric Lippmann 2d69e44846 setup: Set default URL path to /icingaweb2 2014-12-30 14:42:42 +01:00
Eric Lippmann fc05f4d53e setup: Fix the mode of created directories 2014-12-29 17:55:34 +01:00
Eric Lippmann 2bd9d27e05 Do not validate the mode of the setup.token
Relying on the mode of the configuration directory must be sufficient.
2014-12-29 14:33:37 +01:00
Eric Lippmann daaf242145 Fix the default configuration path in our web wizard 2014-12-29 14:33:07 +01:00
Eric Lippmann 19387b24ab Do not use a new function for getting the configuration directory in our web wizard 2014-12-29 14:32:20 +01:00
Johannes Meyer cc9ee93311 Clarify that php-gd is mandatory to export views to PDF
refs #8112
2014-12-18 16:21:25 +01:00
Johannes Meyer bca28a5ae2 Display inline pie-charts also in views exported to PDF
fixes #6463
2014-12-15 13:55:20 +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 d25a3a1704 Show path to the php.ini on the wizard's requirements page
refs #7839
2014-11-26 10:38:39 +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 7621f6642d Adjust usages of Icinga\Application\Config
refs #7147
2014-11-18 13:11:52 +01:00
Johannes Meyer d64ec0aa3c Rename Icinga\Module\Setup\Form to Icinga\Module\Setup\Forms
refs #7553
2014-11-14 11:01:16 +01:00
Eric Lippmann b52adcc2ab Merge branch 'master' into feature/generate-webserver-config-6120 2014-11-13 15:09:34 +01:00
Johannes Meyer 688c016f2d Re-enable requirement checks for Zend_Db_Adapter_*
refs #7464
2014-11-13 14:34:31 +01:00
Johannes Meyer 4595b51318 Remove Zend version check
refs #7464
2014-11-13 14:34:04 +01:00
Eric Lippmann 7c8e9e6f56 CLI/Webserver Setup: Rename webPath to urlPath
This is how the apache docs call it. Nginx speaks of uri.

refs #6120
2014-11-13 14:18:14 +01:00
Eric Lippmann 459fc77fc7 CLI/Webserver Setup: Allow to define Icinga Web 2's configuration directory
refs #6120
2014-11-13 14:05:13 +01:00
Eric Lippmann 0e64a8d573 CLI/Webserver Setup: Prefix URL paths with '/' if missing
refs #6120
2014-11-13 13:47:08 +01:00
Eric Lippmann 8594dc068a CLI/Webserver Setup: Rename publicPath to documentRoot
refs #6120
2014-11-13 13:17:59 +01:00
Eric Lippmann 0d4ed40cb2 CLI/Webserver Setup: Remove sapi stuff becuase it's nowhere used
refs #6120
2014-11-13 13:17:53 +01:00
Eric Lippmann 2ad2127ae3 Merge branch 'master' into feature/generate-webserver-config-6120
Conflicts:
	application/clicommands/SetupCommand.php
2014-11-13 12:50:55 +01:00
Johannes Meyer 79bd743900 Add missing use statement for IcingaException in SetupException 2014-11-12 17:49:05 +01:00
Johannes Meyer c3e28a42fb Remove configuration option for setting the access mode on new files 2014-11-12 09:40:07 +01:00
Johannes Meyer 4992140326 Hardcode the access mode to use when creating files
refs #7163
2014-11-12 09:39:18 +01:00
Johannes Meyer ca66480ba7 Hardcode the access mode to use when creating directories
refs #7163
2014-11-12 09:18:19 +01:00
Johannes Meyer 4974f582d3 Add page titles
refs #7163
2014-11-11 15:27:14 +01:00
Johannes Meyer 79c2758ff5 Require a specific version of the Zend Framework
refs #7163
2014-11-11 14:04:17 +01:00
Johannes Meyer af99f62843 Prefer Icinga\Application\Config over Zend_Config
refs #7163
2014-11-11 12:11:14 +01:00
Johannes Meyer eb4672923f Require the OpenSSL module instead of providing an unsafe fallback
refs #7163
2014-11-11 10:19:09 +01:00
Johannes Meyer e1f75b5f5f Use mt() instead of just t() in the setup module
refs #7163
2014-11-11 09:24:53 +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