1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

3046 Commits

Author SHA1 Message Date
Andrew Tridgell
275df9a5c3 r4182: fixed trans2 mkdir, allowing mkdir with an initial EA list
(This used to be commit 7d981c29c28391813c7f93245f64b3ee108378a4)
2007-10-10 13:07:23 -05:00
Stefan Metzmacher
6ed5055d8e r4181: use int32 for level
metze
(This used to be commit 3a6047bc47671bfab14272dfa81f80f4457b209c)
2007-10-10 13:07:23 -05:00
Stefan Metzmacher
3483fb70e9 r4180: use the same syntax as the other torture tests
metze
(This used to be commit 00395ffcc3cc94216619ca827ff6a09b0cc28de1)
2007-10-10 13:07:23 -05:00
Stefan Metzmacher
15581d3e1e r4179: - nicer code layout
- and disable DsReplicaSync by default it kill lsass.exe
  on my w2k box

metze
(This used to be commit 8373b2d4c7decd49a361637e03b24b311aed302c)
2007-10-10 13:07:23 -05:00
Stefan Metzmacher
7d24d23e55 r4178: the level is mostly singed not unsigned
metze
(This used to be commit 6411c00b3c2c4e11da2b41bfa53e0d42368e3e76)
2007-10-10 13:07:23 -05:00
Stefan Metzmacher
a7c70d4c5e r4177: add some more error codes
metze
(This used to be commit e624bb52886db80a3600b79494ad1150592efebe)
2007-10-10 13:07:23 -05:00
Stefan Metzmacher
985e86b04d r4176: I just remeber that I have already implement STR_CONFORMANT
so use it in DsReplicaSync()

metze
(This used to be commit ca610da1fc3c059d35e17238e8cac5e5b38790c3)
2007-10-10 13:07:23 -05:00
Jelmer Vernooij
fedca61e8f r4175: InitiateSystemShutdownEx IDL and torture test
(This used to be commit 3538130bf5d656ed4b0e2c84294e995814860e34)
2007-10-10 13:07:22 -05:00
Stefan Metzmacher
edf98253fa r4174: nicer debug output
metze
(This used to be commit 79bdcabcc57da9f7d01b09d3b33fe22770c6e7e8)
2007-10-10 13:07:22 -05:00
Andrew Tridgell
fbd8c61ff7 r4173: - new t2open code, that can cope with "create with EAs". Many thanks
to kukks on #samba-technical for the sniffs that allowed me to work
  this out

- much simpler ntvfs open generic mapping code

- added t2open create with EA torture test to RAW-OPEN test
(This used to be commit a56d95ad89b4f32a05974c4fe9a816d67aa369e3)
2007-10-10 13:07:22 -05:00
Stefan Metzmacher
e08e2645de r4172: commit a DsReplicaSync() torture test
this not make much sense as we don't send the correct nc_name
but it shows that doesn't get a NDR_FAULT anymore,
we just need handle the conformant strings in pidl

metze
(This used to be commit be449f628faf85a163852d18bc724984d3afefd2)
2007-10-10 13:07:22 -05:00
Andrew Tridgell
72273b5046 r4171: an attempt at better IDL for DsReplicaSync
(This used to be commit a4ebef4f53d0eb5aef1bc4ae76ac9ad66bf3b528)
2007-10-10 13:07:22 -05:00
Andrew Tridgell
3a17866503 r4170: don't check array size for conformant arrays (they are checked separately)
(This used to be commit e399834ae1aa9731d5d29c04d5b7b90e356dad6f)
2007-10-10 13:07:22 -05:00
Stefan Metzmacher
6acf7a782c r4169: add descriptions about binding and unc strings to the
smbtorture --usage --help output

