diff options
author | Martin Basti <mbasti@redhat.com> | 2016-04-14 17:03:51 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-04-15 13:24:34 +0200 |
commit | 93871bf017e1bc5f2c176aa3419278d49fcc003b (patch) | |
tree | 051d7c1d7aac1b7cbb8a6377709e15a27181789a /ipalib | |
parent | 6468a398504d8e4aae94488047f2dafe5b895e1d (diff) | |
download | freeipa-93871bf017e1bc5f2c176aa3419278d49fcc003b.tar.gz freeipa-93871bf017e1bc5f2c176aa3419278d49fcc003b.tar.xz freeipa-93871bf017e1bc5f2c176aa3419278d49fcc003b.zip |
Limit max username length to 255 in config-mod
This value is same as is used in user and stageuser commands.
https://fedorahosted.org/freeipa/ticket/5774
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/config.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/plugins/config.py b/ipalib/plugins/config.py index 848b41e7b..e7b6e791c 100644 --- a/ipalib/plugins/config.py +++ b/ipalib/plugins/config.py @@ -128,6 +128,7 @@ class config(LDAPObject): cli_name='maxusername', label=_('Maximum username length'), minvalue=1, + maxvalue=255, ), IA5Str('ipahomesrootdir', cli_name='homedirectory', |