ira/wip.git
14 years agos4:registry - "reg_key_del/add_abs": call "talloc_free" only on valid objects
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 21:38:45 +0000 (22:38 +0100)]
s4:registry - "reg_key_del/add_abs": call "talloc_free" only on valid objects

14 years agos4:registry - "reg_import_hive_key" - change a "talloc_steal" into a "talloc_reference"
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 21:23:08 +0000 (22:23 +0100)]
s4:registry - "reg_import_hive_key" - change a "talloc_steal" into a "talloc_reference"

Use a "talloc_reference" since the "hive" variable can continue to exist also
after the destructed "struct local_key" object. It is also referenced by the
"mountpoints" structure under the "ctx" object.

14 years agos4:registry - "patchfile" - add another "W_ERROR_HAVE_NO_MEMORY" macro call
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 21:01:31 +0000 (22:01 +0100)]
s4:registry - "patchfile" - add another "W_ERROR_HAVE_NO_MEMORY" macro call

14 years agos4:registry - "local" - add also here more "W_ERROR_HAVE_NO_MEMORY" macro tests
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 20:46:39 +0000 (21:46 +0100)]
s4:registry - "local" - add also here more "W_ERROR_HAVE_NO_MEMORY" macro tests

14 years agos4:registry - "util.c" - initialise "result" in "reg_key_add_abs"
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 20:34:54 +0000 (21:34 +0100)]
s4:registry - "util.c" - initialise "result" in "reg_key_add_abs"

14 years agos4:WINREG RPC - add also here a "W_ERROR_HAVE_NO_MEMORY"
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 19:14:51 +0000 (20:14 +0100)]
s4:WINREG RPC - add also here a "W_ERROR_HAVE_NO_MEMORY"

14 years agos4:registry - "samba.c" - add a "talloc_free"
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 19:12:13 +0000 (20:12 +0100)]
s4:registry - "samba.c" - add a "talloc_free"

14 years agos4:registry - add more "W_ERROR_HAVE_NO_MEMORY" invocations (on talloc'ed stuff)
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 19:10:26 +0000 (20:10 +0100)]
s4:registry - add more "W_ERROR_HAVE_NO_MEMORY" invocations (on talloc'ed stuff)

14 years agos4:registry - "util" - remove "const" from "reg_abs_path"
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 18:53:23 +0000 (19:53 +0100)]
s4:registry - "util" - remove "const" from "reg_abs_path"

Here it's not really needed

14 years agos4:registry - adaptions for "add also a memory context argument for "reg_key_del_abs"
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 18:56:52 +0000 (19:56 +0100)]
s4:registry - adaptions for "add also a memory context argument for "reg_key_del_abs"

14 years agos4:registry - "util" - add also a memory context argument for "reg_key_del_abs"
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 18:47:49 +0000 (19:47 +0100)]
s4:registry - "util" - add also a memory context argument for "reg_key_del_abs"

14 years agos4:registry - "util" - make "reg_key_add_abs" consistent with "reg_key_del_abs"
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 18:45:21 +0000 (19:45 +0100)]
s4:registry - "util" - make "reg_key_add_abs" consistent with "reg_key_del_abs"

14 years agos4:registry - "util" - fix up memory allocated data
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 18:44:19 +0000 (19:44 +0100)]
s4:registry - "util" - fix up memory allocated data

14 years agos4:registry - "dir.c" - fix up dynamic memory allocation operations
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 18:26:59 +0000 (19:26 +0100)]
s4:registry - "dir.c" - fix up dynamic memory allocation operations

- Added free operations where needed
- Use always the "mem_ctx" for temporary data
- Proof with W_ERROR_HAVE_NO_MEMORY if stuff was allocated

14 years agos4:registry - adaptions for "add memory contexts for delete value/key functions"
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 18:18:56 +0000 (19:18 +0100)]
s4:registry - adaptions for "add memory contexts for delete value/key functions"

14 years agos4:registry - registry.h - add memory contexts for delete value/key functions
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 17:51:20 +0000 (18:51 +0100)]
s4:registry - registry.h - add memory contexts for delete value/key functions

