Matthias Dieter Wallnöfer
00934d4c2f
s4:registry - fix up the output of hexadecimal values
...
Use a fixed-length representation to avoid platform-specific issues.
2010-03-15 13:27:35 +01:00
Matthias Dieter Wallnöfer
80300af278
s4:registry - add support for REG_QWORD values
...
Basically the same as REG_DWORD but these are eight byte long.
2010-03-15 13:27:34 +01:00
Günther Deschner
c3eb509dea
s4-smbtorture: fix torture_comment in RPC-SPOOLSS.
...
Guenther
2010-03-15 10:20:27 +01:00
Stefan Metzmacher
f49d5e3288
s4:tortore/libnet: fix crash bugs because of incorrect function prototypes
...
metze
2010-03-15 09:40:28 +01:00
Matthias Dieter Wallnöfer
eb8c8a0eca
s4:registry - util.c - add harder checks for inputs on "reg_val_data_string"
...
("NULL" result is error on most data types).
2010-03-14 18:46:23 +01:00
Matthias Dieter Wallnöfer
508c218eb2
Revert "s4-smbtorture: skip extended SetValue test against Samba (both dont survive)."
...
This reverts commit 40e2c04f8aba605e951810751222559ea0d32ebd.
s4 should support now also the extended "SetValue" tests.
2010-03-14 18:46:23 +01:00
Matthias Dieter Wallnöfer
bb1ac0c75c
s4:registry - ldb.c - provide a mechanism for storing UTF8/binary REG_DWORD values
...
We need to support this as gd's WINREG torture test shows.
2010-03-14 18:46:22 +01:00
Matthias Dieter Wallnöfer
fbce5ded30
s4:registry - ldb.c - provide a mechansim for storing UTF8/binary REG_SZ/REG_EXPAND_SZ values
...
We need to support this as gd's WINREG torture test shows.
2010-03-14 18:46:22 +01:00
Matthias Dieter Wallnöfer
95bfd17e08
s4:registry - ldb.c - fix up a strange LDB filter
2010-03-14 18:46:21 +01:00
Matthias Dieter Wallnöfer
f72790daaa
s4:registry - ldb.c - fix up the memory handling in "reg_ldb_unpack_value"
...
Don't substitute existing data blobs with new ones and make sure, that the
result objects in the data blob don't have memory dependencies of the LDB value
input.
2010-03-14 18:46:21 +01:00
Matthias Dieter Wallnöfer
33eb1c95e5
s4:registry - ldb.c - check more for possible "Out of memory" circumstances
2010-03-14 18:46:21 +01:00
Matthias Dieter Wallnöfer
9b3c45754e
s4:registry - ldb.c - remove superfluous "query" variable
2010-03-14 18:46:21 +01:00
Matthias Dieter Wallnöfer
cd3c870333
s4:registry - ldb.c - Consider result values in "reg_ldb_pack_value"
...
Break on errors and return NULL and otherwise the message pointer.
2010-03-14 18:46:20 +01:00
Matthias Dieter Wallnöfer
3c6792bc76
s4:registry - ldb.c - Move the "val" structure
...
Move it into the REG_SZ/REG_EXPAND_SZ case block since it's used only there.
Plus convert it from static into dynamic talloc'ed.
2010-03-14 18:46:20 +01:00
Volker Lendecke
727fb85782
s3: Remove some unused #defines
2010-03-14 17:42:49 +01:00
Volker Lendecke
2111fe5255
s3: Use a switch to implement map_nt_error_from_tdb
...
First, this immediately gave me the warning that TDB_ERR_NESTING was not
covered and second, this saved 48 bytes in the .o :-)
2010-03-14 17:42:49 +01:00
Volker Lendecke
6c00a3db24
s3: Remove some unused code
2010-03-14 17:42:49 +01:00
Volker Lendecke
e00327323d
s3: Fix some nonempty blank lines
2010-03-14 17:42:49 +01:00
Matthias Dieter Wallnöfer
5e06110bc1
Reintroduce "s4:provision Improve the handling of provision errors""
...
This mainly reverts commit f0bc02d74c16bc013e9fdab46ef271cf45873453.
Jelmer pointed out a way how we can achieve the same error handling with an
older syntax also on Python 2.4+.
2010-03-14 10:34:26 +01:00
Volker Lendecke
b4826b9393
s3: Convert unexpected.tdb to use tdb_wrap_open
2010-03-13 20:20:37 +01:00
Volker Lendecke
cfc44d2441
s3: Make tdb_wrap_open more robust
...
This hides the use of talloc_reference from the caller, making it impossible to
wrongly call talloc_free() on the result.
2010-03-13 20:20:37 +01:00
Matthias Dieter Wallnöfer
5eeb1fc447
NSS:winbind_struct_protocol.h - fix typo
2010-03-13 12:58:58 +01:00
Matthias Dieter Wallnöfer
f0bc02d74c
Revert "s4:provision Improve the handling of provision errors"
...
This reverts partially commit 027123199e13cc02ae4edadd8f0dd0f0660e1193.
Andrew, this is not Python 2.4+ compatible
2010-03-13 12:37:45 +01:00
Stefan Metzmacher
b52b357ede
s4:torture/rpc/spoolss.c: fix compiler warnings
...
metze
2010-03-13 08:20:24 +01:00
Günther Deschner
8f07737714
s4-smbtorture: warn on unexpected devicenames in spoolss devicemode test.
...
Guenther
2010-03-13 02:26:59 +01:00
Günther Deschner
6833094d6b
s4-smbtorture: send even more random data in extended winreg SetValue test.
...
Guenther
2010-03-13 01:38:57 +01:00
Günther Deschner
33d9901ecb
s4-smbtorture: fix build and handle in spoolss test.
...
it's friday night...
Guenther
2010-03-13 01:34:31 +01:00
Günther Deschner
5e48aa7ebb
s3-spoolss: wrap _spoolss_EnumPrinterData() around _spoolss_EnumPrinterDataEx().
...
This removes some dependencies to registry code.
Guenther
2010-03-13 01:12:22 +01:00
Günther Deschner
d39ece17e0
s4-smbtorture: add spoolss EnumPrinterData vs EnumPrinterDataEx consistency test.
...
Guenther
2010-03-13 01:12:22 +01:00
Günther Deschner
ab33b991de
s4-smbtorture: refactor spoolss EnumPrinterData test.
...
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
1d9d617d97
s4-smbtorture: refactor SetPrinterData() calls a little more.
...
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
3de2f0475d
s4-smbtorture: re-arrange spoolss_SetPrinterData() tests.
...
Guenther
2010-03-13 01:12:21 +01:00
Günther Deschner
f064a182eb
s4-smbtorture: make sure RPC-SPOOLSS passes against 64bit archs (w2k8r2).
...
Guenther
2010-03-13 01:12:21 +01:00
Jeremy Allison
a2be29dfa3
Missed a couple more uses of conn->server_info->ptok that need to be get_current_nttok(conn)
...
Centralize the root check into smb1_file_se_access_check()
so this is used by modules/vfs_acl_common.c also.
Jeremy.
2010-03-12 14:31:47 -08:00
Jeremy Allison
e80ceb1d73
Remove more uses of "extern struct current_user current_user;".
...
Use accessor functions to get to this value. Tidies up much of
the user context code. Volker, please look at the changes in smbd/uid.c
to familiarize yourself with these changes as I think they make the
logic in there cleaner.
Cause smbd/posix_acls.c code to look at current user context, not
stored context on the conn struct - allows correct use of these
function calls under a become_root()/unbecome_root() pair.
Jeremy.
2010-03-12 13:56:51 -08:00
Matthias Dieter Wallnöfer
31b0417f7d
s4:provision.py - small output improvement
2010-03-12 21:04:22 +01:00
Matthias Dieter Wallnöfer
b3f727e6a5
s4:util.c - "dsdb_check_optional_feature" - counter should be "unsigned"
2010-03-12 18:56:44 +01:00
Volker Lendecke
e3913084cd
s3: Add "net registry increment"
...
A convenience function to increment a DWORD value under a (cluster-wide) lock
2010-03-12 16:55:28 +01:00
Stefan Metzmacher
0f210749a7
s4:torture/rpc/dfs.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:53 +01:00
Stefan Metzmacher
81ac17d12d
s4:torture/rpc/echo.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:53 +01:00
Stefan Metzmacher
f1633934cd
s4:torture/libnet: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:52 +01:00
Stefan Metzmacher
7be154a616
s4:torture/ntp: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:52 +01:00
Stefan Metzmacher
9e0557a149
s4:libnet/libnet_time.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:52 +01:00
Stefan Metzmacher
07a28b1923
s4:libnet/libnet_share.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:52 +01:00
Stefan Metzmacher
02c61f520c
s4:libnet/libnet_samsync.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:51 +01:00
Stefan Metzmacher
19d229a11b
s4:libnet/libnet_passwd.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:51 +01:00
Stefan Metzmacher
bec3d8e7ae
s4:libnet/libnet_join.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:51 +01:00
Stefan Metzmacher
7807de5693
s4:libcli/util/clilsa.c: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:50 +01:00
Stefan Metzmacher
dea7c4f999
s4:client: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:50 +01:00
Stefan Metzmacher
580d491faa
s4:rpc_server/spoolss: make use of dcerpc_binding_handle stubs
...
metze
2010-03-12 15:25:50 +01:00