I have FreeBSD (6.2 RELEASE #0) server with switched to OpenLDAP (2.3.41) both system and samba authentification.
When I try to connect to root of file server with smbclient (results are similiar for smbclient on the same server, smbclient on another server with FreeBSD 6.3 and for my workstation with Gentoo Linux), I get the following error:
$ smbclient //localhost/ -U user
Domain=[SAMBA] OS=[Unix] Server=[Samba 3.0.28]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
When I try to mount share directly everything works OK:
$ smbclient //localhost/test -U user
Listing of available shares
$ smbclient -L 127.0.0.1 -U user
also works OK.
The same config (differs only in declaration of shares) on the server with FreeBSD 6.3 and authorization in OpenLDAP only for Samba users (system auth is default) works OK.
If you want to list shares, use "smbclient -L server". The syntax you
list is invalid.
But from wondow$ workstation (2003 server) attempt to get access to file server by entering
'\\samba\' in explorer fails.
But access to '\\samba\test' works.
And nothing is written in logs. That is why I described configuration on smbclient.
It was mine error.
After correct restart of services on server everything works as it should do.