[PATCH] smbclient -L //dns.domain.name fails
Andreas Schneider
asn at samba.org
Mon Nov 24 08:26:12 MST 2014
Hi,
doing 'smbclient -L //win2008.dns.domain.name' fails in Samba 4.x. It
worked before in Samba 3.6 returning success.
asn at samba:~/workspace/projects/samba/git> bin/smbclient -L discworlddomain.discworld.site -Ujoe1%secret; echo "RETURN VALUE: $?"
Domain=[DISCWORLD] OS=[Windows Server 2008 R2 Enterprise 7601 Service Pack 1] Server=[Windows Server 2008 R2 Enterprise 6.1]
Sharename Type Comment
--------- ---- -------
ADMIN$ Disk Remote Admin
C$ Disk Default share
IPC$ IPC Remote IPC
NETLOGON Disk Logon server share
public Disk
SYSVOL Disk Logon server share
test Disk
Connection to discworlddomain.discworld.site failed (Error NT_STATUS_RESOURCE_NAME_NOT_FOUND)
NetBIOS over TCP disabled -- no workgroup available
RETURN VALUE: 1
As you can see above the shares are correclty listed but the return value of
the executable indicates a failure. The following patches return 0 instead.
Cheers,
Andreas Schneider (1):
s3-smbclient: Return success if we listed the shares.
source3/client/client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.1.2
More information about the samba-technical
mailing list