metze
(This used to be commit 26a7f4cf5ec4e3697a715f4880468c7f30ba5948)
2007-10-10 13:07:22 -05:00
Jelmer Vernooij
1971d529b4 r4168: Implement QueryValue in the server
IDL for NotifyChangeKeyValue
(This used to be commit a40214243136ed5208a1bec494ad1fbf821524ba)
2007-10-10 13:07:21 -05:00
Jelmer Vernooij
4c202a20fa r4167: Fix CreateKey
Support CreateKey in the RPC registry backend
(This used to be commit ad8d9e6f73619332d93c38a1879233e199e8ba25)
2007-10-10 13:07:21 -05:00
Jelmer Vernooij
47fa1d33e4 r4166: More small API fixes, keep registry structs as small as possible.
Implement DelValue in the RPC server
(This used to be commit f6b9ec89af934e837069fb26c0e3491fc78ebc12)
2007-10-10 13:07:21 -05:00
Andrew Tridgell
fe01af9fb2 r4165: added a 100 element name cache to cope with some amount of seeking
back to filenames that have been deleted. This fixes the new os/2
delete test.
(This used to be commit 6d471db13ab132655a07e11533a559446e56fc00)
2007-10-10 13:07:21 -05:00
Andrew Tridgell
e60bf04d4f r4164: added a test that simulates a OS/2 file delete. This includes seek by
name back into a directory for files that no longer exist.
(This used to be commit 57204a1533687c5f7f2ee169f42584aea914154f)
2007-10-10 13:07:21 -05:00
Andrew Tridgell
08a409f9b9 r4163: 2nd attempt at fixing the OS/2 "del *" problem
(This used to be commit ae14905d9522dbdc1709ef110b9933adcb740a26)
2007-10-10 13:07:21 -05:00
Andrew Tridgell
bbe0328347 r4162: this should fix the delete/findnext problem from OS/2 clients. Thanks
again to kukks for the excellent and detailed bug report
(This used to be commit 7dfffe4ac0d6858ae6848708df1baa11a6819680)
2007-10-10 13:07:21 -05:00
Andrew Tridgell
1960714669 r4161: two more fixes for NT4 clients. Bugs found by kukks.
- nt4 doesn't setup the pfc flags correctly for rpc packet types
   other than normal requests, so don't check for fragmented packets
   unless they are of type request

 - ensure we give STATUS_BUFFER_OVERFLOW when we return a partial
   fragment in SMBtrans requests on ncacn_np
(This used to be commit 83ebffec3215c58c5cebf1a7c9a58904854203c8)
2007-10-10 13:07:20 -05:00
Andrew Tridgell
f2dbe46107 r4160: fixed the file_type in ntcreatex reply on a named pipe. NT4 requires this to be right.
(This used to be commit e22de9734f66bee3c9eaf8191fcae9fb06a0034f)
2007-10-10 13:07:20 -05:00
Andrew Tridgell
2f2b9c5662 r4159: fixed error return for writebraw
(This used to be commit 13c7794e02b0d5c83baa5efbe93e46defd38c8e1)
2007-10-10 13:07:20 -05:00
Jelmer Vernooij
65e688f5dd r4158: Fix IDL for InitiateShutdown and AbortShutdown and run both only
when dangerous tests are enabled.
(This used to be commit a763bd838558bdd7bcab3ca7ee91c1846d7a950f)
2007-10-10 13:07:20 -05:00
Jelmer Vernooij
59cfd5495e r4157: QueryMultipleValues IDL and torture test
Initialisation data pointer in QueryValue torture test
(This used to be commit 72618dfe95c785d3a3a71cc4a70b59696f2d418e)
2007-10-10 13:07:20 -05:00
Jelmer Vernooij
43ddb0a7ae r4156: GetKeySecurity() IDL and torture test
(This used to be commit 1c49de51aeb6041a3b53b8da7dc8e2bcf089bfe0)
2007-10-10 13:07:20 -05:00
Jelmer Vernooij
969e14eae9 r4155: More destinction between hives and predefined keys
(This used to be commit c37d6f3c581673d74e7ec6a644ab6a7d13a55535)
2007-10-10 13:07:20 -05:00
Jelmer Vernooij
6cf13f4d72 r4154: Add definitions for HKEY_PERFORMANCE_TEXT and HKEY_PERFORMANCE_NLSTEXT
Hives and predefined keys (HKEY_*) are not necessarily the same thing.
(This used to be commit 217e4e5841cfedb2b18dce3f89dd88ea4a36fe8f)
2007-10-10 13:07:19 -05:00
Andrew Tridgell
adbdb055ee r4151: added privilege attribute handling on samdb.
pvfs will now honor some privileges on ACLs, and it will be quite easy
to add the checks for more privileges in the necessary places, by
making calls to sec_privilege_check().
(This used to be commit 3549039d0fbc54f87ae679e7288b82b28713e487)
2007-10-10 13:07:19 -05:00
Andrew Tridgell
02a9aa0892 r4150: - add fns for manipulating the privilege_mask in a security_token
- add the hooks in access_check that check the privilege bitmasks for
  SEC_STD_DELETE and SEC_FLAG_SYSTEM_SECURITY
(This used to be commit 0fa3764edcabffe8f7d5e40f0097f97d0c4519c4)
2007-10-10 13:07:19 -05:00
Andrew Tridgell
dca888e51e r4148: add a default set of privileges to the core builtin accounts in the
sam. I decided to do it the simple way of making the privileges user
attributes. w2k doesn't expose the privileges via LDAP, so we are free
to store them in any way we like without breaking compatibility.
(This used to be commit 5f29f4c3079be2fa54b94e08c829dadccc4d14c4)
2007-10-10 13:06:31 -05:00
Andrew Tridgell
6ca874f71a r4147: converted from NT_USER_TOKEN to struct security_token
this is mostly just a tidyup, but also adds the privilege_mask, which
I will be using shortly in ACL checking.

