Bug 697887 - FreeIPA is allowing multiple groups to contain the same gidNumber value
Summary: FreeIPA is allowing multiple groups to contain the same gidNumber value
Keywords:
Status: CLOSED DUPLICATE of bug 693483
Alias: None
Product: freeIPA
Classification: Retired
Component: ipa-server
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
: 713569 (view as bug list)
Depends On:
Blocks: 698240 698671
TreeView+ depends on / blocked
 
Reported: 2011-04-19 14:56 UTC by Tim Niemueller
Modified: 2015-01-04 23:48 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
: 698240 698671 (view as bug list)
Environment:
Last Closed: 2011-05-11 18:02:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Tim Niemueller 2011-04-19 14:56:10 UTC
Description of problem:
I had created a user "tim" with UID 800 which was put in the ipausers group. Then I created a group "staff" with GID 800. What I didn't know is that the user creation silently created a group "tim" which also had the GID 800, which I didn't expect.

So I ended up with two groups with GID 800. Doing "id tim" on the console then only shows the numeric GID, not any of the two names.

Version-Release number of selected component (if applicable):
freeipa-server-2.0.0-1.fc15.x86_64


Steps to Reproduce:
1. Create user "test" with UID 800
2. Create group "testgroup" with GID 800
3. Do "ipa group-find" and "ipa group-find --private"
  
Actual results:
Two groups with GID 800 and different names

Expected results:
The creation of the second group should have reported an error.

Comment 1 Martin Kosek 2011-04-20 12:26:01 UTC
Upstream ticket:

https://fedorahosted.org/freeipa/ticket/1183

Comment 2 Jenny Severance 2011-04-20 14:03:24 UTC
This is reproducible:

# ipa user-add --first=Jenny --last=Galipeau --uid=800 --gidnumber=800 jennyg
-------------------
Added user "jennyg"
-------------------
  User login: jennyg
  First name: Jenny
  Last name: Galipeau
  Full name: Jenny Galipeau
  Display name: Jenny Galipeau
  Initials: JG
  Home directory: /home/jennyg
  GECOS field: jennyg
  Login shell: /bin/sh
  Kerberos principal: jennyg@TESTRELM
  UID: 800
  GID: 800

# ipa group-add --desc="test bug 697887" --gid=800 grp697887
-----------------------
Added group "grp697887"
-----------------------
  Group name: grp697887
  Description: test bug 697887
  GID: 800

# id jennyg
uid=800(jennyg) gid=800 groups=800,972400001(ipausers)

Comment 3 Rob Crittenden 2011-05-11 18:02:50 UTC

*** This bug has been marked as a duplicate of bug 693483 ***

Comment 4 Rob Crittenden 2011-06-15 20:45:15 UTC
*** Bug 713569 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.