[Samba] net ads and wbinfo are painfully slow -- but they work
Chris Stankevitz
chrisstankevitz at gmail.com
Tue Jan 31 22:24:09 UTC 2017
On Tue, Jan 31, 2017 at 12:36 PM, Rowland Penny via samba
<samba at lists.samba.org> wrote:
> time net ads testjoin
> Join is OK
>
> real 0m0.476s
> user 0m0.108s
> sys 0m0.008s
Yes, I know... I have a similar setup (same version of samba, same
hardware, same OS but a different windows domain on a different
network) that is working fine.
> Is the Windows AD DC running a dns server ?
> Does the Unix client have the AD DC as its nameserver ?
Yes and yes. If I didn't have that, I'm not sure how samba could have
joined the domain given my configuration. (But I don't understand
what is going on under the hood.)
> Can you post your /etc/resolv.conf and /etc/hosts
Config files posted below. But first an exciting hint:
When I try to ssh into the box while samba utilities (like "net ads"
and "wbinfo") are frozen -- the ssh login is also frozen until
everything is released. Maybe nsswitch I fouled.
/etc/resolv.conf:
root at nickel:~ # cat /etc/resolv.conf
nameserver 192.168.11.5
nameserver 192.168.1.4
domain mydomain.local
/etc/hosts:
127.0.0.1 localhost localhost.mydomain.local
192.168.11.3 nickel.mydomain.local nickel
192.168.1.2 iron.mydomain.local iron
/etc/nsswitch.conf:
# default
#group: compat
#group_compat: nis
#passwd: compat
#passwd_compat: nis
# 20170131 samba setup
group: files winbind
passwd: files winbind
hosts: files dns
networks: files
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files
Thanks again,
Chris
More information about the samba
mailing list