Bug 697912 - ipa user-add ignores --gidnumber argument
Summary: ipa user-add ignores --gidnumber argument
Keywords:
Status: CLOSED NEXTRELEASE
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:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-19 15:59 UTC by Tim Niemueller
Modified: 2015-01-04 23:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-20 15:02:34 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 692168 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 692168

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


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