[Samba] authn timeouts enumerating (and connecting to) shares

Rowland Penny rpenny at samba.org
Mon Aug 22 19:59:08 UTC 2022


On Mon, 2022-08-22 at 19:42 +0000, Aaron Johnson via samba wrote:
> Thanks for the swift response, Rowland!  I’ve added
> 'myserver.mydomain.myorg.com’ to /etc/hosts; restarted smbd, nmbd,
> and winbind; tried smblclient -L … again; and don’t see any
> difference in the results.

What are you connecting to ? 
A Samba AD DC or a Windows DC ?

What dns domain is the DC in ?
is it 'mydomain.myorg.com' or 'myorg.com' ?
Your Unix domain member must be in the same dns domain, you should not
need to add anything to /etc/hosts, it should use dns to find
'myserver'.

This is what I get:

pi at rpidc1:~ $ time smbclient -d 2 -U SAMDOM\\rowland -L
devstation.samdom.example.com
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit
(16384)
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface eth0 ip=192.168.0.10 bcast=192.168.0.255
netmask=255.255.255.0
tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file
/run/samba/gencache.tdb: Permission denied
Password for [SAMDOM\rowland]:

	Sharename       Type      Comment
	---------       ----      -------
	data            Disk      
	dfs             Disk      
	public          Disk      
	acltest1        Disk      
	acltest2        Disk      
	acltest3        Disk      
	acltest4        Disk      
	IPC$            IPC       IPC Service (Samba Client devstation)
	rowland         Disk      Home Directories
SMB1 disabled -- no workgroup available

real	0m6.758s
user	0m0.102s
sys	0m0.041s

If I embed the password, I get this:

real	0m0.300s
user	0m0.092s
sys	0m0.046s

> I’m happy to share the sanitized logs if that would make a
> difference.  (Would have done at the outset, but didn’t see people
> sending more than brief excerpts as I browsed the archives.)

We will cross that bridge when we come to it and if required, it will
probably need to be posted somewhere, this list strips attachments.

Rowland





More information about the samba mailing list