9388 Commits

Author SHA1 Message Date
Johannes Meyer
cee639d689 LdapConnection: Re-apply a query's filter on unfolded rows
refs #10370
2015-11-10 14:03:08 +01:00
Johannes Meyer
e408630e34 LdapConnection: Do not require calling array_flip for method cleanupAttributes()
Seems to be a relict of an earlier implementation..

refs #10370
2015-11-10 13:41:08 +01:00
Johannes Meyer
666e67b405 LdapConnection: Prefer strict checks when utilizing in_array() 2015-11-10 13:17:30 +01:00
Johannes Meyer
6c07881466 FilterChain: Fix and document method listFilterColumns()
refs #10370
2015-11-10 13:16:40 +01:00
Johannes Meyer
7efefc1975 UserController: Use "group" instead of "group_name" for the membership quicksearch
refs #10370
2015-11-10 11:52:54 +01:00
Johannes Meyer
72f3ba1161 LdapUserGroupBackend: Offer "user_name" as filter column instead of "user"
refs #10370
2015-11-10 11:52:06 +01:00
Johannes Meyer
8d04c8548a Do not hardcode action specific parameters to preserve in the FilterEditor
This should only happen for other control parameters or framework
specific stuff. This is still subject to improvement, as this solution is
rather ugly imho..

refs #10370
2015-11-10 11:51:26 +01:00
Johannes Meyer
d56056bba7 LdapUserGroupBackend: Utilize $virtualTables 2015-11-10 09:56:58 +01:00
Johannes Meyer
505f5902c7 LdapUserBackend: Utilize $virtualTables 2015-11-10 09:56:27 +01:00
Johannes Meyer
c416216822 LdapUserGroupBackend: Fix typo in method requireTable()
refs #10370
2015-11-09 16:00:55 +01:00
Johannes Meyer
ffcc2ed56b LdapUserGroupBackend: Fix exception when searching for single chars
refs #10370
2015-11-09 16:00:24 +01:00
Johannes Meyer
4341eef4b1 LdapQuery: Add support for Icinga\Data\Filter
refs #10370
2015-11-09 15:59:48 +01:00
Johannes Meyer
9b826e6e5f Drop class Ldap\Expression and introduce LdapQuery::$nativeFilter
I'm about to add support for our Data\Filter implementation, since it cannot
parse native LDAP filters and a user may have configured such, we need to
differentiate the two types of filter.

refs #10370
2015-11-09 13:04:02 +01:00
Eric Lippmann
62eb767cd5 RPM: Ship Zend Framework as vendor libraries for OpenSUSE and SLES
Afaik, there's no change to distinct OpenSUSE and SLES in spec files. OpenSUSE has Zend Framework packages through the server:monitoring repository available but SLES not. Thus we ship Zend Framework as vendor libraries for both for now.

fixes #10328
2015-11-09 10:45:26 +01:00
mbaschnitzi
2e650f6aa4 Rename moduel.info to module.info
Fix a typo in filename of iframe module info file.

Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>
2015-11-09 09:56:39 +01:00
Benedikt Heine
7b37a0872e Escape < and > to avoid false tags
Signed-off-by: Eric Lippmann <eric.lippmann@netways.de>
2015-11-09 09:55:35 +01:00
Eric Lippmann
c14d33d1e8 Revert "doc: Fix upgrade documentation for 2.0.0"
This reverts commit 20e010bea07df8a37585c9459d999671068d1fbd.

There's a pending PR on GitHub.
2015-11-09 09:55:17 +01:00
Eric Lippmann
ba55ad7c5a monitoring: Fix unhandled service counter in the hosts overview
Group by was wrong.

