[PATCH] Extend testsuite - added small test

Robin Hack rhack at redhat.com
Tue Feb 23 11:06:37 UTC 2016


Hi.

Result of test run when I use Uri's prosed change:

[12(121)/12 at 1m7s] samba3.blackbox.smbclient_auth.plain (maptoguest)
bad username
teardown_env(nt4_member)
UNEXPECTED(failure): samba3.blackbox.smbclient_auth.plain (maptoguest)
bad username.smbclient //maptoguest/tmp should not
segfault(maptoguest)
REASON: Exception: Exception: Domain=[SAMBA-TEST] OS=[Windows 6.1]
Server=[Samba 4.5.0pre1-DEVELOPERBUILD]
tree connect failed: NT_STATUS_ACCESS_DENIED
command: /home/rhack/src/samba/source3/script/tests/test_smbclient_auth.sh
$SERVER $SERVER_IP notmy$USERNAME $PASSWORD
/home/rhack/src/samba/bin/smbclient $PREFIX_ABS
--configfile=$SMB_CONF_PATH --option=clientntlmv2auth=no
--option=clientlanmanauth=yes 2>&1  |
/home/rhack/src/samba/selftest/filter-subunit --fail-on-empty
--prefix="samba3.blackbox.smbclient_auth.plain (maptoguest) bad
username." --suffix="(maptoguest)"
expanded command:
/home/rhack/src/samba/source3/script/tests/test_smbclient_auth.sh
maptoguest 127.0.0.8 notmyrhack maptoguestpass
/home/rhack/src/samba/bin/smbclient /home/rhack/src/samba/st
--configfile=/home/rhack/src/samba/st/client/client.conf
--option=clientntlmv2auth=no --option=clientlanmanauth=yes 2>&1  |
/home/rhack/src/samba/selftest/filter-subunit --fail-on-empty
--prefix="samba3.blackbox.smbclient_auth.plain (maptoguest) bad
username." --suffix="(maptoguest)"
ERROR: Testsuite[samba3.blackbox.smbclient_auth.plain (maptoguest) bad username]
REASON: Exit code was 1

On Mon, Feb 22, 2016 at 3:47 PM, Uri Simchoni <uri at samba.org> wrote:
> On 02/22/2016 02:34 PM, Robin Hack wrote:
>>
>> Hello.
>>
>> Thank you for your feedback.
>>
>> 2) use of --option= argument: It seems it doesn't work for me. It
>> starts to fail in maptoguest case...
>>
>
> Hmmm... the --option is equivalent to putting it in smb.conf, perhaps
> you had white space issues?
>
> What I had in mind was:
>
> testit "smbclient //$SERVER/tmp should not segfault" $SMBCLIENT
> //$SERVER/tmp --option=clientNTLMv2auth=yes --option=clientusespnego=no
> $CONFIGURATION
> -U$USERNAME%$PASSWORD -I $SERVER_IP -p 139 -c quit $ADDARGS
>
> (notice I remove the spaces from the smb.conf option - samba is agnostic to
> this and it makes it more shell-friendly)
>
> Thanks,
> Uri.



More information about the samba-technical mailing list