14 years agotdb: Fix bug 7248, avoid the nanosleep dependency
Volker Lendecke [Sun, 14 Mar 2010 19:07:58 +0000 (20:07 +0100)]
tdb: Fix bug 7248, avoid the nanosleep dependency

14 years agoFix valgrind error when running under share level security. plaintext_password
Jeremy Allison [Mon, 22 Mar 2010 20:05:29 +0000 (13:05 -0700)]
Fix valgrind error when running under share level security. plaintext_password
is a data blob with a data pointer pointing to an allocation of length zero.

Jeremy.

14 years agos3: Add the "ctdb locktime warn threshold" parameter
Volker Lendecke [Fri, 5 Mar 2010 15:46:36 +0000 (16:46 +0100)]
s3: Add the "ctdb locktime warn threshold" parameter

This is mainly a debugging aid for post-mortem analysis in case a cluster file
system is slow.

14 years agos3: Implement an asynchronous echo responder process
Volker Lendecke [Thu, 18 Mar 2010 11:50:22 +0000 (12:50 +0100)]
s3: Implement an asynchronous echo responder process

This replies to echo requests when the main smbd is stuck somewhere

Signed-off-by: Stefan Metzmacher <metze@samba.org>
14 years agos3:smbd: don't allow SMB2 if the async echo handler is active
Stefan Metzmacher [Mon, 22 Mar 2010 08:06:07 +0000 (09:06 +0100)]
s3:smbd: don't allow SMB2 if the async echo handler is active

metze

14 years agos3:smbd: disable SMB encryption when the echo handler is active
Stefan Metzmacher [Fri, 19 Mar 2010 14:47:11 +0000 (15:47 +0100)]
s3:smbd: disable SMB encryption when the echo handler is active

metze

14 years agos3:smbd: disallow readbraw and writebraw if the echo handler is active
Stefan Metzmacher [Mon, 22 Mar 2010 08:11:05 +0000 (09:11 +0100)]
s3:smbd: disallow readbraw and writebraw if the echo handler is active

metze

14 years agos3:smbd: disable sendfile if the echo handler is active
Stefan Metzmacher [Fri, 19 Mar 2010 11:08:13 +0000 (12:08 +0100)]
s3:smbd: disable sendfile if the echo handler is active

metze

14 years agos3:smbd: don't use recvfile if the echo handler is active
Stefan Metzmacher [Thu, 18 Mar 2010 19:22:26 +0000 (20:22 +0100)]
s3:smbd: don't use recvfile if the echo handler is active

metze

14 years agos3:smbd: setup a shared memory area for the signing state
Stefan Metzmacher [Fri, 19 Mar 2010 13:59:19 +0000 (14:59 +0100)]
s3:smbd: setup a shared memory area for the signing state

metze

14 years agos3:smbd: add echo handler information to struct smbd_server_connection
Stefan Metzmacher [Mon, 22 Mar 2010 07:42:13 +0000 (08:42 +0100)]
s3:smbd: add echo handler information to struct smbd_server_connection

metze

14 years agos3:param: add "async smb echo handler" option
Stefan Metzmacher [Mon, 22 Mar 2010 07:35:33 +0000 (08:35 +0100)]
s3:param: add "async smb echo handler" option

This will enable an extra forked process that will reply
to SMBecho requests, while the main process is blocked by another
request.

metze

14 years agos3:smbd: pass down trusted_channel via receive_smb_talloc()
Stefan Metzmacher [Thu, 18 Mar 2010 14:36:19 +0000 (15:36 +0100)]
s3:smbd: pass down trusted_channel via receive_smb_talloc()

metze

14 years agos3:smbd: let reply_readbraw_error use the locked socket
Stefan Metzmacher [Fri, 19 Mar 2010 11:04:32 +0000 (12:04 +0100)]
s3:smbd: let reply_readbraw_error use the locked socket

metze

