Bug 513284 - Error Message Incorrect when Trying to add User with UID already in use
Error Message Incorrect when Trying to add User with UID already in use
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: sssd (Show other bugs)
11
All Linux
medium Severity low
: ---
: ---
Assigned To: Jakub Hrozek
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-22 16:22 EDT by Jenny Galipeau
Modified: 2010-01-12 13:43 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-01-12 13:24:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Jenny Galipeau 2009-07-22 16:22:33 EDT
Description of problem:
The error message states the a non-existent user already exists is you try and
add a new user with a uid already in use.

Users in DB:
[root@jennyF11 etc]# ldbsearch -H /var/lib/sss/db/sssd.ldb -b "cn=users,cn=LOCAL,cn=sysdb"
asq: Unable to register control with rootdse!
# record 1
dn: name=user1009,cn=users,cn=LOCAL,cn=sysdb
objectClass: user
name: user1009
uidNumber: 1009
gidNumber: 1009
fullName: user1009
gecos: user1009
homeDirectory: /home/user1009
loginShell: /bin/bash
createTimestamp: 1248293077
memberof: name=group1009,cn=groups,cn=LOCAL,cn=sysdb
distinguishedName: name=user1009,cn=users,cn=LOCAL,cn=sysdb

# record 2
dn: name=jgalipea,cn=users,cn=LOCAL,cn=sysdb
objectClass: user
name: jgalipea
uidNumber: 501
gidNumber: 501
fullName: Jenny Galipeau
gecos: Jenny Galipeau
homeDirectory: /home/jgalipea
loginShell: /bin/bash
createTimestamp: 1248203928
distinguishedName: name=jgalipea,cn=users,cn=LOCAL,cn=sysdb

# record 3
dn: cn=Users,cn=LOCAL,cn=sysdb
cn: users
description: Local POSIX users
distinguishedName: cn=Users,cn=LOCAL,cn=sysdb

# returned 3 records
# 3 entries
# 0 referrals

Error message:
[root@jennyF11 etc]# sss_useradd -u 1009 -h /home/user1008 -s /bin/bash user1008
The user user1008 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 user and assign a valid uidNumber
2. try to add another user with different name but same uidNumber
3.
  
Actual results:
The user user1008 already exists

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


Additional info:
Comment 1 Jenny Galipeau 2010-01-12 13:43:45 EST
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.