#86 sss_useradd: Segmentation Fault Trying to add user with uidNumber below minId
Closed: Fixed Opened by jgalipea.

If you try and add a user and define the uidNumber less than minimum value allowed, sss_useradd produces Segmentation Fault

  1. Set minID=1000 for the LOCAL domain
  2. sss_useradd -u 999 -h /home/user999 -s /bin/bash user999

DEBUG:

Core was generated by `sss_useradd -u 999 -h /home/user999 -s /bin/bash user999'.
Program terminated with signal 11, Segmentation fault.
[New process 21838]

0 0x0804bc68 in main (argc=8, argv=0xbfe460e4) at tools/sss_useradd.c:297

297 APPEND_PARAM(command, USERADD_UID_MIN, ctx->domain->id_min);
(gdb) bt

0 0x0804bc68 in main (argc=8, argv=0xbfe460e4) at tools/sss_useradd.c:297

(gdb) quit


version on F11:
sssd-0.4.1-1.fc11.i586

version on RHEL:
sssd-0.4.90-0.el5.i386.rpm

Fields changed

owner: somebody => jhrozek
status: new => assigned

Fields changed

priority: major => critical

Fixed with 7fb74edcde011adef137357c916494409a94f1a1

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

Fields changed

doc: => 0
docupdated: => 0
tests: => 1
testsupdated: => 0

Fields changed

tests: 1 => 0
testsupdated: 0 => 1

Fields changed

rhbz: => 0

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

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/1128

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.

Metadata