14 years agos3:smbd: send keepalive packets under the socket lock
Stefan Metzmacher [Fri, 19 Mar 2010 11:02:27 +0000 (12:02 +0100)]
s3:smbd: send keepalive packets under the socket lock

metze

14 years agos3:smbd: smbd_[un]lock_socket() while accessing the socket to the client
Stefan Metzmacher [Thu, 18 Mar 2010 08:23:48 +0000 (09:23 +0100)]
s3:smbd: smbd_[un]lock_socket() while accessing the socket to the client

metze

14 years agos3:smbd: add smbd_[un]lock_socket() dummies
Stefan Metzmacher [Thu, 18 Mar 2010 08:17:43 +0000 (09:17 +0100)]
s3:smbd: add smbd_[un]lock_socket() dummies

metze

14 years agos3:smbd: add an option to skip signings checks srv_check_sign_mac for trusted channels
Stefan Metzmacher [Thu, 18 Mar 2010 08:14:40 +0000 (09:14 +0100)]
s3:smbd: add an option to skip signings checks srv_check_sign_mac for trusted channels

metze

14 years agos3:libsmb: add a smb_signing_init_ex() function
Stefan Metzmacher [Wed, 17 Mar 2010 14:07:07 +0000 (15:07 +0100)]
s3:libsmb: add a smb_signing_init_ex() function

Make it possible to overload memory handling functions.

metze

14 years agolib/util: add allocate_anonymous_shared()
Stefan Metzmacher [Mon, 22 Mar 2010 07:27:58 +0000 (08:27 +0100)]
lib/util: add allocate_anonymous_shared()

metze

14 years agos3: Fix a bad memleak in winbind
Volker Lendecke [Mon, 22 Mar 2010 14:29:19 +0000 (15:29 +0100)]
s3: Fix a bad memleak in winbind

14 years agos4:registry - "RPC backend" - use "talloc_steal" and not "talloc_reference"
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 13:00:02 +0000 (14:00 +0100)]
s4:registry - "RPC backend" - use "talloc_steal" and not "talloc_reference"

No need to create additional references but we need to assign the strings to the
right context.

14 years agos4:registry - "patchfile" - check if strings could be allocated
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 12:39:40 +0000 (13:39 +0100)]
s4:registry - "patchfile" - check if strings could be allocated

14 years agos4:registry - "patchfile" - initialise the data blobs
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 12:33:04 +0000 (13:33 +0100)]
s4:registry - "patchfile" - initialise the data blobs

14 years agos4:registry - "patchfile" - add more "talloc_free"s to save memory
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 11:42:21 +0000 (12:42 +0100)]
s4:registry - "patchfile" - add more "talloc_free"s to save memory

14 years agos4:registry - "util.c" - "reg_string_to_val" - consider always the return values
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 11:22:13 +0000 (12:22 +0100)]
s4:registry - "util.c" - "reg_string_to_val" - consider always the return values

In some cases we didn't consider them.

14 years agos4:registry - "patchfile_preg.c" - also here don't accumulate the memory usage
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 11:15:19 +0000 (12:15 +0100)]
s4:registry - "patchfile_preg.c" - also here don't accumulate the memory usage

Free always the unused stuff.

14 years agos4:registry - "patchfile_dotreg.c" - fix a memory leak
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 11:00:57 +0000 (12:00 +0100)]
s4:registry - "patchfile_dotreg.c" - fix a memory leak

Here we allocate memory on the "NULL" context through "reg_val_data_string" on
each call of "set_value". So when we have written out the allocated data on the
specified file descriptor we should immediately free this memory! Otherwise we
may end up with a big memory consumption on big registry databases.

14 years agos4:registry - "patchfile" - add comments
Matthias Dieter Wallnöfer [Mon, 22 Mar 2010 10:45:20 +0000 (11:45 +0100)]
s4:registry - "patchfile" - add comments

Helps to understand when we need to generate the hive diffs.

14 years agos3: Add "log writeable files on exit" parameter
Volker Lendecke [Mon, 22 Mar 2010 10:19:10 +0000 (11:19 +0100)]
s3: Add "log writeable files on exit" parameter

