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@ares:/usr/local/src/samba4$ ./bin/wbinfo -i administrator
TEST\Administrator:*:0:100::/home/TEST/Administrator:/bin/false
mat@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@ares:/usr/local/src/samba4$ ./bin/wbinfo -i administrator
TEST\Administrator:*:0:100::/home/TEST/Administrator:/bin/false
mat@ares:/usr/local/src/samba4$ ./bin/wbinfo -u
Administrator
Guest
krbtgt
dns-ares
mat@ares:/usr/local/src/samba4$ ./bin/wbinfo -i Guest
TEST\Guest:*:3000013:3000014::/home/TEST/Guest:/bin/false
mat@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@hh3:~$ wbinfo -u
Error looking up domain users
root@hh3:/home/steve# wbinfo -u
Error looking up domain users
Some other stuff:
FQDN hh3.site
domain SITE
steve@hh3:~$ host -t SRV _kerberos._udp.hh3.site.
_kerberos._udp.hh3.site has SRV record 0 100 88 hh3.hh3.site.
steve@hh3:~$ kinit [email protected]
Password for [email protected]:
Warning: Your password will expire in 40 days on Sat Jan 28 20:18:06 2012
steve@hh3:~$ host hh3
hh3.hh3.site has address 192.168.1.3
steve@hh3:~$ smbclient //localhost/home -Usteve2
Password for [SITE\steve2]:
smb: \>
steve@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@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@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@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.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba