1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

77 Commits

Author SHA1 Message Date
Andrew Bartlett
773e476203 selftest: Remove infinite client/server loop in srvsvc_NetNameValidate test
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2019-05-24 03:19:17 +00:00
Günther Deschner
5eb28d55a7 werror: replace WERR_UNKNOWN_LEVEL with WERR_INVALID_LEVEL in source4/torture/rpc/
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:35 +02:00
Noel Power
9e8d748db3 s4:torture:rpc: fix valgrind Syscall param writev(vector[...]) error
running smbtorture rpc.srvsvc.srvsvc\ (admin\ access).NetDiskEnum results
in the following valgrind trace

==30237== Syscall param writev(vector[...]) points to uninitialised byte(s)
==30237==    at 0xDD01C67: writev (in /lib64/libc-2.19.so)
==30237==    by 0xE1D09D4: writev_handler (async_sock.c:340)
==30237==    by 0xD81A12A: ??? (in /usr/lib64/libtevent.so.0.9.26)
==30237==    by 0xD8185F6: ??? (in /usr/lib64/libtevent.so.0.9.26)
==30237==    by 0xD8147FC: _tevent_loop_once (in /usr/lib64/libtevent.so.0.9.26)
==30237==    by 0xD815ACE: tevent_req_poll (in /usr/lib64/libtevent.so.0.9.26)
==30237==    by 0x5AC726D: tevent_req_poll_ntstatus (in /usr/lib64/libtevent-util.so.0.0.1)
==30237==    by 0x8120CEA: dcerpc_binding_handle_call (in /usr/lib64/libdcerpc-binding.so.0.0.1)
==30237==    by 0xA9AC6EC: dcerpc_srvsvc_NetDiskEnum_r (ndr_srvsvc_c.c:5388)
==30237==    by 0x2ADDF8: ??? (in /usr/bin/smbtorture)
==30237==    by 0x898DF8C: ??? (in /usr/lib64/libtorture.so.0.0.1)
==30237==    by 0x1F0816: ??? (in /usr/bin/smbtorture)
==30237==  Address 0x15952676 is 598 bytes inside a block of size 1,325 alloc'd
==30237==    at 0x4C29110: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30237==    by 0xCCCAA73: _talloc_pooled_object (in /usr/lib64/libtalloc.so.2.1.5)
==30237==    by 0xD81566D: _tevent_req_create (in /usr/lib64/libtevent.so.0.9.26)
==30237==    by 0xA2B7910: smb1cli_req_create (smbXcli_base.c:1322)
==30237==    by 0xA2BA4E3: smb1cli_trans_send (smb1cli_trans.c:512)
==30237==    by 0xA2C1F91: tstream_smbXcli_np_readv_trans_start (tstream_smbXcli_np.c:901)
==30237==    by 0xA2C23AE: tstream_smbXcli_np_writev_send (tstream_smbXcli_np.c:505)
==30237==    by 0xAC8E43C: tstream_writev_send (tsocket.c:695)
==30237==    by 0xAC8E9BA: tstream_writev_queue_trigger (tsocket_helpers.c:513)
==30237==    by 0xD815023: tevent_common_loop_immediate (in /usr/lib64/libtevent.so.0.9.26)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2016-04-25 10:35:14 +02:00
Jelmer Vernooij
35fbc7bbda s4-smbtorture: Make test names lowercase and dot-separated.
This is consistent with the test names used by selftest, should
make the names less confusing and easier to integrate with other tools.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-12-11 04:16:13 +01:00
Andrew Tridgell
e908c26391 s4-test: use IPC$ instead of ADMIN$ for srvsvc NetShareGetInfo test
IPC$ is guaranteed to exist on servers that do RPC, whereas ADMIN$
isn't

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-11 02:57:04 +00:00
Stefan Metzmacher
e1e2195a4a s4:torture/rpc: rename rpc.h => torture_rpc.h
The reason for this is that some systems include
<rpc/rpc.h> from within system headers. HP-UX 11.00
does so somewhere deep inside of <shadow.h>.

For torture/winbind/struct_based.c <rpc/rpc.h> resolves
to torture/rpc/rpc.h and breaks the build.

metze
2010-04-14 20:27:11 +02:00
Jelmer Vernooij
7da94cc4a6 subunit: Support formatting compatible with upstream subunit, for consistency.
Upstream subunit makes a ":" after commands optional, so I've fixed any
places where we might trigger commands accidently. I've filed a bug
about this in subunit.
2010-04-11 20:57:33 +02:00
Stefan Metzmacher
119f151321 s4:torture/rpc/srvsvc.c: make use of dcerpc_binding_handle stubs
metze
2010-03-16 15:35:27 +01:00
Andrew Tridgell
84d0047377 s4-torture: ran minimal_includes.pl over source4/torture
This reduces compile time somewhat.
2009-10-20 16:04:46 +11:00
Günther Deschner
f25b645ab1 s4-srvsvc: merge srvsvc_NetShareEnum from s3 idl.
Guenther
2008-10-31 02:44:34 +01:00
Günther Deschner
7204deac82 s4-srvsvc: merge srvsvc_NetShareEnumAll from s3 idl.
Guenther
2008-10-31 02:44:34 +01:00
Günther Deschner
947e14adae s4-srvsvc: merge srvsvc_NetSessEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
546fb4028a s4-srvsvc: merge srvsvc_NetFileEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
8f99170ab9 s4-srvsvc: merge srvsvc_NetConnEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
d1340df8b8 s4-srvsvc: merge srvsvc_NetCharDevQEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
07f1bb3abc s4-srvsvc: merge srvsvc_NetCharDevEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
439f197a68 s4-srvsvc: merge srvsvc_NetDiskEnum from s3 idl.
Guenther
2008-10-31 02:44:33 +01:00
Günther Deschner
b70d984f8f s4-srvsvc: merge srvsvc_NetCharDevQGetInfo from s3 idl.
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
6e9d69e4c8 s4-srvsvc: merge srvsvc_NetCharDevGetInfo from s3 idl.
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
c982b36930 s4-srvsvc: merge srvsvc_NetSrvGetInfo from s3 idl.
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
d2cc4e63c5 s4-srvsvc: merge srvsvc_NetTransportEnum from s3 idl.
Guenther
2008-10-31 02:44:32 +01:00
Günther Deschner
227c6ed8ea s4-srvsvc: merge srvsvc_NetShareGetInfo from s3 idl.
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
523732ed2d s4-srvsvc: merge srvsvc_NetShareSetInfo from s3 idl.
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
3206f35527 s4-srvsvc: merge srvsvc_NetShareAdd from s3 idl.
Guenther
2008-10-31 02:44:31 +01:00
Günther Deschner
31b067a6dd s4-srvsvc: merge srvsvc_NetShareCheck from s3 idl.
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
9fd82703d1 s4-srvsvc: merge srvsvc_NetRemoteTOD from s3 idl.
Guenther
2008-10-31 02:44:30 +01:00
Günther Deschner
0b95cb251c s4-srvsvc: merge srvsvc_NetShareInfo502 from s3.
Apparently both s3 and s4 are not entirely correct one this. metze is looking
into hand-marshalling security descriptors so this will fix this finally. For
now, just keep the two in sync.

