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

76593 Commits

Author SHA1 Message Date
Michael Adam
b0d89e5c05 s4:selftest: flakey test samba4.drs.delete_object.python should go into skip
not knownfail, which will render it flakey again, just the other way round.
Thanks Jelmer for pointing that out...

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Oct 14 00:21:26 CEST 2011 on sn-devel-104
2011-10-14 00:21:26 +02:00
Jelmer Vernooij
4602ede2ea Update to newer version of subunit.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Oct 13 20:37:18 CEST 2011 on sn-devel-104
2011-10-13 20:37:18 +02:00
Michael Adam
71f5f41860 s3:dbwrap_ctdb: fix the build after changing signature of tdb_wrap_open()
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Oct 13 18:50:47 CEST 2011 on sn-devel-104
2011-10-13 18:50:47 +02:00
Andrew Bartlett
e287a72e65 add lib/param files to .gitignore
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Oct 13 15:40:16 CEST 2011 on sn-devel-104
2011-10-13 15:40:16 +02:00
Andrew Bartlett
4e1d9a620b build: run perl generators at autogen.sh time 2011-10-13 14:06:08 +02:00
Andrew Bartlett
7703648348 build: clean new generated param headers 2011-10-13 14:06:08 +02:00
Andrew Bartlett
a6faacd93c build: only regenerate param files when required 2011-10-13 14:06:07 +02:00
Andrew Bartlett
73d0ab6558 lib/param reduce the cost of loadparm_init_s3()
The parameter redirection covers most things now, so this should be safe.

Andrew Bartlett
2011-10-13 14:06:07 +02:00
Andrew Bartlett
01c934c81e lib/util: Add back control of mmap and hash size in tdb for top level build
This passes down a struct loadparm_context to allow these
parameters to be checked.  This may be s3 or s4 context, allowing the
#if _SAMBA_BUILD_ macro to go away safely.

Andrew Bartlett
2011-10-13 14:06:07 +02:00
Andrew Bartlett
3cdb1fe440 s4-messaging: Pass the loadparm context, not just the messaging path
This will allow the TDB layer to get at the lp_ctx for tdb options.

Andrew Bartlett
2011-10-13 14:06:07 +02:00
Andrew Bartlett
5603dab647 libcli/auth: Provide a struct loadparm_context to schannel calls
This will allow us to pass this down to the tdb_wrap layer.

Andrew Bartlett
2011-10-13 14:06:07 +02:00
Andrew Bartlett
43d84aa619 lib/param Print error when mkdir of lock path fails
This matches the s3 code for lock_path().

