mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
Polish ipa config help
Remove config-mod options help from config module help to keep the option doc on one place and without unnecessary redundancy. The new format is more consistent with the rest of the plugins. Also fix several inconsistencies in the labels/doc, including: - using abbreviation when not needed - using '.' at the end of options help https://fedorahosted.org/freeipa/ticket/1906
This commit is contained in:
parent
e97f9cc844
commit
62c110a3b8
6
API.txt
6
API.txt
@ -443,12 +443,12 @@ arg: Str('request_id', flags=['no_create', 'no_update', 'no_search'], label=Gett
|
||||
output: Output('result', None, None)
|
||||
command: config_mod
|
||||
args: 0,19,3
|
||||
option: Int('ipamaxusernamelength', attribute=True, autofill=False, cli_name='maxusername', label=Gettext('Max. username length', domain='ipa', localedir=None), minvalue=1, multivalue=False, required=False)
|
||||
option: Int('ipamaxusernamelength', attribute=True, autofill=False, cli_name='maxusername', label=Gettext('Maximum username length', domain='ipa', localedir=None), minvalue=1, multivalue=False, required=False)
|
||||
option: IA5Str('ipahomesrootdir', attribute=True, autofill=False, cli_name='homedirectory', label=Gettext('Home directory base', domain='ipa', localedir=None), multivalue=False, required=False)
|
||||
option: Str('ipadefaultloginshell', attribute=True, autofill=False, cli_name='defaultshell', label=Gettext('Default shell', domain='ipa', localedir=None), multivalue=False, required=False)
|
||||
option: Str('ipadefaultprimarygroup', attribute=True, autofill=False, cli_name='defaultgroup', label=Gettext('Default users group', domain='ipa', localedir=None), multivalue=False, required=False)
|
||||
option: Str('ipadefaultemaildomain', attribute=True, autofill=False, cli_name='emaildomain', label=Gettext('Default e-mail domain for new users', domain='ipa', localedir=None), multivalue=False, required=False)
|
||||
option: Int('ipasearchtimelimit', validate_searchtimelimit, attribute=True, autofill=False, cli_name='searchtimelimit'('Max. amount of time (sec.) for a search (> 0, or -1 for unlimited).', domain='ipa', localedir=None), label=Gettext('Search time limit', domain='ipa', localedir=None), minvalue=-1, multivalue=False, required=False)
|
||||
option: Str('ipadefaultemaildomain', attribute=True, autofill=False, cli_name='emaildomain', label=Gettext('Default e-mail domain', domain='ipa', localedir=None), multivalue=False, required=False)
|
||||
option: Int('ipasearchtimelimit', validate_searchtimelimit, attribute=True, autofill=False, cli_name='searchtimelimit'('Maximum amount of time (sec.) for a search (> 0, or -1 for unlimited)', domain='ipa', localedir=None), label=Gettext('Search time limit', domain='ipa', localedir=None), minvalue=-1, multivalue=False, required=False)
|
||||
option: Int('ipasearchrecordslimit', attribute=True, autofill=False, cli_name='searchrecordslimit', label=Gettext('Search size limit', domain='ipa', localedir=None), minvalue=-1, multivalue=False, required=False)
|
||||
option: IA5Str('ipausersearchfields', attribute=True, autofill=False, cli_name='usersearch', label=Gettext('User search fields', domain='ipa', localedir=None), multivalue=False, required=False)
|
||||
option: IA5Str('ipagroupsearchfields', attribute=True, autofill=False, cli_name='groupsearch', label='Group search fields', multivalue=False, required=False)
|
||||
|
@ -29,42 +29,15 @@ OPERATIONAL_ATTRIBUTES = ('nsaccountlock', 'member', 'memberof',
|
||||
'memberindirect', 'memberofindirect',)
|
||||
|
||||
__doc__ = _("""
|
||||
Manage the IPA configuration
|
||||
Server configuration
|
||||
|
||||
Manage the default values that IPA uses and some of its tuning parameters.
|
||||
|
||||
To show the current configuration:
|
||||
ipa config-show
|
||||
NOTES:
|
||||
|
||||
To modify the configuration:
|
||||
ipa config-mod --maxusername=99
|
||||
|
||||
The available options are:
|
||||
|
||||
User management options:
|
||||
|
||||
--maxusername=INT Max. username length when creating/modifying a user
|
||||
--homedirectory=STR Default location of home directories (default /home)
|
||||
--defaultshell=STR Default shell for new users (default /bin/sh)
|
||||
--defaultgroup=STR Default group for new users (default ipausers). The
|
||||
group must exist, or adding new users will fail.
|
||||
--emaildomain=STR Default e-mail domain for new users
|
||||
|
||||
Search tuning options. These impact how much data is searched through and
|
||||
how many records may be returned on a given search.
|
||||
|
||||
--searchtimelimit=INT Max. amount of time (sec.) for a search (> 0, or -1 for
|
||||
unlimited)
|
||||
--searchrecordslimit=INT Max. number of records to search (-1 is unlimited)
|
||||
|
||||
Server Configuration.
|
||||
|
||||
--enable-migration=BOOL Enable migration mode
|
||||
--pwdexpnotify=INT Password Expiration Notification (days)
|
||||
|
||||
The password notification value is stored here so it will be replicated.
|
||||
It is not currently used to notify users in advance of an expiring
|
||||
password.
|
||||
The password notification value (--pwdexpnotify) is stored here so it will
|
||||
be replicated. It is not currently used to notify users in advance of an
|
||||
expiring password.
|
||||
|
||||
Some attributes are read-only, provided only for information purposes. These
|
||||
include:
|
||||
@ -73,6 +46,26 @@ Certificate Subject base: the configured certificate subject base,
|
||||
e.g. O=EXAMPLE.COM. This is configurable only at install time.
|
||||
Password plug-in features: currently defines additional hashes that the
|
||||
password will generate (there may be other conditions).
|
||||
|
||||
EXAMPLES:
|
||||
|
||||
Show basic server configuration:
|
||||
ipa config-show
|
||||
|
||||
Show all configuration options:
|
||||
ipa config-show --all
|
||||
|
||||
Change maximum username length to 99 characters:
|
||||
ipa config-mod --maxusername=99
|
||||
|
||||
Increase default time and size limits for maximum IPA server search:
|
||||
ipa config-mod --searchtimelimit=10 --searchrecordslimit=2000
|
||||
|
||||
Set default user e-mail domain:
|
||||
ipa config-mod --emaildomain=example.com
|
||||
|
||||
Enable migration mode to make "ipa migrate-ds" command operational:
|
||||
ipa config-mod --enable-migration=TRUE
|
||||
""")
|
||||
|
||||
def validate_searchtimelimit(ugettext, limit):
|
||||
@ -99,82 +92,82 @@ class config(LDAPObject):
|
||||
takes_params = (
|
||||
Int('ipamaxusernamelength?',
|
||||
cli_name='maxusername',
|
||||
label=_('Max. username length'),
|
||||
label=_('Maximum username length'),
|
||||
minvalue=1,
|
||||
),
|
||||
IA5Str('ipahomesrootdir?',
|
||||
cli_name='homedirectory',
|
||||
label=_('Home directory base'),
|
||||
doc=_('Default location of home directories.'),
|
||||
doc=_('Default location of home directories'),
|
||||
),
|
||||
Str('ipadefaultloginshell?',
|
||||
cli_name='defaultshell',
|
||||
label=_('Default shell'),
|
||||
doc=_('Default shell for new users.'),
|
||||
doc=_('Default shell for new users'),
|
||||
),
|
||||
Str('ipadefaultprimarygroup?',
|
||||
cli_name='defaultgroup',
|
||||
label=_('Default users group'),
|
||||
doc=_('Default group for new users.'),
|
||||
doc=_('Default group for new users'),
|
||||
),
|
||||
Str('ipadefaultemaildomain?',
|
||||
cli_name='emaildomain',
|
||||
label=_('Default e-mail domain for new users'),
|
||||
doc=_('Default e-mail domain new users.'),
|
||||
label=_('Default e-mail domain'),
|
||||
doc=_('Default e-mail domain'),
|
||||
),
|
||||
Int('ipasearchtimelimit?', validate_searchtimelimit,
|
||||
cli_name='searchtimelimit',
|
||||
label=_('Search time limit'),
|
||||
doc=_('Max. amount of time (sec.) for a search (> 0, or -1 for unlimited).'),
|
||||
doc=_('Maximum amount of time (seconds) for a search (> 0, or -1 for unlimited)'),
|
||||
minvalue=-1,
|
||||
),
|
||||
Int('ipasearchrecordslimit?',
|
||||
cli_name='searchrecordslimit',
|
||||
label=_('Search size limit'),
|
||||
doc=_('Max. number of records to search (-1 is unlimited).'),
|
||||
doc=_('Maximum number of records to search (-1 is unlimited)'),
|
||||
minvalue=-1,
|
||||
),
|
||||
IA5Str('ipausersearchfields?',
|
||||
cli_name='usersearch',
|
||||
label=_('User search fields'),
|
||||
doc=_('A comma-separated list of fields to search when searching for users.'),
|
||||
doc=_('A comma-separated list of fields to search in when searching for users'),
|
||||
),
|
||||
IA5Str('ipagroupsearchfields?',
|
||||
cli_name='groupsearch',
|
||||
label='Group search fields',
|
||||
doc=_('A comma-separated list of fields to search when searching for groups.'),
|
||||
doc=_('A comma-separated list of fields to search in when searching for groups'),
|
||||
),
|
||||
Bool('ipamigrationenabled?',
|
||||
cli_name='enable_migration',
|
||||
label=_('Enable migration mode'),
|
||||
doc=_('Enable migration mode.'),
|
||||
doc=_('Enable migration mode'),
|
||||
),
|
||||
Str('ipacertificatesubjectbase?',
|
||||
cli_name='subject',
|
||||
label=_('Certificate Subject base'),
|
||||
doc=_('Base for certificate subjects (OU=Test,O=Example).'),
|
||||
doc=_('Base for certificate subjects (OU=Test,O=Example)'),
|
||||
flags=['no_update'],
|
||||
),
|
||||
List('ipagroupobjectclasses?',
|
||||
cli_name='groupobjectclasses',
|
||||
label=_('Default group objectclasses'),
|
||||
doc=_('Default group objectclasses (comma-separated list).'),
|
||||
doc=_('Default group objectclasses (comma-separated list)'),
|
||||
),
|
||||
List('ipauserobjectclasses?',
|
||||
cli_name='userobjectclasses',
|
||||
label=_('Default user objectclasses'),
|
||||
doc=_('Default user objectclasses (comma-separated list).'),
|
||||
doc=_('Default user objectclasses (comma-separated list)'),
|
||||
),
|
||||
Int('ipapwdexpadvnotify?',
|
||||
cli_name='pwdexpnotify',
|
||||
label=_('Password Expiration Notification (days)'),
|
||||
doc=_('Number of days\'s notice of impending password expiration.'),
|
||||
doc=_('Number of days\'s notice of impending password expiration'),
|
||||
minvalue=0,
|
||||
),
|
||||
Str('ipaconfigstring?',
|
||||
cli_name='ipaconfigstring',
|
||||
label=_('Password plugin features'),
|
||||
doc=_('Extra hashes to generate in password plug-in.'),
|
||||
doc=_('Extra hashes to generate in password plug-in'),
|
||||
flags=['no_update'],
|
||||
),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user