From 581f5432bff7df909c1d7d7b8a55c5c81282afc0 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 1 Dec 2015 13:02:18 +0100 Subject: topologysuffix: change iparepltopoconfroot API properties Change CLI option, label and type to reflect that it is a only a DN of the suffix. Reviewed-By: Jan Cholasta --- ipalib/plugins/topology.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ipalib/plugins') diff --git a/ipalib/plugins/topology.py b/ipalib/plugins/topology.py index 2c54bbc4d..40f9fa803 100644 --- a/ipalib/plugins/topology.py +++ b/ipalib/plugins/topology.py @@ -5,7 +5,7 @@ import six from ipalib import api, errors -from ipalib import Int, Str, Bool, StrEnum, Flag +from ipalib import Int, Str, Bool, StrEnum, Flag, DNParam from ipalib.plugable import Registry from ipalib.plugins.baseldap import ( LDAPObject, LDAPSearch, LDAPCreate, LDAPDelete, LDAPUpdate, LDAPQuery, @@ -342,12 +342,10 @@ class topologysuffix(LDAPObject): primary_key=True, label=_('Suffix name'), ), - Str( + DNParam( 'iparepltopoconfroot', - maxlength=255, - cli_name='suffix', - label=_('LDAP suffix to be managed'), - normalizer=lambda value: value.lower(), + cli_name='suffix_dn', + label=_('Managed LDAP suffix DN'), ), ) -- cgit