This boolean option controls whether at exit time the server dumps a list of
files with debug level 0 that were still open for write. This is an
administrative aid to find the files that were potentially corrupt if the
network connection died.

14 years agos4-selftest: fix selftest-vars script.
Günther Deschner [Sat, 20 Mar 2010 23:05:00 +0000 (00:05 +0100)]
s4-selftest: fix selftest-vars script.

Tridge, please check.

Guenther

14 years agos4:dsdb Add a shortcut sequence number for schema reloads
Andrew Bartlett [Mon, 22 Mar 2010 07:44:51 +0000 (18:44 +1100)]
s4:dsdb Add a shortcut sequence number for schema reloads

This uses the ldb sequence number, in a hope to detect an unchanged
schema quicker.

Andrew Bartlett

14 years agos4:dsdb Rework schema loading and add schema reloading
Andrew Bartlett [Mon, 22 Mar 2010 05:03:33 +0000 (16:03 +1100)]
s4:dsdb Rework schema loading and add schema reloading

This commit reworks Samba4's schema loading code to detect when it
needs to reload the schema.  This is done by watching the @REPLCHANGED
special DN.

The reload happens by means of a callback, which is only set when the
schema is loaded from the ldb - not when loaded from an LDIF file or
DRS.

We also rework the global schema handling - instead of storing the
pointer to the global schema in each ldb, we store a flag indicating
that the global schema should be returned at run time.  This makes it
much easier to switch to a new global schema.

Andrew Bartlett

14 years agos4:dsdb Move dsdb_save_partition_usn() to be a module helper function
Andrew Bartlett [Mon, 22 Mar 2010 05:00:39 +0000 (16:00 +1100)]
s4:dsdb Move dsdb_save_partition_usn() to be a module helper function

This function should not traverse the module stack again, but instead
run from this point.  Also add a matching
dsdb_module_load_partition_usn() and change repl_meta_data to match.

Andrew Bartlett

14 years agos4:schema Expand the schema structure
Andrew Bartlett [Mon, 22 Mar 2010 04:41:51 +0000 (15:41 +1100)]
s4:schema Expand the schema structure

We now store the location of the schema in the schema, and provide
hooks for a future schema reloading mechanism.

Andrew Bartlett

14 years agos4:dsdb Remove unused 'dsdb_make_schema_global' call from pyglue
Andrew Bartlett [Mon, 22 Mar 2010 04:20:47 +0000 (15:20 +1100)]
s4:dsdb Remove unused 'dsdb_make_schema_global' call from pyglue

14 years agos4:dsdb Add 'const' to some struct dsdb_schema variables
Andrew Bartlett [Mon, 22 Mar 2010 04:19:55 +0000 (15:19 +1100)]
s4:dsdb Add 'const' to some struct dsdb_schema variables

We don't currently require this, but we may move this way in future.

14 years agos4:dsdb Don't load the schema unconditionally
Andrew Bartlett [Mon, 22 Mar 2010 04:17:58 +0000 (15:17 +1100)]
s4:dsdb Don't load the schema unconditionally

Schema loads now come at a price, so avoid doing them if we don't have
to (such as when doing an @REPLCHANGED or other special DN based
search).

Andrew Bartlett

14 years agos3: file_walk_table -> files_forall
Volker Lendecke [Mon, 22 Mar 2010 08:16:57 +0000 (09:16 +0100)]
s3: file_walk_table -> files_forall

This is more in line with the rest of the Samba code, like connections_forall
etc.

14 years agos3: Fix some nonempty blank lines
Volker Lendecke [Mon, 22 Mar 2010 08:11:24 +0000 (09:11 +0100)]
s3: Fix some nonempty blank lines

14 years agos4:registry - "patchfile.c" - consider also the hives in the generated diffs
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 23:13:02 +0000 (00:13 +0100)]
s4:registry - "patchfile.c" - consider also the hives in the generated diffs

Apparently the diffs for the hives weren't generated previously.

