[Samba] ldapsam:trusted=yes, 'user in passdb, but getpwnam() fails'

TAKAHASHI Motonobu monyo at monyo.com
Tue Jul 12 08:23:21 MDT 2011

From: Joe Steeve <joe_steeve at gmx.net>
Date: Sat, 09 Jul 2011 22:51:52 +0530

> I am working with samba-3.5.6 on Debian Squeeze.
> From the smb.conf(5), I assumed that, by using 'ldapsam:trusted=yes',
> one can avoid touching the NSS/PAM configuration. However, I am getting a:
>   user in passdb, but getpwnam() fails
> in the logs. Is my assumption wrong?

At least You also need to add "ldap" keyword to /etc/nsswitch.conf
properly. PAM configuration is optional.

TAKAHASHI Motonobu <monyo at samba.gr.jp>

More information about the samba mailing list