Andrew Bartlett
2011-10-13 14:06:07 +02:00
Andrew Bartlett
4a89361af4 lib/param Add 'use mmap' parameter to control tdb use of mmap 2011-10-13 14:06:07 +02:00
Andrew Bartlett
ebf3ecd986 build: use lib/param loadparm code in source3 to get at lpcfg_ functions 2011-10-13 14:06:07 +02:00
Jeremy Allison
d2a9e8df35 Another part of the fix for Bug 8473 - smb2_find uses a hard coded max reply size of 0x10000 instead of smb2_max_trans.
Change the defaults and the documentation to reflect the 64k limit.

Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Oct 13 12:22:23 CEST 2011 on sn-devel-104
2011-10-13 12:22:23 +02:00
Rusty Russell
5dcce64bbd config.h: define HAVE_LIBREPLACE
tdb2 wants to know if it should use replace.h.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Thu Oct 13 08:58:35 CEST 2011 on sn-devel-104
2011-10-13 08:58:35 +02:00
Jelmer Vernooij
88d997a63e samba-tool: Use self.outf in a few more places.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Oct 13 05:06:52 CEST 2011 on sn-devel-104
2011-10-13 05:06:52 +02:00
Jelmer Vernooij
0e70e26d92 samba-tool delegation: Use self.outf, simplify some code. 2011-10-13 03:33:21 +02:00
Jelmer Vernooij
3978a50243 samba.getopt: Refactor parsing of --kerberos argument into separate function. 2011-10-13 03:33:20 +02:00
Stefan Metzmacher
5e04231e96 s3:smb2_server: get/set info are limited by max_trans size (bug #8473)
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Oct 13 03:32:02 CEST 2011 on sn-devel-104
2011-10-13 03:32:02 +02:00
Stefan Metzmacher
6981f11147 s3:smb2_server: reject writes larger then the negotiated max_write size (bug #8473)
metze
2011-10-13 01:59:05 +02:00
Stefan Metzmacher
40ea66c5dd s3:smb2_server: remember the max_{trans,read,write} sizes we negotiated (bug #8473)
We should enforce the negotiated max sizes instead of the
lp_smb2_max_*() sizes.

metze
2011-10-13 01:59:05 +02:00
Stefan Metzmacher
77f739f03a s4:torture/smb2: we only support 64KB reads/writes for now
We don't have multi-credit support yet.

metze
2011-10-13 01:59:05 +02:00
Jelmer Vernooij
de9b3b6190 samba-tools/testparm: Add really basic unit test, demonstrating how to write unit tests for samba-tool in Python.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Oct 13 01:56:20 CEST 2011 on sn-devel-104
2011-10-13 01:56:20 +02:00
Jelmer Vernooij
6f9a3177d4 netcmd: Add Command.get_logger() method. 2011-10-13 00:23:39 +02:00
Jelmer Vernooij
63c9186e92 netcmd: Add errf stream to command instances. 2011-10-13 00:23:39 +02:00
Jelmer Vernooij
fba4b7a5b9 samba-tool/testparm: Fix traceback when checking client name/ip against hosts allowed. 2011-10-13 00:23:39 +02:00
Jelmer Vernooij
ba5b8a1056 samba-tool/testparm: Fix handling of command-line options. 2011-10-13 00:23:39 +02:00
Michael Adam
7e9acf06c5 selftest: mark samba4.drs.delete_object.python knownfail
this currently prevents autobuild from succeeding intermittently

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Oct 13 00:22:18 CEST 2011 on sn-devel-104
2011-10-13 00:22:18 +02:00
Gregor Beck
89b76b5611 s3:smbcacls: fix violation of coding conventions
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
491afa3a4c s3:net: avoid unnecessary initialization of the registry.
This allows for using help without having access to the registry and
prevents update code to run if only a readonly check is to be performed.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
83748ae49c s3:doc manpage for "net registry check"
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
502f0b8edc s3:net: add command registry check
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
e430c75d4c s3:net: factor out interact_edit()
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
6b28a517e3 s3:registry add function srprs_hive()
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
85b145d745 s3:utils change data_blob_dup_talloc() to take a DATA_BLOB by value
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
6648d90652 s3:smbcontrol: let smbd pass the idmap msg to its children for convenience
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
da85f5a43e s3: factor out messaging_send_to_children()
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:53 +02:00
Gregor Beck
3ff8733792 s3: fix id_cache_kill to delete the the id-mappig from caches
The intendet and documented behavior of smbcontrol smbd idmap kill is to
delete the mapping from caches and additionally kill the smbd if an affected id
is in use.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 22:45:52 +02:00
Michael Adam
b8eec18e39 s3:smbcacls: make get_domain_sid() static 2011-10-12 22:45:52 +02:00
Michael Adam
54649993b2 s3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ record in traverse
It did not compare the last charcter (usually '\0')
2011-10-12 22:45:52 +02:00
Michael Adam
8a3aa56202 s3:dbwrap_ctdb: fix check for skipping the __db_sequence_number__ in traverse
Brown paperbag. This omitted the "== 0" hand hence skipped all keys of the
same length as __db_sequence_number__ but different from it...
2011-10-12 22:45:52 +02:00
Jelmer Vernooij
c6481f4f24 samba.upgrade: Use list comprehension.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 12 22:44:40 CEST 2011 on sn-devel-104
2011-10-12 22:44:40 +02:00
Volodymyr Khomenko
bd260f03ab Fix bug #8515 - Empty CIFS share can be blocked for other clients by deleting it via empty path (DELETE_PENDING until the last client)
Disallow "." in can_set_delete_on_close().

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Oct 12 21:07:27 CEST 2011 on sn-devel-104
2011-10-12 21:07:27 +02:00
Jeremy Allison
1e4761d059 Fix bug #8521 - winbindd cache timeout expiry test was reversed
Found and fix reported by Micha Lenk <micha@lenk.info>. Thanks !
2011-10-12 19:29:30 +02:00
Simo Sorce
995d156726 s3-group-mapping: Remove fstrings from GROUP_MAP.
Signed-off-by: Andreas Schneider <asn@samba.org>

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Oct 12 19:28:12 CEST 2011 on sn-devel-104
2011-10-12 19:28:12 +02:00
Günther Deschner
fc320551d8 s3-dbwrap_ctdb: fix the build.
Michael, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Oct 12 15:25:56 CEST 2011 on sn-devel-104
2011-10-12 15:25:56 +02:00
Günther Deschner
a0cbe469bc s3-groupdb: split out groupdb/mapping_tdb.h.
Guenther
2011-10-12 13:51:46 +02:00
Andreas Schneider
031519cec9 selftest: Fix plugin_s4_dc configuration.
Signed-off-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Oct 12 13:50:10 CEST 2011 on sn-devel-104
2011-10-12 13:50:10 +02:00
Kai Blin
002694c38d s3 waf: Use upper case uselib_store parameter, otherwise the following checks won't find it
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Wed Oct 12 09:49:50 CEST 2011 on sn-devel-104
2011-10-12 09:49:50 +02:00