Bug 513282 - Error Message Incorrect when Trying to add Group with GID already in use
Summary: Error Message Incorrect when Trying to add Group with GID already in use
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: sssd
Version: 11
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jakub Hrozek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-22 20:14 UTC by Jenny Severance
Modified: 2010-01-12 18:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-12 18:23:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jenny Severance 2009-07-22 20:14:01 UTC
Description of problem:
The error message states the a non-existent group already exists is you try and add a new group with a gid already in use.

Groups in DB:
[root@jennyF11 etc]# ldbsearch -H /var/lib/sss/db/sssd.ldb -b "cn=groups,cn=LOCAL,cn=sysdb"
asq: Unable to register control with rootdse!
# record 1
dn: cn=Groups,cn=LOCAL,cn=sysdb
cn: groups
description: Local POSIX groups
distinguishedName: cn=Groups,cn=LOCAL,cn=sysdb

# record 2
dn: name=group1009,cn=groups,cn=LOCAL,cn=sysdb
objectClass: group
name: group1009
gidNumber: 1009
createTimestamp: 1248293073
member: name=user1009,cn=users,cn=LOCAL,cn=sysdb
distinguishedName: name=group1009,cn=groups,cn=LOCAL,cn=sysdb

# record 3
dn: name=jgalipea,cn=groups,cn=LOCAL,cn=sysdb
objectClass: group
name: jgalipea
gidNumber: 500
createTimestamp: 1248204348
distinguishedName: name=jgalipea,cn=groups,cn=LOCAL,cn=sysdb

# returned 3 records
# 3 entries
# 0 referrals

Error Message:
[root@jennyF11 etc]# sss_groupadd -g 1009 group1008
The group group1008 already exists

Version-Release number of selected component (if applicable):

sssd-debuginfo-0.4.1-1.fc11.i586
sssd-0.4.1-1.fc11.i586

How reproducible:
always

Steps to Reproduce:
1. add a new group and assign a valid gidNumber
2. try to add another group with different name but same gidNumber
3.
  
Actual results:
The group group1008 already exists

Expected results:
Error message stating that the GroupID is already in use

Additional info:

Comment 1 Jenny Severance 2010-01-12 18:43:17 UTC
fix verified automated daily acceptance tests for regression


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