fixes #10490
2015-11-09 09:55:17 +01:00
Eric Lippmann
b5c8579d0e lib: Fix Url paramter encoding if parameter is a Url object
fixes #10321
2015-11-09 09:55:17 +01:00
Johannes Meyer
1e35a17ec1 DbQuery: Support not equal comparisons with arrays 2015-11-05 15:49:15 +01:00
Johannes Meyer
ff61b8e696 Repository: Fix that conversion rules for statements are applied on queries..
..when calling RepositoryQuery::addFilter().
2015-11-05 14:07:54 +01:00
Johannes Meyer
dd069288e9 DbRepository: Do not attempt to join virtual tables multiple times 2015-11-04 15:59:40 +01:00
Alexander A. Klimov
327cf37326 Command: make $config and $configs protected 2015-11-03 16:11:20 +01:00
Johannes Meyer
48e6bdd6ce RepositoryQuery: Fix that the query is not passed as context in fetchAll() 2015-11-03 14:42:32 +01:00
Johannes Meyer
477af43a2f RepositoryQuery: Properly handle custom aliases when applying value conversion rules 2015-11-03 14:42:32 +01:00
Alexander A. Klimov
e170d5b79a Command::fail(): construct IcingaException printf-like
The first argument of IcingaException::__construct() must be a printf-like format string, but Command::fail() must accept any message string.
2015-11-03 10:45:39 +01:00
Johannes Meyer
71c5fd0bf7 DbRepository: Take virtual columns into consideration when applying aliases 2015-11-02 17:07:02 +01:00
Johannes Meyer
5db8d08729 Repository: Fix that column normalisation is not applied by requireAllQueryColumns() 2015-10-30 15:36:48 +01:00
Johannes Meyer
5dfaa89440 Repository: Pass some more details to conversion methods 2015-10-30 15:35:41 +01:00
Johannes Meyer
a60ad3ecf0 DbRepository: Return the number of affected rows for cud operations 2015-10-30 15:34:57 +01:00
Johannes Meyer
df7a2ee0a9 Repository: Add native support for virtual table names 2015-10-30 15:34:19 +01:00
Johannes Meyer
d32c3d2a52 Merge branch 'bugfix/broken-user-and-group-management-10367'
refs #10367
fixes #10137
fixes #10332
2015-10-29 08:52:31 +01:00
Johannes Meyer
99719bec7d Merge branch 'master' into bugfix/broken-user-and-group-management-10367
Conflicts:
	library/Icinga/Authentication/User/LdapUserBackend.php
	library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php
2015-10-29 08:52:07 +01:00
Johannes Meyer
36340aafa6 Repository: Ensure that we'll internally only work with virtual table names
refs #10367
2015-10-27 13:31:47 +01:00
Thomas Gelf
f88bd525f1 DbConnection: respect charset parameter
refs #10359
2015-10-27 13:21:35 +01:00
Alexander A. Klimov
da744caaef Repair redirect after login
fixes #10287
2015-10-22 16:57:01 +02:00
Alexander A. Klimov
fdb186ec56 Revert "Repair redirect after login"
This reverts commit 6b0b7fbeeac876be6ce41d44d7078eb69aa0f296.
2015-10-22 16:55:40 +02:00
Alexander A. Klimov
6b0b7fbeea Repair redirect after login
fixes #10287
2015-10-22 16:29:37 +02:00
Johannes Meyer
20e010bea0 doc: Fix upgrade documentation for 2.0.0 2015-10-22 09:44:02 +02:00
Johannes Meyer
6707bb990c puppet: Do not replace the authentication.ini if already existing 2015-10-21 15:45:36 +02:00
Johannes Meyer
2928d9a98d Merge branch 'bugfix/user_base_dn-10402'
fixes #10402
2015-10-20 11:30:23 +02:00
Johannes Meyer
0b9a141591 LdapUserGroupBackend: Use the group_base_dn as user_base_dn..
..if neither the config nor the defaults provide a value.

refs #10402
2015-10-20 11:28:18 +02:00
Markus Frosch
33956e02f8 Fix collection of user_base_dn from the UserBackend
Currently the group_base_dn is used, unless a user_base_dn is configured in the group backend.

refs #10402
2015-10-20 10:02:42 +02:00
Johannes Meyer
878bd78587 LdapUserBackend: Unfold the user_name_attribute automatically
This is.. the currently easiest solution. As long as attribute unfolding
is not very performance intensive this solution suffices.

refs #10367
refs #10332
2015-10-16 17:25:42 +02:00
Johannes Meyer
6c313b816e hostssummary.phtml: Fix copy&paste mistakes
fixes #10389
2015-10-16 16:03:25 +02:00
Johannes Meyer
8ed489c637 LdapUserGroupBackend: Add method persistUserName()
refs #10367
refs #10370
2015-10-16 15:28:44 +02:00
Johannes Meyer
58fc87b2e5 Repository: Ensure that we'll internally only work with virtual table names
refs #10367
2015-10-16 14:46:44 +02:00
Johannes Meyer
1b7dc1098c DbUserGroupBackend: Use LEFT JOIN to join the group_membership table
Fixes the issue that groups are not found if they do not have any members
even though they meet the where clause
2015-10-16 13:10:39 +02:00
Johannes Meyer
7ef76932d4 DbRepository: Validate the table when inserting, updating and deleting 2015-10-16 12:36:47 +02:00
Johannes Meyer
33037eebbb Revert "Fix group base DN is erroneously used in place of user base DN"
This reverts commit ac7546d9f2f166a3bebbbb9d5941b2084c1ce00b.
2015-10-16 10:08:14 +02:00