Matthias Dieter Wallnöfer
7b54964a25
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.
2010-03-21 23:19:32 +01:00
Matthias Dieter Wallnöfer
773faa5063
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).
2010-03-21 23:02:31 +01:00
Matthias Dieter Wallnöfer
b7f129f5c4
s4:registry - "LDB backend" - make the key argument "const" of ldb_get_default_value
2010-03-21 22:19:12 +01:00
Matthias Dieter Wallnöfer
ea621efee7
s4:registry - "LDB backend" - fix indentation
2010-03-21 22:04:28 +01:00
Volker Lendecke
56940a28ff
Fix an uninitialized variable
2010-03-21 21:01:28 +01:00
Volker Lendecke
fc80ff4002
s3: Fix bug 7202 for multi-threaded applications
...
Thanks to Sergey Tereschenko <serg.partizan@gmail.com> for providing good
feedback!
Volker
2010-03-21 17:50:36 +01:00
Volker Lendecke
d097d9fb09
Use TALLOC_FREE in talloc_pop()
2010-03-21 17:12:23 +01:00
Volker Lendecke
0f3040a61f
Use calloc instead of ZERO_STRUCTP in talloc_stackframe_create()
2010-03-21 17:12:23 +01:00
Volker Lendecke
6695b0e87d
Trim an overlong line
2010-03-21 17:12:23 +01:00
Matthias Dieter Wallnöfer
6c39b10f1d
s4:regshell - here we don't need a newline - "ctime" itself provides one
2010-03-21 16:02:36 +01:00
Matthias Dieter Wallnöfer
d4425ecea5
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).
2010-03-21 15:56:26 +01:00
Matthias Dieter Wallnöfer
ad83995de5
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).
2010-03-21 15:33:52 +01:00
Matthias Dieter Wallnöfer
2bbdb2cd34
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".
2010-03-21 15:12:37 +01:00
Matthias Dieter Wallnöfer
0f2cf82e5e
s4:torture - WINREG RPC - reactivate test "SetValueExtended" for s4
...
Should be definitely fixed now.
2010-03-21 14:30:53 +01:00
Matthias Dieter Wallnöfer
811c601ae0
s4:WINREG RPC - we support only non-volatile keys
2010-03-21 14:30:45 +01:00
Matthias Dieter Wallnöfer
cc4e5c8beb
s4:registry - "LDB backend" - don't test for "0" as string termination on binary and unknown typed values
2010-03-21 14:10:17 +01:00
Matthias Dieter Wallnöfer
1cdeb0c0d2
s4:WINREG RPC - specify the performed create action for "CreateKey"
...
To make the WINREG RPC testsuite happy.
2010-03-21 14:03:58 +01:00
Matthias Dieter Wallnöfer
2f79217964
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.
2010-03-21 14:03:57 +01:00
Matthias Dieter Wallnöfer
d82b325bc3
s4:torture WINREG - enhance test for "QWORD" type
...
We need to know how this behaves.
2010-03-21 14:03:56 +01:00
Matthias Dieter Wallnöfer
66f94ca3ec
s4:torture WINREG - enhance test for "DWORD_BIG_ENDIAN" type
...
We need to know how this behaves.
2010-03-21 14:03:56 +01:00
Matthias Dieter Wallnöfer
a55031792d
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.
2010-03-21 14:03:55 +01:00
Matthias Dieter Wallnöfer
1d49a266ab
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).
2010-03-21 14:03:23 +01:00
Bo Yang
6e48267c28
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>
2010-03-21 16:00:26 +08:00
Volker Lendecke
09f270e748
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
2010-03-20 14:38:13 +01:00
Andrew Tridgell
c04922ec20
build: useful shell vars for setting up selftest
2010-03-20 16:50:27 +11:00
Andrew Tridgell
429102e6bd
subunit: fixed reporting of unexpected failures
2010-03-20 16:50:27 +11:00
Andrew Tridgell
77b77e6ba1
subunit: keep total error and failure counts
2010-03-20 16:50:27 +11:00
Günther Deschner
a52b3dfb26
s4-selftest: skip RPC-DFS for s4 entirely.
...
Guenther
2010-03-20 02:56:20 +01:00
Günther Deschner
3cb56942ed
s4-smbtorture: rework RPC-DFS test a bit.
...
Guenther
2010-03-19 22:46:16 +01:00
Günther Deschner
5d5c6e1320
s3-selftest: use proper names for samba3 dcerpc tests.
...
Guenther
2010-03-19 20:23:33 +01:00
Günther Deschner
f5ab6fd788
s4-smbtorture: put all RPC-SAMB3-X torture tests into their own torture_suite.
...
Guenther
2010-03-19 20:23:33 +01:00
Stefan Metzmacher
f4700296b3
s4:librpc/rpc: add NCACN_INTERNAL from s3
...
metze
2010-03-19 17:38:32 +01:00
Stefan Metzmacher
b82f168c3c
s3:librpc: remove unused stuff
...
metze
2010-03-19 17:05:46 +01:00
Günther Deschner
4d6368f5f5
s3-selftest: enable RAP calls testsuite against samba3.
...
Guenther
2010-03-19 10:56:11 +01:00
Günther Deschner
3144a988e5
s4-smbtorture: skip RAP netservergetinfo level 1 test against s3.
...
Guenther
2010-03-19 10:56:03 +01:00
Günther Deschner
53d35fc958
s3-selftest: rearrange uid/gid calculation to achieve correct membership.
...
(make test variant)
Guenther
2010-03-19 10:33:54 +01:00
Günther Deschner
20d73f768d
s3-selftest: rearrange uid/gid calculation to achieve correct membership.
...
Guenther
2010-03-19 10:23:39 +01:00
Günther Deschner
f06779629d
nss_wrapper.pl: allow to specify gid for new users.
...
Guenther
2010-03-19 09:54:10 +01:00
Günther Deschner
e7cc45cb14
error_codes: fix NT_STATUS_RPC_UNKNOWN_IF typo.
...
Metze, please check.
Guenther
2010-03-19 09:30:36 +01:00
Günther Deschner
dd4e2ebda5
s4-smbtorture: use torture_context in policy function in RPC-LSA-LOOKUP test.
...
Guenther
2010-03-19 09:21:15 +01:00
Stefan Metzmacher
421a926237
s3:libsmb/nterr.c: fix/add NT_STATUS_RPC_* codes
...
metze
2010-03-18 15:27:47 +01:00
Günther Deschner
a949c70ed8
s3-selftest: fix Samba3.pm provisioning after uid/gid changes.
...
Guenther
2010-03-18 15:12:07 +01:00
Günther Deschner
05cad2ea2f
s3-selftest: make sure we do not have duplicate uids/gids in nsswrapper.
...
Also make sure we only add root user when needed, Jeremy please check.
Guenther
2010-03-18 15:08:27 +01:00
Günther Deschner
38a46fa32b
s3-selftest: make sure we do not have duplicate uids/gids in nsswrapper.
...
Guenther
2010-03-18 15:08:26 +01:00
Stefan Metzmacher
6a1f8e67eb
libcli/util: add more NT_STATUS_RPC_* defines
...
metze
2010-03-18 14:25:57 +01:00
Stefan Metzmacher
30aa55a998
pidl:Samba4/Python: make use of dcerpc_binding_handle stubs
...
metze
2010-03-18 13:34:04 +01:00
Stefan Metzmacher
5e9ce495ee
s4:librpc/rpc: let pyrpc make use of dcerpc_binding_handle stubs
...
metze
2010-03-18 13:34:04 +01:00
Stefan Metzmacher
f055fce74c
pidl:Samba4/Python: remove compiler warnings
...
metze
2010-03-18 13:34:04 +01:00
Stefan Metzmacher
2624bafca5
pidl:Samba4/Python: remove compiler warnings when using -Wc++
...
metze
2010-03-18 13:34:04 +01:00
Stefan Metzmacher
fd86c9b687
s4:utils/net/drs: make use of dcerpc_binding_handle stubs
...
metze
2010-03-18 12:39:43 +01:00