Module: check_mk
Branch: master
Commit: 244a3d43f0a83f28d6f8ee1b4ead908553e72e01
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=244a3d43f0a83f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 14 15:28:28 2019 +0100
7028 LDAP sync: Visibility of Hosts/Services can now be set via default user profile
Change-Id: Ie812a4f43be9481ce4b046a14df61ed0fcea7a5c
---
.werks/7028 | 10 ++++++++++
cmk/gui/plugins/config/base.py | 1 +
cmk/gui/plugins/wato/check_mk_configuration.py | 7 +++++++
3 files changed, 18 insertions(+)
diff --git a/.werks/7028 b/.werks/7028
new file mode 100644
index 0000000..96486c7
--- /dev/null
+++ b/.werks/7028
@@ -0,0 +1,10 @@
+Title: LDAP sync: Visibility of Hosts/Services can now be set via default user profile
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1547476075
+Class: feature
+
+
diff --git a/cmk/gui/plugins/config/base.py b/cmk/gui/plugins/config/base.py
index ce2826c..c553f64 100644
--- a/cmk/gui/plugins/config/base.py
+++ b/cmk/gui/plugins/config/base.py
@@ -299,6 +299,7 @@ user_connections = []
default_user_profile = {
'contactgroups': [],
'roles': ['user'],
+ 'force_authuser': False,
}
lock_on_logon_failures = False
user_idle_timeout = None
diff --git a/cmk/gui/plugins/wato/check_mk_configuration.py
b/cmk/gui/plugins/wato/check_mk_configuration.py
index d48c06e..d7361c7 100644
--- a/cmk/gui/plugins/wato/check_mk_configuration.py
+++ b/cmk/gui/plugins/wato/check_mk_configuration.py
@@ -1895,6 +1895,13 @@ class ConfigVariableDefaultUserProfile(ConfigVariable):
default_value=[],
choices=self._list_contactgroups,
)),
+ ("force_authuser",
+ Checkbox(
+ title=_("Visibility of Hosts/Services"),
+ label=_("Only show hosts and services the user is a contact
for"),
+ help=_("Specifiy the initial setting for an automatically created
user."),
+ default_value=False,
+ ))
]
def _list_roles(self):