[Samba] Samba 4 WBC_ERR_DOMAIN_NOT_FOUND
steve
steve at steve-ss.com
Mon Dec 19 00:54:05 MST 2011
On 12/18/2011 11:40 PM, Matthieu Patou wrote:
> On 18/12/2011 22:26, steve wrote:
>> On 12/18/2011 09:28 PM, Matthieu Patou wrote:
>>> On 18/12/2011 14:57, steve wrote:
>>>> Hi everyone
>>>>
>>>> Ubuntu 11.10
>>>> Version 4.0.0alpha18-GIT-23a0343
>>>>
>>>> Added a user called steve2. The first time I used winbind, no
>>>> problems: wbinfo -i steve2 gave me the info I needed for user and
>>>> group.
>>>>
>>>> But now it doesn't work:
>>>> wbinfo -i steve2
>>>> failed to call wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND
>>>> Could not get info for user steve2
>>>>
>>> Are you using the wbinfo of samba 4 ?
>>>
>>>
>>> Matthieu.
>>>
>> Yes
>> I have nothing from Samba 3 installed.
>>
>> BTW, the error is the same on openSUSE 12.1, same GIT.
>>
>> wbinfo works OK first time but fails thereafter.
>>
>> Both installations pass the tests outlined in the wiki for dns and
>> kerberos.
>>
> 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
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
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:(
/etc/nsswitch.conf
passwd: files ldap lsass
group: files ldap lsass
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
Agghh!!
Steve.
More information about the samba
mailing list