14 years agos4:registry - "patchfile.c" - fix a typo
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 23:02:06 +0000 (00:02 +0100)]
s4:registry - "patchfile.c" - fix a typo

14 years agos4:regtree - fix counter variables to be "unsigned"
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 22:41:50 +0000 (23:41 +0100)]
s4:regtree - fix counter variables to be "unsigned"

14 years agos4:registry - "LDB backend" - "reg_ldb_unpack_value"
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 22:36:09 +0000 (23:36 +0100)]
s4:registry - "LDB backend" - "reg_ldb_unpack_value"

When the name isn't found it is the default value. Call it "" to be consistent.

14 years agos4:registry - "LDB backend" - "reg_key_get_info"
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 21:01:06 +0000 (22:01 +0100)]
s4:registry - "LDB backend" - "reg_key_get_info"

Consider also the default value (if it exists) as value. That means:
- count it when setting "num_values"
- take also his buffer length as a candidate for the maximum value buffer length

This is what Windows does.

14 years agos4:registry - "LDB backend" - "ldb_get_default_value"
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 21:57:31 +0000 (22:57 +0100)]
s4:registry - "LDB backend" - "ldb_get_default_value"

There exist also key objects (the hives) which don't contain a "key" entry at
all. This prevented to display their default value (my fault).

14 years agos4:registry - "LDB backend" - make the key argument "const" of ldb_get_default_value
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 21:02:19 +0000 (22:02 +0100)]
s4:registry - "LDB backend" - make the key argument "const" of ldb_get_default_value

14 years agos4:registry - "LDB backend" - fix indentation
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 20:51:06 +0000 (21:51 +0100)]
s4:registry - "LDB backend" - fix indentation

14 years agoFix an uninitialized variable
Volker Lendecke [Sun, 21 Mar 2010 19:59:13 +0000 (20:59 +0100)]
Fix an uninitialized variable

14 years agos3: Fix bug 7202 for multi-threaded applications
Volker Lendecke [Sun, 21 Mar 2010 16:49:06 +0000 (17:49 +0100)]
s3: Fix bug 7202 for multi-threaded applications

Thanks to Sergey Tereschenko <serg.partizan@gmail.com> for providing good
feedback!

Volker

14 years agoUse TALLOC_FREE in talloc_pop()
Volker Lendecke [Sun, 21 Mar 2010 14:55:04 +0000 (15:55 +0100)]
Use TALLOC_FREE in talloc_pop()

14 years agoUse calloc instead of ZERO_STRUCTP in talloc_stackframe_create()
Volker Lendecke [Sun, 21 Mar 2010 14:16:27 +0000 (15:16 +0100)]
Use calloc instead of ZERO_STRUCTP in talloc_stackframe_create()

14 years agoTrim an overlong line
Volker Lendecke [Sun, 21 Mar 2010 14:14:48 +0000 (15:14 +0100)]
Trim an overlong line

14 years agos4:regshell - here we don't need a newline - "ctime" itself provides one
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 15:02:36 +0000 (16:02 +0100)]
s4:regshell - here we don't need a newline - "ctime" itself provides one

14 years agos4:regshell - don't return an error code if we get a security descriptors error
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 14:54:17 +0000 (15:54 +0100)]
s4:regshell - don't return an error code if we get a security descriptors error

s4 itself doesn't support them so print only the error code out (in s4's case
WERR_NOT_SUPPORTED).

14 years agos4:registry - "LDB backend" - reg_key_get_info - adapt max. subkey and value length
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 14:33:52 +0000 (15:33 +0100)]
s4:registry - "LDB backend" - reg_key_get_info - adapt max. subkey and value length

Those lengths are measured in UTF8 string lengths and not in UTF16 ones (the
returned strings are generally in this format). Discovered this by checking the
s3 registry code.
Therefore we have to multiply the both numbers by two.

Discovered with the "regedt32" (old NT registry editor).

14 years agos4:WINREG RPC server - don't check for the "name" size in "EnumValue"
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 14:12:37 +0000 (15:12 +0100)]
s4:WINREG RPC server - don't check for the "name" size in "EnumValue"

