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

Alex Matthews ams at stmiss.co.uk
Thu Jun 8 11:20:22 UTC 2017


> You don't have any idmap configuration in that smb.conf.
Correct. That is my idmap configuration.

> At last, there is your problem, you need PAM because you need Unix authentication.
If you set up PAM 'getent passwd testuser' will work.

<bangs head against a brick wall HARD> That is NOT my problem because I am
not trying to get unix auth to work... I am trying to get wbinfo to work
wbinfo and 'getent passwd username' do not require PAM to be configured.

To prove this, I have just created a dummy domain controller and DID NO PAM
CONFIGURATION AT ALL and guess what, 'getent passwd username' works, as do
the wbinfo lines. So will you please stop harping on about PAM. It has
NOTHING to do with this issue. My problem is something deep within samba.
Something has gone AWOL somewhere. I don't believe it is a configuration
issue.

@Louis - Rowland is very good at parroting back meaningless information and
proving that "something should work" however he is utterly useless at
getting to the bottom of an issue, or understand that this MIGHT NOT BE a
configuration issue. I don't know that makes him a "good guy"



On 8 June 2017 at 10:59, Rowland Penny via samba <samba at lists.samba.org>
wrote:

> On Thu, 8 Jun 2017 10:41:39 +0100
> Alex Matthews via samba <samba at lists.samba.org> wrote:
>
> > Rowland - please, don't get in the way of others being constructive to
> > solving this issue. I do not need to know your opinions.
>
> I was being constructive. I will also reply to this and try to be
> constructive.
>
> >
> > Louis - thanks for your responses. I have just updated to 4.6.4 (4.6.5
> > isn't in a repo yet) and run samba-tool testparm. Unfortunately, no
> > issues. It also does not fix the underlying issue.
> >
> > As for your other questions:
> >
> > # getent passwd testuser
> > <nothing>
> >
> > # wbinfo --own-domain
> > SMC
> >
> > # wbinfo --all-domains
> > BUILTIN
> > SMC
> >
> >
> > idmap setup is as I posted in my original post: https://pastebin.com
> > /yWPtWrEF
>
> You don't have any idmap configuration in that smb.conf.
>
> >
> > I do not have an idmap.conf?
>
> it is part of smb.conf
>
> >
> > # cat /etc/nsswitch.conf
> > passwd: compat winbind
> > group: compat winbind
> > <omitted other non-relevant lines>
> >
> > PAM is not configured as I'm not doing any *nix authentication.
>
> At last, there is your problem, you need PAM because you need Unix
> authentication. If you set up PAM 'getent passwd testuser' will work.
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


More information about the samba mailing list