summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-rpc_server: Do not register embedded ncacn_np endpoints by defaultAndrew Bartlett2012-03-072-1/+9
| | | | | | | | | | | | | | The end point mapper is primarily in support of lsasd, and the key SAMR, LSA and NETLOGON services being accessed over TCP/IP. The end point mapper does not appear to be used for the well-known mappings to named pipes, and we have a problem with how to safely register the embedded pipes. For now, disable this to avoid re-registration storms in production, until we sort out a better way. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 7 14:27:38 CET 2012 on sn-devel-104
* s3-rpc_server: Register embedded RPC services after starting lsasd and spoolssdAndrew Bartlett2012-03-071-4/+4
| | | | | | | This ensures that these services are not accidentally registered in these child processes. Andrew Bartlett
* s4-smb_server: Put error from share_get_config() into the logsAndrew Bartlett2012-03-071-1/+1
|
* s3-rpc_server: Do not setup ncalrpc pipes and TCP for embedded rpc serversAndrew Bartlett2012-03-072-109/+38
| | | | | | | | | | | | | Embedded RPC services are those not launched in the preforked lsasd and spoolssd children. The reason that these child processes were created is that is is not possible to correctly listen for ncalrpc and TCP connections without creating a child process. Therefore, we should not have these embedded RPC services to listen on these sockets just because the endpoint mapper has been enabled. Andrew Bartlett
* selftest: Only run s3dc with a forked lsasdAndrew Bartlett2012-03-071-11/+11
| | | | | | | | | | | This ensures that we run ktest, member and s3member in the default configuration, to try and cover both code paths. (This does not change the tests being run, but at least the initialisation code will be checked, plus whatever the rpcclient test can cover). Andrew Bartlett
* s3-smbd make change_to_user_by_session staticAndrew Bartlett2012-03-072-4/+2
|
* selftest: mark samba4.smb2.getinfo.getinfo as knownfailStefan Metzmacher2012-03-071-0/+1
| | | | | | | | | Samba4 seems to have problems with streams on directories. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Mar 7 12:44:10 CET 2012 on sn-devel-104
* s4:torture: smb2.getinfo test return status of stream creationGregor Beck2012-03-071-2/+6
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture/smb2: add simple smb2.session.reauth testGregor Beck2012-03-071-0/+57
| | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:libcli/smb2: allow smb2_session_setup_spnego to handle reauthGregor Beck2012-03-071-0/+12
| | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-libcli: pysmb: Fix typo in secinfo_flagsAmitay Isaacs2012-03-071-1/+1
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Mar 7 10:56:09 CET 2012 on sn-devel-104
* lib/tdb2: add --valgrind, --valgrind-log options.Rusty Russell2012-03-071-1/+13
| | | | | | | | | | Not used by default, since it slows down testing (on my laptop) from 22 seconds to 2 minutes 30 seconds. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Mar 7 04:57:21 CET 2012 on sn-devel-104
* lib/tdb2: wire up unit tests.Rusty Russell2012-03-072-1/+81
| | | | | | | | | The tests are ccan-style, so the names tell how to link them. This logic is generic, and could be moved to wafsamba, cleaned up, and used elsewhere. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb2: adapt unit tests to SAMBA environment.Rusty Russell2012-03-0789-147/+234
| | | | | | | | | | This means changing headers, implementing a simple tap-like wrapper, and also splitting out the helpers into those which are linked with the api* tests (which can't use non-public tdb2 functions) and those linked with the run* tests (which can). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/ccan: import failtest and required ccan modules for TDB2 unit tests.Rusty Russell2012-03-0769-0/+7608
| | | | | | | New modules: failtest, list, time, read_write_all and tlist. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3:selftest: ask smbtorture4 for smb2 testsGregor Beck2012-03-071-2/+9
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Mar 7 01:34:05 CET 2012 on sn-devel-104
* selftest: skip samba3.smb2.scan because they are no testsGregor Beck2012-03-061-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* selftest: remove samba3.smb2.*scan from knownfailGregor Beck2012-03-061-2/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture make a suite for smb2.*scanGregor Beck2012-03-062-8/+19
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: print ntstatus on failure of setup complex file in smb2 ↵Gregor Beck2012-03-061-3/+6
| | | | | | setinfo/getinfo scan Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: use different filenames for smb2 setinfo and getinfo scanGregor Beck2012-03-061-7/+11
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: cleanup after smb2 setinfo scanGregor Beck2012-03-061-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: cleanup after smb2 getinfo scanGregor Beck2012-03-061-0/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* selftest: skip samba3.smb2.session because it hangsGregor Beck2012-03-061-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* selftest: skip samba3.smb2.hold-oplock because its not a testGregor Beck2012-03-061-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* selftest: mark samba3.smb2.ioctl tests knownfailGregor Beck2012-03-061-0/+7
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* selftest: mark samba3.smb2.durable-v2-open tests as knownfailStefan Metzmacher2012-03-061-0/+4
| | | | metze
* selftest: mark samba3.smb2.durable-open.oplock test knownfailGregor Beck2012-03-061-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* selftest: mark samba3.smb2.durable-open reopen tests knownfailGregor Beck2012-03-061-0/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* selftest: samba3.smb2.compound.invalid2 worksGregor Beck2012-03-061-1/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* selftest: mark smb2 tests knownfail failing in 3.6Gregor Beck2012-03-061-0/+37
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: avoid reporting error on failure of smb2.ioctl testsGregor Beck2012-03-061-148/+79
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: avoid reporting error on failure of smb2.getinfo testGregor Beck2012-03-061-54/+32
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: avoid reporting error on failure of smb2.setinfo testGregor Beck2012-03-061-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: avoid reporting error on failure of smb2.streams testsGregor Beck2012-03-061-11/+14
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture: avoid reporting error on failure of smb2.acls testsGregor Beck2012-03-061-1/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: keep 'num_files' and 'files' directly under smbd_server_connectionStefan Metzmacher2012-03-062-8/+9
| | | | | | | | | | The plan is to have files_struct as some kind of low level abstraction for a smb1/smb2 opens, that can be used by SMB_VFS modules. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Mar 6 23:04:01 CET 2012 on sn-devel-104
* s3:smbd: keep 'num_connections' and 'connections' directly under ↵Stefan Metzmacher2012-03-065-154/+52
| | | | | | | | | smbd_server_connection The plan is to have connection_struct as some kind of low level abstraction for a smb1/smb2 tree connects, that can be used by SMB_VFS modules. metze
* s3:smbd: keep 'num_users' and 'users' directly under smbd_server_connectionStefan Metzmacher2012-03-064-20/+17
| | | | | | | The plan is to have users_struct as some kind of low level abstraction for a smb1/smb2 session, that can be used by SMB_VFS modules. metze
* s3:msdfs: set the 'cnum' field to invalid for faked connection_structsStefan Metzmacher2012-03-061-0/+1
| | | | metze
* s4 dns: Fix TCP handling in the DNS serverKai Blin2012-03-064-13/+60
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Mar 6 21:17:19 CET 2012 on sn-devel-104
* s3: Move a talloc_strdup out of the main code pathVolker Lendecke2012-03-061-15/+31
| | | | | | | This is only used for AS_GUEST requests Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Mar 6 14:29:50 CET 2012 on sn-devel-104
* s3: Fix some format string warningsVolker Lendecke2012-03-061-9/+13
| | | | | | We were printing nmb->header.name_trn_id with %hu, which denotes a short. However, header.name_trn_id is an int for the better or worse.
* policy/python: Move python binding tests to standard location.Jelmer Vernooij2012-03-062-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Mar 6 02:26:29 CET 2012 on sn-devel-104
* selftest/tests.py: Fix name of selftest.py for benefit of --load-list.Jelmer Vernooij2012-03-061-1/+1
|
* selftest.py: Only run teardown_all when actually relevant.Jelmer Vernooij2012-03-061-3/+1
|
* s3-rpc_server: Remove remaining code for embedded endpoint mapperAndrew Bartlett2012-03-051-23/+0
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon Mar 5 23:14:33 CET 2012 on sn-devel-104
* s3-rpc_server: Only init and register embedded RPC services in dcesrv_ep_setup()Andrew Bartlett2012-03-051-37/+66
| | | | | | | | | This consults the two definitions for embedded, that is if the deamon is forking or if the rpc_server:<interface> line is set to embedded. Andrew Bartlett Signed-off-by: Andreas Schneider <asn@samba.org>
* s3: Fix a "Invalid (state->nread >= 0)" warningVolker Lendecke2012-03-051-1/+1
| | | | | | | | Both read_from_internal_pipe and tstream_readv_pdu_queue_recv return ssize_t. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 5 17:38:16 CET 2012 on sn-devel-104
* s3: Move the drain_socket on error to reply_write_and_XVolker Lendecke2012-03-052-9/+9
| | | | | That's the only case where this can happen, so we should not clutter the main code path.