This isn't needed at all since:
1.) a new name object is created and sent back to the client
2.) the "size" seems to be the size of the "name" pointer. On my test with the
    "regedt32" program this has always been "4".

14 years agos4:torture - WINREG RPC - reactivate test "SetValueExtended" for s4
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 13:30:53 +0000 (14:30 +0100)]
s4:torture - WINREG RPC - reactivate test "SetValueExtended" for s4

Should be definitely fixed now.

14 years agos4:WINREG RPC - we support only non-volatile keys
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 13:20:41 +0000 (14:20 +0100)]
s4:WINREG RPC - we support only non-volatile keys

14 years agos4:registry - "LDB backend" - don't test for "0" as string termination on binary...
Matthias Dieter Wallnöfer [Sun, 21 Mar 2010 13:10:17 +0000 (14:10 +0100)]
s4:registry - "LDB backend" - don't test for "0" as string termination on binary and unknown typed values

14 years agos4:WINREG RPC - specify the performed create action for "CreateKey"
Matthias Dieter Wallnöfer [Fri, 19 Mar 2010 19:23:36 +0000 (20:23 +0100)]
s4:WINREG RPC - specify the performed create action for "CreateKey"

To make the WINREG RPC testsuite happy.

14 years agos4:registry - handle type "DWORD_BIG_ENDIAN" as type "DWORD"
Matthias Dieter Wallnöfer [Fri, 19 Mar 2010 18:55:32 +0000 (19:55 +0100)]
s4:registry - handle type "DWORD_BIG_ENDIAN" as type "DWORD"

Further tests show that (at least per default) there aren't any differences
between them.

14 years agos4:torture WINREG - enhance test for "QWORD" type
Matthias Dieter Wallnöfer [Fri, 19 Mar 2010 18:50:17 +0000 (19:50 +0100)]
s4:torture WINREG - enhance test for "QWORD" type

We need to know how this behaves.

14 years agos4:torture WINREG - enhance test for "DWORD_BIG_ENDIAN" type
Matthias Dieter Wallnöfer [Fri, 19 Mar 2010 18:40:07 +0000 (19:40 +0100)]
s4:torture WINREG - enhance test for "DWORD_BIG_ENDIAN" type

We need to know how this behaves.

14 years agos4:registry - "LDB backend" - fix up memory allocation for dynamic integers
Matthias Dieter Wallnöfer [Fri, 19 Mar 2010 18:14:44 +0000 (19:14 +0100)]
s4:registry - "LDB backend" - fix up memory allocation for dynamic integers

We don't need to reserve memory for NULL termination when storing data as
integers.

14 years agos4:registry - "LDB backend" - Fix up the storage of binary REG_SZ/REG_EXPAND_SZ values
Matthias Dieter Wallnöfer [Fri, 19 Mar 2010 17:23:00 +0000 (18:23 +0100)]
s4:registry - "LDB backend" - Fix up the storage of binary REG_SZ/REG_EXPAND_SZ values