Guenther
2008-10-31 02:44:29 +01:00
Jeremy Allison
9a012df08e r25175: Change to talloc_asprintf_append_buffer().
Jeremy.
(This used to be commit 0844dbf597)
2007-10-10 15:06:46 -05:00
Jelmer Vernooij
c45d43c4c2 r24884: Ignore some errors again, like they were previously.
(This used to be commit 120d8caa01)
2007-10-10 15:03:27 -05:00
Jelmer Vernooij
c125a7c5a7 r24872: Use torture API a bit more
(This used to be commit a71355dfc9)
2007-10-10 15:03:24 -05:00
Jelmer Vernooij
d05d5da1e8 r24846: Use metadata about dangerous tests.
(This used to be commit f914b828ff)
2007-10-10 15:03:18 -05:00
Jelmer Vernooij
18302e7030 r24751: Run more tests, remove empty testsuites, more small improvements.
(This used to be commit 2a5a0819ee)
2007-10-10 15:03:02 -05:00
Jelmer Vernooij
0e6773525f r24741: More use of the torture API.
(This used to be commit de05c3651a)
2007-10-10 15:03:02 -05:00
Jelmer Vernooij
9cca9ddc79 r24736: Convert to using torture API.
(This used to be commit a0f1188154)
2007-10-10 15:03:01 -05:00
Jelmer Vernooij
919aa6b27e r24735: Use torture API in more places.
(This used to be commit 1319d88c09)
2007-10-10 15:03:00 -05:00
Stefan Metzmacher
f14bd1a90a r24557: rename 'dcerpc_table_' -> 'ndr_table_'
metze
(This used to be commit 84651aee81)
2007-10-10 15:02:15 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
9407f3d0a6 r22194: fix compiler warning and
compile in but disable NetShareAddSetDel test

metze
(This used to be commit 1091f00ce0)
2007-10-10 14:50:03 -05:00
James Peach
fcaeedeff3 r21668: Add SMB_QFS_POSIX_WHOAMI to trans2.h so it's easy to find. Add
convenience API to create an anonymous credential. Don't clobber
cmdline_credentials in the UNIX-WHOAMI test.
(This used to be commit 73cea4e0c6)
2007-10-10 14:49:07 -05:00
Jelmer Vernooij
a39f239cb2 r19392: Use torture_setting_* rather than lp_parm_* where possible.
(This used to be commit b28860978f)
2007-10-10 14:21:24 -05:00
Simo Sorce
a0ea586b25 r18757: Disable this for now
(This used to be commit f84a130c4b)
2007-10-10 14:19:08 -05:00
Simo Sorce
fec00fd6f8 r18740: Some more work around srvsvc
(This used to be commit be2f4a2c44)
2007-10-10 14:19:06 -05:00
Andrew Tridgell
f466901945 r18352: printf("%s") is not safe for NULL strings on all platforms, but
d_printf() is. This fixes a crash on solaris
(This used to be commit 52d1566711)
2007-10-10 14:18:16 -05:00
Andrew Tridgell
2c6a880321 r18348: fixed a valgrind error in RPC-SRVSVC
(This used to be commit cc89ef3e1f)
2007-10-10 14:18:14 -05:00
Simo Sorce
dc221581f0 r18345: test also flags
(This used to be commit 06469a6ba0)
2007-10-10 14:18:13 -05:00
Simo Sorce
8f107700a5 r18344: add a test to show hoe NetNameValidate behaves.
fix the misleading idl names
(This used to be commit 8367b3bcee)
2007-10-10 14:18:13 -05:00
Stefan Metzmacher
0697e76440 r14843: the results of the srvsrv_* calls depends on the user,
try some tests anonymous...

metze
(This used to be commit eb63d83f00)
2007-10-10 13:59:41 -05:00
Jelmer Vernooij
909b111f58 r14720: Add torture_context argument to all torture tests
(This used to be commit 3c7a5ce291)
2007-10-10 13:59:13 -05:00
Jelmer Vernooij
1060f6b3f6 r14402: Generate seperate headers for RPC client functions.
(This used to be commit 7054ebf024)
2007-10-10 13:57:19 -05:00
Jelmer Vernooij
eefe30b7d8 r14379: Build torture/rpc/ as a seperate smbtorture module. Move helper
functions for rpc out of torture/torture.c
(This used to be commit 1d2d970f3b)
2007-10-10 13:57:16 -05:00