Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Feb 2006 15:53:50 +0100
From:      =?iso-8859-1?Q?Markus_=D6rebrand?= <Markus.Orebrand@operax.com>
To:        <freebsd-security@freebsd.org>
Subject:   LDAP and Linux compatibility
Message-ID:  <33656995C5C5094A983DE84DA649A9244A0046@lulex02.ad.operax.com>

next in thread | raw e-mail | index | archive | help
While this is a fairly old thread, there may still be people looking for
the *correct* answer for this question (at least I were 10 minutes
ago...)

So, the problem is that some applications (acroread7 in this case)
refuse to start when run on a NIS or LDAP (client?), with a message
containing:

GLib-WARNING **: getpwuid_r(): failed due to unknown user id

See more about the problem in previous posts in this thread.

The resolution is to edit /compat/linux/etc/nsswitch.conf, and change

  passwd:     files
  shadow:     files
  group:      files

to:

  passwd:    db files nisplus nis
  shadow:    db files nisplus nis
  group:     db files nisplus nis

LDAP clients should also have 'ldap' after 'nis' in these rows.

By the way, editing /etc/nsswitch.conf is the way to go to set lookup
priorities for PAM in Linux.=20

--
Markus =D6rebrand         Markus.Orebrand@operax.com
Systems Administrator   Operax - Guaranteed QoS




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33656995C5C5094A983DE84DA649A9244A0046>