There seem to exist also UTF16 sequences which have byte sizes of a multiple of
two but are invalid (gd's winreg test shows this).

14 years agos3: Open winbindd_cache.tdb with read/write access.
Bo Yang [Sun, 21 Mar 2010 08:00:26 +0000 (16:00 +0800)]
s3: Open winbindd_cache.tdb with read/write access.

Open winbindd_cache.tdb with read/write access when validate the cache,
otherwise, validation fails to get lock in tdb_check. It results in
validation failure even the cache is good.

Signed-off-by: Bo Yang <boyang@samba.org>
14 years agos3: Fix bug 7202
Volker Lendecke [Sat, 20 Mar 2010 14:23:17 +0000 (15:23 +0100)]
s3: Fix bug 7202

Make sure _nss_wins_gethostbyname_r has a talloc stackframe available

Thanks to Sergey Tereschenko <serg.partizan@gmail.com> for reporting the bug!

Volker

14 years agobuild: useful shell vars for setting up selftest
Andrew Tridgell [Fri, 19 Mar 2010 06:24:53 +0000 (17:24 +1100)]
build: useful shell vars for setting up selftest

14 years agosubunit: fixed reporting of unexpected failures
Andrew Tridgell [Fri, 19 Mar 2010 03:26:18 +0000 (14:26 +1100)]
subunit: fixed reporting of unexpected failures

14 years agosubunit: keep total error and failure counts
Andrew Tridgell [Fri, 19 Mar 2010 03:24:31 +0000 (14:24 +1100)]
subunit: keep total error and failure counts

14 years agos4-selftest: skip RPC-DFS for s4 entirely.
Günther Deschner [Sat, 20 Mar 2010 01:56:20 +0000 (02:56 +0100)]
s4-selftest: skip RPC-DFS for s4 entirely.

Guenther

14 years agos4-smbtorture: rework RPC-DFS test a bit.
Günther Deschner [Fri, 19 Mar 2010 21:37:53 +0000 (22:37 +0100)]
s4-smbtorture: rework RPC-DFS test a bit.

Guenther

14 years agos3-selftest: use proper names for samba3 dcerpc tests.
Günther Deschner [Fri, 19 Mar 2010 18:59:15 +0000 (19:59 +0100)]
s3-selftest: use proper names for samba3 dcerpc tests.

Guenther

14 years agos4-smbtorture: put all RPC-SAMB3-X torture tests into their own torture_suite.
Günther Deschner [Fri, 19 Mar 2010 18:58:24 +0000 (19:58 +0100)]
s4-smbtorture: put all RPC-SAMB3-X torture tests into their own torture_suite.

Guenther

14 years agos4:librpc/rpc: add NCACN_INTERNAL from s3
Stefan Metzmacher [Fri, 19 Mar 2010 16:38:32 +0000 (17:38 +0100)]
s4:librpc/rpc: add NCACN_INTERNAL from s3

metze

14 years agos3:librpc: remove unused stuff
Stefan Metzmacher [Wed, 10 Mar 2010 13:33:58 +0000 (14:33 +0100)]
s3:librpc: remove unused stuff

metze

14 years agos3-selftest: enable RAP calls testsuite against samba3.
Günther Deschner [Fri, 19 Mar 2010 08:19:39 +0000 (09:19 +0100)]
s3-selftest: enable RAP calls testsuite against samba3.

Guenther

14 years agos4-smbtorture: skip RAP netservergetinfo level 1 test against s3.
Günther Deschner [Fri, 19 Mar 2010 09:54:12 +0000 (10:54 +0100)]
s4-smbtorture: skip RAP netservergetinfo level 1 test against s3.

Guenther

14 years agos3-selftest: rearrange uid/gid calculation to achieve correct membership.
Günther Deschner [Fri, 19 Mar 2010 09:33:54 +0000 (10:33 +0100)]
s3-selftest: rearrange uid/gid calculation to achieve correct membership.

(make test variant)

Guenther

14 years agos3-selftest: rearrange uid/gid calculation to achieve correct membership.
Günther Deschner [Fri, 19 Mar 2010 09:23:39 +0000 (10:23 +0100)]
s3-selftest: rearrange uid/gid calculation to achieve correct membership.

Guenther

14 years agonss_wrapper.pl: allow to specify gid for new users.
Günther Deschner [Fri, 19 Mar 2010 08:50:56 +0000 (09:50 +0100)]
nss_wrapper.pl: allow to specify gid for new users.

Guenther

14 years agoerror_codes: fix NT_STATUS_RPC_UNKNOWN_IF typo.
Günther Deschner [Fri, 19 Mar 2010 08:30:36 +0000 (09:30 +0100)]
error_codes: fix NT_STATUS_RPC_UNKNOWN_IF typo.

Metze, please check.

Guenther

14 years agos4-smbtorture: use torture_context in policy function in RPC-LSA-LOOKUP test.
Günther Deschner [Thu, 18 Mar 2010 22:54:14 +0000 (23:54 +0100)]
s4-smbtorture: use torture_context in policy function in RPC-LSA-LOOKUP test.

Guenther