[Bug 214566] Re: nis ignores the order of /etc/nsswitch.conf
Daniel Richard G.
214566 at bugs.launchpad.net
Tue May 9 22:21:12 UTC 2023
Over a decade later, I am seeing this same behavior on Ubuntu
22.04/jammy with nscd 2.35-0ubuntu3.1:
# /etc/nsswitch.conf
passwd: files systemd ldap
I have two users with the same ID (but different usernames, groups,
etc.), one in /etc/passwd (files) and one in LDAP. Doing "getent passwd
$uid" returns the LDAP entry instead of /etc/passwd, which is clearly
not the desired behavior. Stopping nscd causes the query to return the
correct entry.
For what it's worth, the "unscd" package provides a drop-in replacement
for nscd that works correctly.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/214566
Title:
nis ignores the order of /etc/nsswitch.conf
Status in glibc package in Ubuntu:
Confirmed
Bug description:
Binary package hint: nscd
With nscd my user name is the one given by the nis, and not
the one give by /etc/passwd _BUT_ it should:
# /etc/nsswitch.conf
passwd: files nis
group: files nis
Stopping nscd is enough to get things right.
> --- System information. ---
> Architecture: amd64
> Kernel: Linux 2.6.24.4mosix
>
> Debian Release: lenny/sid
> 500 gutsy-updates en.archive.ubuntu.com
> 500 gutsy-security security.ubuntu.com
> 500 gutsy en.archive.ubuntu.com
>
> --- Package information. ---
> Depends (Version) | Installed
> =======================-+-===========
> libc6 (>= 2.6-1) | 2.6.1-1ubuntu10
>
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/214566/+subscriptions
More information about the foundations-bugs
mailing list