note that I had to move the definition of struct security_token out of
security.idl as pidl doesn't yet handle arrays of pointers, and the
usual workaround (to use a intermediate structure) would make things
too cumbersome for this structure, especially given we never encode it
to NDR.
(This used to be commit 7b446af09b8050746bfc2c50e9d56aa94397cc1a)
2007-10-10 13:06:31 -05:00
Andrew Tridgell
280bb1cf0f r4146: an attempted fix for a OS/2 rename problem found by kukks - seems OS/2
is v senstive to SMB flags2 bits
(This used to be commit c232e21218e81ac9189b651478415e9fbd67bf78)
2007-10-10 13:06:30 -05:00
Andrew Tridgell
0470bb74e0 r4145: make sure we don't set the 32-bit error codes flag unless the client
can handle it, even for success packets (this bug was harmless, but
can be confusing in ethereal with old clients)
(This used to be commit 71e0c7b2ebbb01d64453c59e20911dc5008b9798)
2007-10-10 13:06:30 -05:00
Jelmer Vernooij
eda727b865 r4142: Check result value of OpenHKU and OpenHKCR
(This used to be commit bba4e878b4a93e67e02b8f1332b0889947ec1a11)
2007-10-10 13:06:30 -05:00
Jelmer Vernooij
0bde7a2944 r4141: Fix crash bug in ldb backend
(This used to be commit 5f64a60374486b9fc3d75786c3035a9017dd4d33)
2007-10-10 13:06:30 -05:00
Jelmer Vernooij
f0eff2525b r4140: Get rid of close_hive (replace it with talloc destructors).
(This used to be commit bcbfce7b0119538bab06801c97aa9c7d4bf3a6c6)
2007-10-10 13:06:30 -05:00
Andrew Tridgell
d792ee4883 r4139: 2nd attempt at fixing the null ptr in size_is() problem.
(This used to be commit 3040cd65151dbcc54404f9be9d1fbcf539c7b635)
2007-10-10 13:06:30 -05:00
Andrew Tridgell
ddcb89ccfc r4138: initialise 'type' in RPC-WINREG EnumValue test
(This used to be commit 952a26c561846def21d3d2f4d36cbe79a54f9eff)
2007-10-10 13:06:30 -05:00
Jelmer Vernooij
a9fa37d618 r4137: Make *_open_key take a registry_key instead of a hive (more efficient
in some cases)
(This used to be commit ddf7a331c58976f2c0b4a00390118f1acf60e3eb)
2007-10-10 13:06:30 -05:00
Andrew Tridgell
9f9e9b6477 r4136: when we have a size or switch variable that is a pointer we need to check that the server
hasn't given us a null pointer, otherwise we can segv when we dereference it. For example:

  [size_is(*size)] *x;
  uint32 *size;

if a broken server gave us x != NULL and size == NULL then we would crash. I've added
a check_null_pointer() call in pidl to catch this.
(This used to be commit 8cbd3f47a95367e861c6b99c44416a9ccef3c9ca)
2007-10-10 13:06:29 -05:00
Andrew Tridgell
6fb6174007 r4135: improve a debug message
(This used to be commit 4b45d3d2e86122dbe5bd258fc96ad674aba0d417)
2007-10-10 13:06:29 -05:00
Jelmer Vernooij
1cd129b102 r4133: Cache results of subkey and value queries
(This used to be commit 1e12971137f50077e04a0432572275baf4fde35e)
2007-10-10 13:06:29 -05:00
Jelmer Vernooij
444a867924 r4132: - Bunch of rather large fixes in the registry
- Added some README files

Not everything works yet, e.g. the EnumValue test appears to be broken.
(This used to be commit c169e86c1f52763b83e77e509f89cb91f9b69071)
2007-10-10 13:06:29 -05:00
Andrew Tridgell
60c69445f6 r4124: include locale.h to get LC_ALL in include/system/iconv.h
(This used to be commit 573230ea99136bd66d00bac18effd28b1e5ba76f)
2007-10-10 13:06:28 -05:00
Andrew Tridgell
06fbfade75 r4123: set locale to C to ensure ascii string functions work
thanks to Bjoern JACKE <samba@j3e.de> for pointing this out
(This used to be commit 53c4d0a7d83181afbe01bbbb0840cb2a086b45da)
2007-10-10 13:06:28 -05:00
Andrew Tridgell
b71dba6a76 r4118: don't assume that "unsigned int" is the same type as uint32_t
(This used to be commit 1ddab01d2ac0a51278cbd13d6d9369973c7a5b3a)
2007-10-10 13:06:28 -05:00
Andrew Tridgell
3c70b82f42 r4117: fixed EnumValue in winreg server
(This used to be commit f2f21033b65b82251b5ea0b2475ceb1bb3657fb3)
2007-10-10 13:06:28 -05:00
Andrew Tridgell
2f1193715f r4116: fixed compilation of EnumValue code in winreg rpc backend
thanks to volker for pointing this out
(This used to be commit 2b67f18bdb58164697efd428391d4cbc46398464)
2007-10-10 13:06:28 -05:00