You are not logged in.
I manage a lab of PCs on which users authenticate via LDAP. Today I updated them after some months, and a strange problem with usernames occurs.
I login on the console and I receive a message "whoami: cannot find name for user ID <myid>". Otherwise the login is successful, and, for example, "who" shows my username correctly. Probably for the same reason, I cannot ssh into the machine, nor can I login to XFCE.
Even more strangely, I asked a student to login to the console, and for him "whoami" returned a different username than his own!
I do not use SSSD. The PCs that are not yet updated still work fine.
Any hints on what to look for?
Last edited by nplatis (2023-09-30 19:36:39)
Offline
Apparently, the problem was due to the removal of nscd from glibc. I installed and configured sssd, and everything works again.
I really cannot find an explanation for this, these are supposed to only cache things, not be required for LDAP authentication to work.
Last edited by nplatis (2023-09-30 19:37:02)
Offline