Bug 697912

Summary: ipa user-add ignores --gidnumber argument
Product: [Retired] freeIPA Reporter: Tim Niemueller <tim>
Component: ipa-serverAssignee: Rob Crittenden <rcritten>
Status: CLOSED NEXTRELEASE QA Contact: Chandrasekar Kannan <ckannan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: benl, dpal, jgalipea, mkosek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-20 15:02:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tim Niemueller 2011-04-19 15:59:49 UTC
Description of problem:
We want to assign a specific group to new users, e.g. "staff". But adding the --gidnumber argument has no effect, the GID is always set to the UID of the user.


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


Additional info (console log demonstrating the problem):
[root@threepwood ~]# ipa group-add --gid=810 testgroup
Description: Test Group
-----------------------
Added group "testgroup"
-----------------------
  Group name: testgroup
  Description: Test Group
  GID: 810
[root@threepwood ~]# ipa user-add --first=Test --last=User --cn="Test User" --homedir=/home/testuser --shell=/bin/bash --uid=805 --gidnumber=810 testuser
---------------------
Added user "testuser"
---------------------
  User login: testuser
  First name: Test
  Last name: User
  Full name: Test User
  Display name: Test User
  Initials: TU
  Home directory: /home/testuser
  GECOS field: testuser
  Login shell: /bin/bash
  Kerberos principal: testuser@REALM
  UID: 805
  GID: 805
[root@threepwood ~]# ipa user-show --all testuser
  dn: uid=testuser,cn=users,cn=accounts,dc=,dc=,dc=de
  User login: testuser
  First name: Test
  Last name: User
  Full name: Test User
  Display name: Test User
  Initials: TU
  Home directory: /home/testuser
  GECOS field: testuser
  Login shell: /bin/bash
  Kerberos principal: testuser@REALM
  UID: 805
  GID: 805
  Account disabled: False
  Member of groups: ipausers
  ipauniqueid: REMOVED
  krbpwdpolicyreference: cn=global_policy,cn=REALM,cn=kerberos,dc=,dc=,dc=de
  objectclass: top, person, organizationalperson, inetorgperson, inetuser, posixaccount, krbprincipalaux, krbticketpolicyaux, ipaobject

Comment 1 Martin Kosek 2011-04-20 12:54:30 UTC
This issue was fixed in the upstream, it should be included in next Fedora FreeIPA release.

Upstream ticket:

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