[Samba] Samba 4 WBC_ERR_DOMAIN_NOT_FOUND [solved]

steve steve at steve-ss.com
Tue Dec 20 07:07:22 MST 2011


On 19/12/11 19:24, steve wrote:
> On 19/12/11 19:16, steve wrote:
>> On 19/12/11 11:06, Matthieu Patou wrote:
>>> Hi Steve
>>>>> For me it's ok unless I ask for an unknown user:
>>>>>
>>>>> mat at ares:/usr/local/src/samba4$ ./bin/wbinfo -i administrator
>>>>> TEST\Administrator:*:0:100::/home/TEST/Administrator:/bin/false
>>>>>
>>>>> mat at ares:/usr/local/src/samba4$ ./bin/wbinfo -i ares
>>>>> failed to call wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND
>>>>> Could not get info for user ares
>>>>>
>>>>> mat at ares:/usr/local/src/samba4$ ./bin/wbinfo -i administrator
>>>>> TEST\Administrator:*:0:100::/home/TEST/Administrator:/bin/false
>>>>>
>>>>> mat at ares:/usr/local/src/samba4$ ./bin/wbinfo -u
>>>>> Administrator
>>>>> Guest
>>>>> krbtgt
>>>>> dns-ares
>>>>>
>>>>> mat at ares:/usr/local/src/samba4$ ./bin/wbinfo -i Guest
>>>>> TEST\Guest:*:3000013:3000014::/home/TEST/Guest:/bin/false
>>>>>
>>>>> mat at ares:/usr/local/src/samba4$ ./bin/wbinfo -i dns-ares
>>>>> TEST\dns-ares:*:3000015:100::/home/TEST/dns-ares:/bin/false
>>>>>
>>>>>
>>>>> what wbinfo -u gives on your domain ?
>>>>>
>>>>>
>>>>>> Steve
>>>>>>
>>>>>
>>>>>
>>>> /usr/local/samba/bin is in PATH
>>>>
>>>> steve at hh3:~$ wbinfo -u
>>>> Error looking up domain users
>>>>
>>>> root at hh3:/home/steve# wbinfo -u
>>>> Error looking up domain users
>>>>
>>> What is returned by which wbinfo ?
>>>
>>>
>>>> Some other stuff:
>>>>
>>>> FQDN hh3.site
>>>> domain SITE
>>>>
>>>> steve at hh3:~$  host -t SRV _kerberos._udp.hh3.site.
>>>> _kerberos._udp.hh3.site has SRV record 0 100 88 hh3.hh3.site.
>>>>
>>>> steve at hh3:~$ kinit steve2 at HH3.SITE
>>>> Password for steve2 at HH3.SITE:
>>>> Warning: Your password will expire in 40 days on Sat Jan 28 
>>>> 20:18:06 2012
>>>>
>>>> steve at hh3:~$ host hh3
>>>> hh3.hh3.site has address 192.168.1.3
>>>>
>>>> steve at hh3:~$ smbclient //localhost/home -Usteve2
>>>> Password for [SITE\steve2]:
>>>> smb: \>
>>>>
>>>> steve at hh3:~$ smbclient //hh3/home -Usteve2
>>>> Password for [SITE\steve2]:
>>>> Password for [SITE\steve2]:
>>>> Password for [SITE\steve2]:
>>>> Connection to \\hh3\home failed - NT_STATUS_LOGON_FAILURE
>>>>
>>>> hh3 resolves fine, but hh3 is not resolved when using smbclient.
>>>>
>>>> steve at hh3:~$ smbclient //192.168.1.3/home -Usteve2
>>>> Password for [SITE\steve2]:
>>>> smb: \>
>>>>
>>>> DNS and kerberos seem OK. Is this Samba 4?
>>>>
>>>> Now with everything as root:
>>>>
>>>> root at hh3:/home/steve# smbclient //hh3.site/home -Uadministrator
>>>> Password for [SITE\administrator]:
>>>> Password for [SITE\administrator]:
>>>> Password for [SITE\administrator]:
>>>> Connection to \\hh3.site\home failed - NT_STATUS_LOGON_FAILURE
>>> Increase log level and try to understand what's wrong in your log
>>>>
>>>> root at hh3:/home/steve# smbclient //localhost/home -Uadministrator
>>>> Password for [SITE\administrator]:
>>>> smb: \>
>>>>
>>>> This suggests DNS is failing.
>>>>
>>>> Adding winbind here makes no difference:(
>>>>
>>> It's useless in your problem.
>>>> /etc/nsswitch.conf
>>>>
>>>> passwd: files ldap lsass
>>>> group: files ldap lsass
>>>> hosts:          files dns mdns4_minimal [NOTFOUND=return] mdns4
>>>>
>>>> Agghh!!
>>>> Steve.
>>>>
>>>>
>>>>
>>>
>>>
>> After new install.
>>
>> Works fine up until samba is restarted. That is when wbinfo and all 
>> else fails. Samba does not survive the restart and nothing works 
>> thereafter.
>>
>> Where can I start looking?
>>
>>
>> Thanks, Steve.
>>
> Will start new thread.
>
samba -i -M single does not start winbindd (neither does samba alone) on 
these versions at least.

Start samba -i -M single and winbindd -i -S in separate shells.

Is there a way to be able do this as one command?
Thanks
Steve


More information about the samba mailing list