You are not logged in.

#1 2023-09-29 14:01:13

nplatis
Member
From: Greece
Registered: 2011-02-22
Posts: 27

[SOLVED] Problem with username from LDAP after update

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

#2 2023-09-30 19:35:39

nplatis
Member
From: Greece
Registered: 2011-02-22
Posts: 27

Re: [SOLVED] Problem with username from LDAP after update

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

Board footer

Powered by FluxBB