#214 sss_useradd fails when MPG already exists - and returns incorrect error message
Closed: Fixed None Opened 14 years ago by jgalipea.

Description[[BR]]
If you add a group manually with group "user2000", and subsequently add a user "user2000" an error message is returned stating a user with that uid already exists - but it doesn't.[[BR]]

Steps To Reproduce[[BR]]
1. install and configure for local domain.[[BR]]
2. sss_groupadd -g 1000 user1000[[BR]]
3. sss_useradd -u 1000 user1000[[BR]]

Expected:[[BR]]
User added successfully.[[BR]]

Actual:[[BR]]
User not added and incorrect error message returned:[[BR]]
A user with the same name or UID already exists


I disagree with the expected behavior. This should fail, as it does, but the message should probably read "A user or group with the same name or UID already exists"

Lowering priority as this is an error message bug, not a functionality bug.

owner: somebody => jhrozek
priority: major => trivial
tests: 0 => 1
testsupdated: 1 => 0

Fields changed

status: new => assigned

Fixed in 62aa4da

fixedin: => 0.7.0
resolution: => fixed
status: assigned => closed

although trival - I think it would benefit the admin to understand what the issue is so they can correct it ... similar to the shadow utils:

[root@localhost home]# groupadd test
[root@localhost home]# useradd test
useradd: group test exists - if you want to add this user to that group, use -g.

resolution: fixed =>
status: closed => reopened

after chatting with sgallagh about the existence of user private groups, agree that the current error message is the best message to provide to an admin in this situation. closing issue as resolved.

resolution: => fixed
status: reopened => closed

Fields changed

tests: 1 => 0

Fields changed

testsupdated: 0 => 1

Fields changed

rhbz: => 0

Metadata Update from @jgalipea:
- Issue assigned to jhrozek
- Issue set to the milestone: SSSD 1.0

7 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/1256

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata