libsmbclient and smb_opendir: problem with workgroup

Richard Sharpe rsharpe at
Sat Jun 12 00:33:10 GMT 2004

On Fri, 11 Jun 2004, Andreas wrote:

> I have a machine in the MYGROUP workgroup that is misbehaving:
> [andreas at pandora source]$ smbclient -L duckman -N
> session request to DUCKMAN failed (Call timed out: server did not respond after 20000 milliseconds)
> (...)
> It does exist:
> [andreas at pandora source]$ nmblookup duckman
> querying duckman on
> duckman<00>
> I don't have shell access to see what is wrong, but that is not the point.
> The problem is that this missbehaviour is causing network browsing to fail as a whole.
> On my client machine I have "workgroup=MYGROUP" and this causes smbc_opendir("smb://")
> to return -1. If, however, I use "workgroup=SOMEGARBAGE" (SOMEGARBAGE doesn't exist),
> then smbc_opendir() works. Now, as I understand it, the "smb://" url is supposed to
> be used to list all workgroups in the network, why should my own workgroup matter?
> Or does this "search" need to have some workgroup, even if it is an non-existing one?

Could you get a network capture of what happens when you try to access

That way we will have a better idea of what problem is occurring in the

Also, it would be useful to know which version of Samba you are using.

Richard Sharpe, rsharpe[at], rsharpe[at],

More information about the samba-technical mailing list