summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2015-07-07 09:36:32 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-08 00:09:09 +0200
commit62e8002bc43ddd890c3db35a123cb7daf35e3121 (patch)
treefc494dfa37912aaff911f825e4ea702ecd3e3fcb /ipalib
parent25d1afdc54284c6bcf1caf08beae2e66ceb7f4e8 (diff)
downloadfreeipa-62e8002bc43ddd890c3db35a123cb7daf35e3121.tar.gz
freeipa-62e8002bc43ddd890c3db35a123cb7daf35e3121.tar.xz
freeipa-62e8002bc43ddd890c3db35a123cb7daf35e3121.zip
Hide topology and domainlevel features
* Hide topology and domainlevel commands in the CLI * Hide topology and domainlevel in the WebUI * Set maximum allowed domain level to 0 * Do not configure and enable the topology plugin https://fedorahosted.org/freeipa/ticket/5097 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/constants.py2
-rw-r--r--ipalib/plugins/domainlevel.py2
-rw-r--r--ipalib/plugins/topology.py11
3 files changed, 14 insertions, 1 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py
index a062505c3..fac937b5d 100644
--- a/ipalib/constants.py
+++ b/ipalib/constants.py
@@ -234,4 +234,4 @@ IPA_ANCHOR_PREFIX = ':IPA:'
SID_ANCHOR_PREFIX = ':SID:'
MIN_DOMAIN_LEVEL = 0
-MAX_DOMAIN_LEVEL = 1
+MAX_DOMAIN_LEVEL = 0
diff --git a/ipalib/plugins/domainlevel.py b/ipalib/plugins/domainlevel.py
index 64e383006..9012a3203 100644
--- a/ipalib/plugins/domainlevel.py
+++ b/ipalib/plugins/domainlevel.py
@@ -74,6 +74,7 @@ def get_master_entries(ldap, api):
@register()
class domainlevel_get(Command):
__doc__ = _('Query current Domain Level.')
+ NO_CLI = True
has_output = domainlevel_output
@@ -90,6 +91,7 @@ class domainlevel_get(Command):
@register()
class domainlevel_set(Command):
__doc__ = _('Change current Domain Level.')
+ NO_CLI = True
has_output = domainlevel_output
diff --git a/ipalib/plugins/topology.py b/ipalib/plugins/topology.py
index de5ceb975..574e0d7ed 100644
--- a/ipalib/plugins/topology.py
+++ b/ipalib/plugins/topology.py
@@ -41,6 +41,7 @@ class topologysegment(LDAPObject):
"""
Topology segment.
"""
+ NO_CLI = True
parent_object = 'topologysuffix'
container_dn = api.env.container_topology
object_name = _('segment')
@@ -195,6 +196,7 @@ class topologysegment(LDAPObject):
class topologysegment_find(LDAPSearch):
__doc__ = _('Search for topology segments.')
+ NO_CLI = True
msg_summary = ngettext(
'%(count)d segment matched',
'%(count)d segments matched', 0
@@ -205,6 +207,7 @@ class topologysegment_find(LDAPSearch):
class topologysegment_add(LDAPCreate):
__doc__ = _('Add a new segment.')
+ NO_CLI = True
msg_summary = _('Added segment "%(value)s"')
def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options):
@@ -218,6 +221,7 @@ class topologysegment_add(LDAPCreate):
class topologysegment_del(LDAPDelete):
__doc__ = _('Delete a segment.')
+ NO_CLI = True
msg_summary = _('Deleted segment "%(value)s"')
def pre_callback(self, ldap, dn, *keys, **options):
@@ -230,6 +234,7 @@ class topologysegment_del(LDAPDelete):
class topologysegment_mod(LDAPUpdate):
__doc__ = _('Modify a segment.')
+ NO_CLI = True
msg_summary = _('Modified segment "%(value)s"')
def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options):
@@ -244,6 +249,7 @@ class topologysegment_reinitialize(LDAPQuery):
__doc__ = _('Request a full re-initialization of the node '
'retrieving data from the other node.')
+ NO_CLI = True
has_output = output.standard_value
msg_summary = _('%(value)s')
@@ -315,6 +321,7 @@ class topologysegment_reinitialize(LDAPQuery):
@register()
class topologysegment_show(LDAPRetrieve):
__doc__ = _('Display a segment.')
+ NO_CLI = True
@register()
@@ -322,6 +329,7 @@ class topologysuffix(LDAPObject):
"""
Suffix managed by the topology plugin.
"""
+ NO_CLI = True
container_dn = api.env.container_topology
object_name = _('suffix')
object_name_plural = _('suffices')
@@ -352,6 +360,7 @@ class topologysuffix(LDAPObject):
class topologysuffix_find(LDAPSearch):
__doc__ = _('Search for topology suffices.')
+ NO_CLI = True
msg_summary = ngettext(
'%(count)d topology suffix matched',
'%(count)d topology suffices matched', 0
@@ -403,6 +412,7 @@ class topologysuffix_mod(LDAPUpdate):
@register()
class topologysuffix_show(LDAPRetrieve):
__doc__ = _('Show managed suffix.')
+ NO_CLI = True
@register()
@@ -416,6 +426,7 @@ Checks done:
2. check if servers don't have more than the recommended number of
replication agreements
''')
+ NO_CLI = True
def execute(self, *keys, **options):