From 16d88d79ad251e353059d18a4020a96e52ee9363 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Thu, 23 Feb 2012 10:25:22 +0100 Subject: Add gidnumber minvalue Do not accept invalid GID values in IPA user/group plugins. https://fedorahosted.org/freeipa/ticket/2335 --- ipalib/plugins/user.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ipalib/plugins/user.py') 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, ), -- cgit