[Samba] failed to call wbcGetpwnam/wbcGetgrnam/wbcGetpwsid WBC_ERR_DOMAIN_NOT_FOUND

Rowland Penny rpenny at samba.org
Fri May 26 12:04:44 UTC 2017

On Fri, 26 May 2017 12:21:35 +0100
Alex Matthews via samba <samba at lists.samba.org> wrote:

> >Why do people add stuff to the smb.conf on a DC without really
> >knowing what
> they are doing ???
> Why do people on mailing-lists always treat people who make mistakes
> like children? You patronising..... person....
> Maybe you should consider that this smb.conf has been on a server for
> a long time and that servers roles have changed.

Sorry if I upset you, but you posted a smb.conf from an Samba AD DC and
in most cases, the smb.conf you get from the provision is all you need.

when wbinfo shows users and groups, all this means is that they are in
AD, it does not mean that the Unix OS has any idea who they are.

You never mentioned that you had changed the servers role, not that
this means much, because if you changed the computer from being any
other form of a Samba server to being a DC, you would have had to
remove the smb.conf

If 'getent passwd username' doesn't produce any output, but 'wbinfo -u
| grep username' does, then your problem undoubtedly lies in  
libnss. Do you have the correct libnss_winbind.so in your lib path ?

From what I know about arch, it is based on ubuntu, which is based on
debian, so you should find libnss_winbind.so in /lib/x86_64-linux-gnu

I install these packages on debian:

libpam-winbind libpam-krb5 libnss-winbind

With these installed on a DC, getent works for me.


More information about the samba mailing list