[PATCH] Add libsmbclient list shares test
asn at samba.org
Tue Aug 28 06:55:19 UTC 2018
On Monday, 27 August 2018 22:54:34 CEST Jeremy Allison wrote:
> On Mon, Aug 27, 2018 at 05:29:22PM +0200, Andreas Schneider via samba-
> > Hi,
> > the attached patch adds a test for listing shares using libsmbclient and
> > fixes teh tests to run against a target with smbd.
> > Please review and push if OK.
> This patch looks good to me RB+, but when I run
> it locally I get:
> [2(8)/10 at 20s, 1 errors] samba3.libsmbclient(ad_dc)
> Listing: smb://Administrator:locDCpass1@addc/tmp
> DIR: .
> DIR: ..
> DIR: IA64
> DIR: color
> DIR: WIN40
> DIR: x64
> DIR: W32PPC
> DIR: test2
> DIR: test1
> DIR: W32MIPS
> DIR: W32X86
> DIR: W32ALPHA
> UNEXPECTED(failure): samba3.libsmbclient.list_shares(ad_dc)
> REASON: Exception: Exception:
> ../source4/torture/libsmbclient/libsmbclient.c:574: Expression
> `ipc_share_found' failed: Failed to list IPC$ share
> Looks like IPC$ isn't being reported from the ad_dc server.
This is strange, there should always be an IPC$ share or you can't connect to
RPC via smb named pipes ...
ALL OK (1 tests in 1 testsuites)
running the test here.
> I'll take a look, unless you get to it first.
Andreas Schneider asn at samba.org
Samba Team www.samba.org
More information about the samba-technical