mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Produce better error in group-add command.
https://fedorahosted.org/freeipa/ticket/4611 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
parent
e28eb13907
commit
b032debd23
@ -287,7 +287,7 @@ class group_add(LDAPCreate):
|
||||
if options['external']:
|
||||
entry_attrs['objectclass'].append('ipaexternalgroup')
|
||||
if 'gidnumber' in options:
|
||||
raise errors.RequirementError(name='gid')
|
||||
raise errors.MutuallyExclusiveError(reason=_('gid cannot be set for external group'))
|
||||
elif not options['nonposix']:
|
||||
entry_attrs['objectclass'].append('posixgroup')
|
||||
if not 'gidnumber' in options:
|
||||
|
Loading…
Reference in New Issue
Block a user