# checking ldap user exists, and is not defined in /etc/passwd
root@bionic-sssd-1807246:~# id testuser1
uid=10001(testuser1) gid=10001 groups=10001,10100
root@bionic-sssd-1807246:~# grep testuser1 /etc/passwd
root@bionic-sssd-1807246:~#
# looping over whoami calls fails eventually as expected by this bug:
testuser1@bionic-sssd-1807246:~$ while /bin/true; do date; whoami || break; echo; sleep 10; done
Wed Jan 30 18:35:20 UTC 2019
testuser1
Wed Jan 30 18:35:30 UTC 2019
testuser1
Wed Jan 30 18:35:40 UTC 2019
whoami: cannot find name for user ID 10001: Unknown error 1432158300
$
Retrying the whoami loop, which this time doesn't fail and has to be aborted:
testuser1@bionic-sssd-1807246:~$ while /bin/true; do date; whoami || break; echo; sleep 10; done
Wed Jan 30 18:37:25 UTC 2019
testuser1
Bionic verification
First, confirming the bug:
# checking ldap user exists, and is not defined in /etc/passwd sssd-1807246: ~# id testuser1 testuser1) gid=10001 groups=10001,10100 sssd-1807246: ~# grep testuser1 /etc/passwd sssd-1807246: ~#
root@bionic-
uid=10001(
root@bionic-
root@bionic-
# looping over whoami calls fails eventually as expected by this bug: bionic- sssd-1807246: ~$ while /bin/true; do date; whoami || break; echo; sleep 10; done
testuser1@
Wed Jan 30 18:35:20 UTC 2019
testuser1
Wed Jan 30 18:35:30 UTC 2019
testuser1
Wed Jan 30 18:35:40 UTC 2019
whoami: cannot find name for user ID 10001: Unknown error 1432158300
$
# Installing the packages from proposed: sssd-1807246: ~# apt-cache policy sssd br.archive. ubuntu. com/ubuntu bionic- proposed/ main amd64 Packages dpkg/status 16.1-1ubuntu1 500 br.archive. ubuntu. com/ubuntu bionic/main amd64 Packages
root@bionic-
sssd:
Installed: 1.16.1-1ubuntu1.1
Candidate: 1.16.1-1ubuntu1.1
Version table:
*** 1.16.1-1ubuntu1.1 500
500 http://
100 /var/lib/
1.
500 http://
Retrying the whoami loop, which this time doesn't fail and has to be aborted: bionic- sssd-1807246: ~$ while /bin/true; do date; whoami || break; echo; sleep 10; done
testuser1@
Wed Jan 30 18:37:25 UTC 2019
testuser1
Wed Jan 30 18:37:35 UTC 2019
testuser1
Wed Jan 30 18:37:45 UTC 2019
testuser1
Wed Jan 30 18:37:55 UTC 2019
testuser1
Wed Jan 30 18:38:05 UTC 2019
testuser1
Wed Jan 30 18:38:15 UTC 2019
testuser1
^C bionic- sssd-1807246: ~$
testuser1@
Bionic verification succeeded.