diff options
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/group.py | 1 | ||||
-rw-r--r-- | ipalib/plugins/user.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/plugins/group.py b/ipalib/plugins/group.py index 49bc8232..b101d128 100644 --- a/ipalib/plugins/group.py +++ b/ipalib/plugins/group.py @@ -119,6 +119,7 @@ class group(LDAPObject): cli_name='gid', label=_('GID'), doc=_('GID (use this option to set it manually)'), + minvalue=1, ), ) diff --git a/ipalib/plugins/user.py b/ipalib/plugins/user.py index ad9805be..d8da3a37 100644 --- a/ipalib/plugins/user.py +++ b/ipalib/plugins/user.py @@ -263,6 +263,7 @@ class user(LDAPObject): Int('gidnumber', label=_('GID'), doc=_('Group ID Number'), + minvalue=1, default_from=lambda uidnumber: uidnumber, autofill=True, ), |