#2335 gid number: 0 and negative number accepted
Closed: Fixed None Opened 12 years ago by mkosek.

https://bugzilla.redhat.com/show_bug.cgi?id=786240 (Red Hat Enterprise Linux 6)

Description of problem:
0 and negative number (-1 ~ -2147483648) are accepted in both WebUI and CLI.



Version-Release number of selected component (if applicable):
ipa-server-2.2.0-101.20120117T0229zgit5febffb.el6.i686


How reproducible: always


Steps to Reproduce:

[yi@apple (RH6.2-i386) src] ipa group-show fs
  Group name: fs
  Description: fdas
  GID: 1475001935
[yi@apple (RH6.2-i386) src] ipa group-show fs
  Group name: fs
  Description: fdas
  GID: -99999999
[yi@apple (RH6.2-i386) src] ipa group-mod --gid=0 fs
-------------------
Modified group "fs"
-------------------
  Group name: fs
  Description: fdas
  GID: 0
[yi@apple (RH6.2-i386) src] ipa group-show fs
  Group name: fs
  Description: fdas
  GID: 0


Actual results:


Expected results:


Additional info:

Patch freeipa-mkosek-223-add-gidnumber-minvalue.patch sent for review

Metadata Update from @mkosek:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/03

7 years ago

Login to comment on this ticket.

Metadata