samba.git
16 years agor4302: fixed all of the annoying gtk warnings. The code all seems to still work, but
Andrew Tridgell [Tue, 21 Dec 2004 03:28:26 +0000 (03:28 +0000)]
r4302: fixed all of the annoying gtk warnings. The code all seems to still work, but
given my lack of gtk experience, there are no guarantees.
(This used to be commit 11277b38a473022eb59f896d5e23aa1e56786008)

16 years agor4299: Store REG_SZ, REG_EXPAND_SZ and REG_DWORD values in human-readable (and human...
Jelmer Vernooij [Tue, 21 Dec 2004 00:31:18 +0000 (00:31 +0000)]
r4299: Store REG_SZ, REG_EXPAND_SZ and REG_DWORD values in human-readable (and human-editable) format in
the ldb registry backend.
(This used to be commit 6eafd055d1a7d45734a0112228e18ee59d1f7867)

16 years agor4298: Update to credentials.h after feedback from Andrew Bartlett
Jelmer Vernooij [Tue, 21 Dec 2004 00:01:02 +0000 (00:01 +0000)]
r4298: Update to credentials.h after feedback from Andrew Bartlett
Move pack/unpack of values in ldb registry backend to seperate functions
(This used to be commit ceb4e92735f6dae96bb0b9d98211c9808159e56a)

16 years agor4288: don't use struct dcerpc_interface_table anymore in the
Stefan Metzmacher [Mon, 20 Dec 2004 14:37:54 +0000 (14:37 +0000)]
r4288: don't use struct dcerpc_interface_table anymore in the
main rpc server code. let the backends specify a ndr_push/ndr_pull function
like we already do with the dispatch() function.

this allows an interface implmentation to work as real proxy
without needing to know the idl for an interface that means
just the plain decrypted payload can be forwarded

If someone want to write such a backend, patches are wellcome

metze
(This used to be commit a150bdf140d9165a05cbc7cac40b6e3c03a7bd3c)

16 years agor4284: fixed a problem with very large EA lists and OS/2 clients. These
Andrew Tridgell [Mon, 20 Dec 2004 03:12:09 +0000 (03:12 +0000)]
r4284: fixed a problem with very large EA lists and OS/2 clients. These
checks on allocations need to go in a lot more places, but at least
this is a start.
(This used to be commit 99b0dac2292d72e3a77f105e8f2ef5a3838d7e1b)

16 years agor4283: adding a privilege that an account already has is not an error
Andrew Tridgell [Sun, 19 Dec 2004 11:34:19 +0000 (11:34 +0000)]
r4283: adding a privilege that an account already has is not an error
(This used to be commit 2a4c562896aabe391d6f675433db2e519f0ce4b0)

16 years agor4282: removed a spurious error message now we remove index entries in the modify...
Andrew Tridgell [Sun, 19 Dec 2004 10:58:36 +0000 (10:58 +0000)]
r4282: removed a spurious error message now we remove index entries in the modify call
(This used to be commit 58fcc326241e73cc8a122e6130b5ff0d6a3b9232)

16 years agor4281: fixed an ldb indexing bug in ldb found by volker.
Andrew Tridgell [Sun, 19 Dec 2004 10:56:29 +0000 (10:56 +0000)]
r4281: fixed an ldb indexing bug in ldb found by volker.

index entries were not always being removed on modify
(This used to be commit 9c668e7b43dc2d82d3d639b64c53e887723ccba7)

16 years agor4280: added server side support for lsa_AddPrivilegesToAccount() and lsa_RemovePrivi...
Andrew Tridgell [Sun, 19 Dec 2004 07:50:19 +0000 (07:50 +0000)]
r4280: added server side support for lsa_AddPrivilegesToAccount() and lsa_RemovePrivilegesFromAccount()

these are the last of the server side privileges functions. We should
now have a complete privileges implementation.
(This used to be commit 76db300232f5557377dca059d17ea3c28a0a425c)

16 years agor4279: added IDL and test code for lsa_AddPrivilegesToAccount() and lsa_RemovePrivile...
Andrew Tridgell [Sun, 19 Dec 2004 07:20:55 +0000 (07:20 +0000)]
r4279: added IDL and test code for lsa_AddPrivilegesToAccount() and lsa_RemovePrivilegesFromAccount()
(This used to be commit 705b870c73995609c8d3ebb24418538bfe20c05b)

16 years agor4278: - added server support for lsa_EnumPrivsAccount()
Andrew Tridgell [Sun, 19 Dec 2004 06:41:27 +0000 (06:41 +0000)]
r4278: - added server support for lsa_EnumPrivsAccount()
(This used to be commit a80c82d2635fce42482982d904f265199a000e10)

16 years agor4277: - added server support for lsa_EnumAccounts()
Andrew Tridgell [Sun, 19 Dec 2004 05:53:13 +0000 (05:53 +0000)]
r4277: - added server support for lsa_EnumAccounts()

- expanded the lsa test suite to better test lsa_EnumAccounts()
(This used to be commit bafdb1772977d98fd57bb31a328af7cb1deee788)

16 years agor4276: added server side support for lsa_OpenAccount()
Andrew Tridgell [Sun, 19 Dec 2004 05:01:52 +0000 (05:01 +0000)]
r4276: added server side support for lsa_OpenAccount()
(This used to be commit 4716334502a245bc1ffafd3a8a00662cfbdf8ba8)

16 years agor4275: improve the share type info
Andrew Tridgell [Sun, 19 Dec 2004 04:23:29 +0000 (04:23 +0000)]
r4275: improve the share type info
(This used to be commit 750deb7f225b753f6c1547f7582f4edc4d817c58)

16 years agor4274: make the prototype RAP netshareenum call return something a bit more sensible.
Andrew Tridgell [Sun, 19 Dec 2004 03:31:57 +0000 (03:31 +0000)]
r4274: make the prototype RAP netshareenum call return something a bit more sensible.
(This used to be commit b2e29756c2084f11d841d027e7d32952daae18d0)

16 years agor4269: expanded the note about what you need on linux for xattr support
Andrew Tridgell [Sun, 19 Dec 2004 00:52:08 +0000 (00:52 +0000)]
r4269: expanded the note about what you need on linux for xattr support
(This used to be commit 57394f44e9fa2070a6cb9ce2fb31431ffae45cb9)

16 years agor4267: fixed the charset code to use the builtin_functions.
Andrew Tridgell [Sun, 19 Dec 2004 00:13:24 +0000 (00:13 +0000)]
r4267: fixed the charset code to use the builtin_functions.

Jelmer, please be more careful about testing new code. Your charsets
register change completely broke charset handling on systems without
iconv, and slowed every system down as the builtins were not being
used at all.
(This used to be commit 0022b4d24c7bb649fd69fffca04c022ea6b33634)

16 years agor4264: fix acl handling on systems without xattr support
Andrew Tridgell [Sat, 18 Dec 2004 23:31:17 +0000 (23:31 +0000)]
r4264: fix acl handling on systems without xattr support
(This used to be commit 89845388ea82d9bfbdc6ca8da40f47437a270400)

16 years agor4263: added support for the trans2 RAW_SEARCH_EA_LIST information
Andrew Tridgell [Sat, 18 Dec 2004 04:38:43 +0000 (04:38 +0000)]
r4263: added support for the trans2 RAW_SEARCH_EA_LIST information
level. This is quite a strange level that we've never seen before, but
is used by the os2 workplace shell.

note w2k screws up this level when unicode is negotiated, so it only
passes the RAW-SEARCH test when you force non-unicode
(This used to be commit 25189b8fbf6515d573e3398dc9fca56505dc37b9)

16 years agor4262: a sniff from kukks showed that the FILE_ATTRIBUTE_NORMAL handling in
Andrew Tridgell [Sat, 18 Dec 2004 01:16:04 +0000 (01:16 +0000)]
r4262: a sniff from kukks showed that the FILE_ATTRIBUTE_NORMAL handling in
pvfs was not correct. This should fix a xcopy bug on OS/2.
(This used to be commit 7251f1fcdd8980e9c49a58e665374025e07bb8d0)

16 years agor4261: added the RAW_FILEINFO_EA_LIST trans2 qfileinfo and qpathinfo
Andrew Tridgell [Fri, 17 Dec 2004 22:47:49 +0000 (22:47 +0000)]
r4261: added the RAW_FILEINFO_EA_LIST trans2 qfileinfo and qpathinfo
level. Interestingly, this level did now show up on our trans2 scanner
previously as we didn't have the FLAGS2_EXTENDED_ATTRIBUTES bit set in
the client code. Now that we set that bit, new levels appear in
windows servers.
(This used to be commit 0b76d405a73e924dc2706f28bbf1084a59c9b393)

16 years agor4247: two more places that need the unlink hook
Andrew Tridgell [Fri, 17 Dec 2004 06:35:11 +0000 (06:35 +0000)]
r4247: two more places that need the unlink hook
(This used to be commit 795897b64f3c63baaf53a36eb1611293c2fd8974)

16 years agor4246: some very brief notes to myself on solving the case insensitivity
Andrew Tridgell [Fri, 17 Dec 2004 06:34:13 +0000 (06:34 +0000)]
r4246: some very brief notes to myself on solving the case insensitivity
problem, and the del *.* mangling problem. I promised jra that I would
write a longer description of these soon.
(This used to be commit b6827a03e77fd1db4cbd16d7b7fb4328ccfe7a46)

16 years agor4245: add a note about using a tdb to store xattr information, so you can
Andrew Tridgell [Fri, 17 Dec 2004 06:32:04 +0000 (06:32 +0000)]
r4245: add a note about using a tdb to store xattr information, so you can
have all Samba4 features on a plain posix filesystem.
(This used to be commit a6c4f4b7c9b9a66bde02bd1b63258dbc14dd48c9)

16 years agor4244: add more calls to pvfs_xattr_unlink_hook() on file/dir create, to try to beat...
Andrew Tridgell [Fri, 17 Dec 2004 05:03:57 +0000 (05:03 +0000)]
r4244: add more calls to pvfs_xattr_unlink_hook() on file/dir create, to try to beat race
conditions in the tdb xattr backend
(This used to be commit 3ac840159881ce6eeac27ff0dc324e4d6ac0a70a)

16 years agor4243: a sniff from kukks showed that the ea_set interface in trans2 setfileinfo...
Andrew Tridgell [Fri, 17 Dec 2004 04:51:23 +0000 (04:51 +0000)]
r4243: a sniff from kukks showed that the ea_set interface in trans2 setfileinfo allows
for multiple EAs to be set at once. This fixes all the ea code to allow for that.
(This used to be commit b26828bef5d55e5eef0e34a164e76292df45e207)

16 years agor4242: added support for storing xattrs in a tdb. This allows all advanced NT
Andrew Tridgell [Fri, 17 Dec 2004 03:39:29 +0000 (03:39 +0000)]
r4242: added support for storing xattrs in a tdb. This allows all advanced NT
attributes (streams, EAs, NT ACLs, timestamps etc) to be used on
filesystems that don't support xattrs. It also allows for large
streams, although they are very inefficient.

I won't enable this by default, as I really wrote it as a way of
testing large stream support while still using ext3, but perhaps with
a bit more work this could be generally usable.

To enable this use:

   posix:eadb = /home/test/myeas.tdb
(This used to be commit 0c927d912cb65754351189d3a0442004a14aa5c6)

16 years agor4232: added server support for multi-part SMBtrans requests, while
Andrew Tridgell [Thu, 16 Dec 2004 12:31:34 +0000 (12:31 +0000)]
r4232: added server support for multi-part SMBtrans requests, while
maintaining the async nature of the server. This is done with a
SMBtrans request queue for partially completed requests.

The smb signing issues with this get a little tricky, but it now seems
to work fine
(This used to be commit bc0209058b76a947ad27673aeb096d11a168996b)

16 years agor4230: now that we set the FLAGS2_EXTENDED_ATTRIBUTES flag, we should mark
Andrew Tridgell [Thu, 16 Dec 2004 12:29:47 +0000 (12:29 +0000)]
r4230: now that we set the FLAGS2_EXTENDED_ATTRIBUTES flag, we should mark
empty EAs as being of size 4, not size 0
(This used to be commit 76bd6476785e4145437768caa702c01a7801590e)

16 years agor4229: - added support for multi-part SMBtrans and SMBtrans2 requests in the
Andrew Tridgell [Thu, 16 Dec 2004 12:29:04 +0000 (12:29 +0000)]
r4229: - added support for multi-part SMBtrans and SMBtrans2 requests in the
  client code. This was essential to test the multi-part server code
  (which I will commit soon)

- when the request state is an error, ensure that req->status is not NT_STATUS_OK
(This used to be commit ef502c403044b68ccdff15b1a94d447d0f53473d)

16 years agor4228: make sure the caller knows the packet is in error when a signing error occurs
Andrew Tridgell [Thu, 16 Dec 2004 12:25:23 +0000 (12:25 +0000)]
r4228: make sure the caller knows the packet is in error when a signing error occurs
(This used to be commit 5e13571e6b9f5eb35f710c2c8bd85b5569665613)

16 years agor4227: index the privilege attribute to make lsa privilege calls efficient
Andrew Tridgell [Thu, 16 Dec 2004 12:24:25 +0000 (12:24 +0000)]
r4227: index the privilege attribute to make lsa privilege calls efficient
(This used to be commit e9e603208d79dc69c75420a8e085f8ad6c8a7095)

16 years agor4214: possibly fix the "no-EAs" bug from OS/2
Andrew Tridgell [Wed, 15 Dec 2004 03:53:05 +0000 (03:53 +0000)]
r4214: possibly fix the "no-EAs" bug from OS/2
(This used to be commit c9871253485b1a663fc79649742d3a89e81eb6d4)

16 years agor4213: Store REG_SZ in UTF16, not the unix charset..
Jelmer Vernooij [Wed, 15 Dec 2004 02:27:22 +0000 (02:27 +0000)]
r4213: Store REG_SZ in UTF16, not the unix charset..

It is now possible to use the "Add..." button in the Security
tab of the File Properties Dialog box.
(This used to be commit 9fa25260d3f18dd0dd041477c48571b53d86f3c4)

16 years agor4210: Add simple example of a registry hive LDIF file
Jelmer Vernooij [Wed, 15 Dec 2004 00:39:39 +0000 (00:39 +0000)]
r4210: Add simple example of a registry hive LDIF file
(This used to be commit cd9572b72e8d282ec47d2d67f6daa00ff1aa621c)

16 years agor4209: Fix several smaller bugs
Jelmer Vernooij [Wed, 15 Dec 2004 00:16:54 +0000 (00:16 +0000)]
r4209: Fix several smaller bugs
Add "predef" and "set" commands in regshell

Some of the remote calls from a Windows box work now.
(This used to be commit f3e05782804fe4b4942fa966f1b9650c64bc234d)

16 years agor4207: remove "lookupname" and "lookupsid", and instead have a single "lookup" comman...
Andrew Tridgell [Tue, 14 Dec 2004 22:24:56 +0000 (22:24 +0000)]
r4207: remove "lookupname" and "lookupsid", and instead have a single "lookup" command that
takes a name or sid.

I think in general its better to make smbclient automatically work out the type from
the format (I did the same with the privileges commands)
(This used to be commit bbf482e13ab973a67e9b2c0e0e40c2afff073c63)

16 years agor4206: fixed a status code check in lsa_LookupNames2 that could cause a segv
Andrew Tridgell [Tue, 14 Dec 2004 22:18:33 +0000 (22:18 +0000)]
r4206: fixed a status code check in lsa_LookupNames2 that could cause a segv
(This used to be commit 31ab04f790ff4349dbc8a24c07fa35e10b831baf)

16 years agor4205: fixed the default acl mapping from posix permissions to use the mapped
Andrew Tridgell [Tue, 14 Dec 2004 22:17:41 +0000 (22:17 +0000)]
r4205: fixed the default acl mapping from posix permissions to use the mapped
uid->sid and gid->sid
(This used to be commit 590e1a91bfc719c2d84a9a066fb4e0308b6d9803)

16 years agor4204: Arguments to reg_del_key more like the RPC for more efficient usage
Jelmer Vernooij [Tue, 14 Dec 2004 20:49:18 +0000 (20:49 +0000)]
r4204: Arguments to reg_del_key more like the RPC for more efficient usage
Fix small bug in regpatch
Fix segfault in regshell cmdline completion
Implement set_value and del_value in ldb backend
(This used to be commit 8e2aa58abeafa78afe7dafb9723f5f365e756527)

16 years agor4203: the bind_info blob isn't a const.
Stefan Metzmacher [Tue, 14 Dec 2004 07:18:58 +0000 (07:18 +0000)]
r4203: the bind_info blob isn't a const.
here's the idl to parse it, because we don't want the
callers to manually de/encode this

metze
(This used to be commit 983f74c3651759991378b0d7b13b0952d77b3544)

16 years agor4202: added smbclient commands "addprivileges" and "delprivileges" for
Andrew Tridgell [Tue, 14 Dec 2004 06:31:20 +0000 (06:31 +0000)]
r4202: added smbclient commands "addprivileges" and "delprivileges" for
easily adding/removing privileges from users
(This used to be commit 8764909c05c4829d1e4f7eaf8c18e8ef1e53645f)

16 years agor4201: Remove duplicate const.
Tim Potter [Tue, 14 Dec 2004 06:25:19 +0000 (06:25 +0000)]
r4201: Remove duplicate const.
(This used to be commit 1d96717843a9b60a757548a24967bbb553775fa3)

16 years agor4200: Fix some more warnings.
Tim Potter [Tue, 14 Dec 2004 06:23:01 +0000 (06:23 +0000)]
r4200: Fix some more warnings.
(This used to be commit 0359bc408f8b3a9f743553f98d0fa1f57021701c)

16 years agor4199: - added server side code for lsa_RemoveAccountRights (sharing code
Andrew Tridgell [Tue, 14 Dec 2004 06:17:33 +0000 (06:17 +0000)]
r4199: - added server side code for lsa_RemoveAccountRights (sharing code
  with lsa_AddAccountRights)
(This used to be commit 9bd806b7a29afe9db98048be0f8035c75bf8e1c7)

16 years agor4198: - added server side code for lsa_AddAccountRights
Andrew Tridgell [Tue, 14 Dec 2004 06:10:45 +0000 (06:10 +0000)]
r4198: - added server side code for lsa_AddAccountRights
(This used to be commit ba87142586672a1082200048e7d1ae865d266d6c)

16 years agor4197: Remove silly extra const.
Tim Potter [Tue, 14 Dec 2004 06:09:04 +0000 (06:09 +0000)]
r4197: Remove silly extra const.
(This used to be commit fcbfa888defe4f904e0c4b4f723d53a03422ad80)

16 years agor4196: - added server side code for lsa_LookupPrivDisplayName
Andrew Tridgell [Tue, 14 Dec 2004 05:51:01 +0000 (05:51 +0000)]
r4196: - added server side code for lsa_LookupPrivDisplayName

- added english descriptions of privileges. We should add other
  languages in the future.
(This used to be commit 3eee8b7c13de3ffe7c5a87d6f1ebdcc66ff391eb)

16 years agor4195: added IDL, test suite and server side code for lsa_LookupPrivValue
Andrew Tridgell [Tue, 14 Dec 2004 05:32:51 +0000 (05:32 +0000)]
r4195: added IDL, test suite and server side code for lsa_LookupPrivValue
(This used to be commit 7bddd4740332017bb5f4bddcc9ba0234d05378bd)

16 years agor4194: added server side implementation of lsa_EnumPrivs
Andrew Tridgell [Tue, 14 Dec 2004 05:20:38 +0000 (05:20 +0000)]
r4194: added server side implementation of lsa_EnumPrivs
(This used to be commit 710732033261f6355893b94b43e6c532baa105e0)

16 years agor4193: added server side implementation of lsa_EnumAccountsWithUserRight
Andrew Tridgell [Tue, 14 Dec 2004 05:07:29 +0000 (05:07 +0000)]
r4193: added server side implementation of lsa_EnumAccountsWithUserRight
(This used to be commit 5088a6cbf70fe6eff94f07e2f5874525539c46fa)

16 years agor4192: added server side implementation of lsa_EnumAccountRights
Andrew Tridgell [Tue, 14 Dec 2004 04:45:00 +0000 (04:45 +0000)]
r4192: added server side implementation of lsa_EnumAccountRights

the "privilege" command in smbclient now works against Samba4
(This used to be commit 8a3f2650500e11d1d38d76421f8373e5088d2dc5)

16 years agor4183: expanded the RAW-MKDIR torture test to test creation of EA lists
Andrew Tridgell [Mon, 13 Dec 2004 23:58:39 +0000 (23:58 +0000)]
r4183: expanded the RAW-MKDIR torture test to test creation of EA lists
(This used to be commit 0134d8e9cc5634441b1aa6841bcd332c5afcc0f3)

16 years agor4182: fixed trans2 mkdir, allowing mkdir with an initial EA list
Andrew Tridgell [Mon, 13 Dec 2004 23:57:59 +0000 (23:57 +0000)]
r4182: fixed trans2 mkdir, allowing mkdir with an initial EA list
(This used to be commit 7d981c29c28391813c7f93245f64b3ee108378a4)

16 years agor4181: use int32 for level
Stefan Metzmacher [Mon, 13 Dec 2004 12:34:43 +0000 (12:34 +0000)]
r4181: use int32 for level

metze
(This used to be commit 3a6047bc47671bfab14272dfa81f80f4457b209c)

16 years agor4180: use the same syntax as the other torture tests
Stefan Metzmacher [Mon, 13 Dec 2004 12:28:47 +0000 (12:28 +0000)]
r4180: use the same syntax as the other torture tests

metze
(This used to be commit 00395ffcc3cc94216619ca827ff6a09b0cc28de1)

16 years agor4179: - nicer code layout
Stefan Metzmacher [Mon, 13 Dec 2004 12:24:57 +0000 (12:24 +0000)]
r4179: - nicer code layout

- and disable DsReplicaSync by default it kill lsass.exe
  on my w2k box

metze
(This used to be commit 8373b2d4c7decd49a361637e03b24b311aed302c)

16 years agor4178: the level is mostly singed not unsigned
Stefan Metzmacher [Mon, 13 Dec 2004 12:01:43 +0000 (12:01 +0000)]
r4178: the level is mostly singed not unsigned

metze
(This used to be commit 6411c00b3c2c4e11da2b41bfa53e0d42368e3e76)

16 years agor4177: add some more error codes
Stefan Metzmacher [Mon, 13 Dec 2004 11:37:47 +0000 (11:37 +0000)]
r4177: add some more error codes

metze
(This used to be commit e624bb52886db80a3600b79494ad1150592efebe)

16 years agor4176: I just remeber that I have already implement STR_CONFORMANT
Stefan Metzmacher [Mon, 13 Dec 2004 11:34:57 +0000 (11:34 +0000)]
r4176: I just remeber that I have already implement STR_CONFORMANT

so use it in DsReplicaSync()

metze
(This used to be commit ca610da1fc3c059d35e17238e8cac5e5b38790c3)

16 years agor4175: InitiateSystemShutdownEx IDL and torture test
Jelmer Vernooij [Mon, 13 Dec 2004 11:00:24 +0000 (11:00 +0000)]
r4175: InitiateSystemShutdownEx IDL and torture test
(This used to be commit 3538130bf5d656ed4b0e2c84294e995814860e34)

16 years agor4174: nicer debug output
Stefan Metzmacher [Mon, 13 Dec 2004 10:48:35 +0000 (10:48 +0000)]
r4174: nicer debug output

metze
(This used to be commit 79bdcabcc57da9f7d01b09d3b33fe22770c6e7e8)

16 years agor4173: - new t2open code, that can cope with "create with EAs". Many thanks
Andrew Tridgell [Mon, 13 Dec 2004 10:48:21 +0000 (10:48 +0000)]
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)

16 years agor4172: commit a DsReplicaSync() torture test
Stefan Metzmacher [Mon, 13 Dec 2004 10:29:44 +0000 (10:29 +0000)]
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)

16 years agor4171: an attempt at better IDL for DsReplicaSync
Andrew Tridgell [Mon, 13 Dec 2004 09:32:57 +0000 (09:32 +0000)]
r4171: an attempt at better IDL for DsReplicaSync
(This used to be commit a4ebef4f53d0eb5aef1bc4ae76ac9ad66bf3b528)

16 years agor4170: don't check array size for conformant arrays (they are checked separately)
Andrew Tridgell [Mon, 13 Dec 2004 09:32:02 +0000 (09:32 +0000)]
r4170: don't check array size for conformant arrays (they are checked separately)
(This used to be commit e399834ae1aa9731d5d29c04d5b7b90e356dad6f)

16 years agor4169: add descriptions about binding and unc strings to the
Stefan Metzmacher [Mon, 13 Dec 2004 09:26:13 +0000 (09:26 +0000)]
r4169: add descriptions about binding and unc strings to the
smbtorture --usage --help output

metze
(This used to be commit 26a7f4cf5ec4e3697a715f4880468c7f30ba5948)

16 years agor4168: Implement QueryValue in the server
Jelmer Vernooij [Mon, 13 Dec 2004 02:04:34 +0000 (02:04 +0000)]
r4168: Implement QueryValue in the server
IDL for NotifyChangeKeyValue
(This used to be commit a40214243136ed5208a1bec494ad1fbf821524ba)

16 years agor4167: Fix CreateKey
Jelmer Vernooij [Mon, 13 Dec 2004 01:37:18 +0000 (01:37 +0000)]
r4167: Fix CreateKey
Support CreateKey in the RPC registry backend
(This used to be commit ad8d9e6f73619332d93c38a1879233e199e8ba25)

16 years agor4166: More small API fixes, keep registry structs as small as possible.
Jelmer Vernooij [Mon, 13 Dec 2004 00:45:29 +0000 (00:45 +0000)]
r4166: More small API fixes, keep registry structs as small as possible.
Implement DelValue in the RPC server
(This used to be commit f6b9ec89af934e837069fb26c0e3491fc78ebc12)

16 years agor4165: added a 100 element name cache to cope with some amount of seeking
Andrew Tridgell [Sun, 12 Dec 2004 11:30:30 +0000 (11:30 +0000)]
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)

16 years agor4164: added a test that simulates a OS/2 file delete. This includes seek by
Andrew Tridgell [Sun, 12 Dec 2004 11:29:35 +0000 (11:29 +0000)]
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)

16 years agor4163: 2nd attempt at fixing the OS/2 "del *" problem
Andrew Tridgell [Sun, 12 Dec 2004 09:11:39 +0000 (09:11 +0000)]
r4163: 2nd attempt at fixing the OS/2 "del *" problem
(This used to be commit ae14905d9522dbdc1709ef110b9933adcb740a26)

16 years agor4162: this should fix the delete/findnext problem from OS/2 clients. Thanks
Andrew Tridgell [Sun, 12 Dec 2004 09:02:18 +0000 (09:02 +0000)]
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)

16 years agor4161: two more fixes for NT4 clients. Bugs found by kukks.
Andrew Tridgell [Sun, 12 Dec 2004 08:35:11 +0000 (08:35 +0000)]
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)

16 years agor4160: fixed the file_type in ntcreatex reply on a named pipe. NT4 requires this...
Andrew Tridgell [Sun, 12 Dec 2004 08:33:08 +0000 (08:33 +0000)]
r4160: fixed the file_type in ntcreatex reply on a named pipe. NT4 requires this to be right.
(This used to be commit e22de9734f66bee3c9eaf8191fcae9fb06a0034f)

16 years agor4159: fixed error return for writebraw
Andrew Tridgell [Sun, 12 Dec 2004 07:22:59 +0000 (07:22 +0000)]
r4159: fixed error return for writebraw
(This used to be commit 13c7794e02b0d5c83baa5efbe93e46defd38c8e1)

16 years agor4158: Fix IDL for InitiateShutdown and AbortShutdown and run both only
Jelmer Vernooij [Sun, 12 Dec 2004 00:35:50 +0000 (00:35 +0000)]
r4158: Fix IDL for InitiateShutdown and AbortShutdown and run both only
when dangerous tests are enabled.
(This used to be commit a763bd838558bdd7bcab3ca7ee91c1846d7a950f)

16 years agor4157: QueryMultipleValues IDL and torture test
Jelmer Vernooij [Sun, 12 Dec 2004 00:22:30 +0000 (00:22 +0000)]
r4157: QueryMultipleValues IDL and torture test
Initialisation data pointer in QueryValue torture test
(This used to be commit 72618dfe95c785d3a3a71cc4a70b59696f2d418e)

16 years agor4156: GetKeySecurity() IDL and torture test
Jelmer Vernooij [Sat, 11 Dec 2004 23:28:48 +0000 (23:28 +0000)]
r4156: GetKeySecurity() IDL and torture test
(This used to be commit 1c49de51aeb6041a3b53b8da7dc8e2bcf089bfe0)

16 years agor4155: More destinction between hives and predefined keys
Jelmer Vernooij [Sat, 11 Dec 2004 20:06:40 +0000 (20:06 +0000)]
r4155: More destinction between hives and predefined keys
(This used to be commit c37d6f3c581673d74e7ec6a644ab6a7d13a55535)

16 years agor4154: Add definitions for HKEY_PERFORMANCE_TEXT and HKEY_PERFORMANCE_NLSTEXT
Jelmer Vernooij [Sat, 11 Dec 2004 17:12:16 +0000 (17:12 +0000)]
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)

16 years agor4151: added privilege attribute handling on samdb.
Andrew Tridgell [Sat, 11 Dec 2004 13:19:41 +0000 (13:19 +0000)]
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)

16 years agor4150: - add fns for manipulating the privilege_mask in a security_token
Andrew Tridgell [Sat, 11 Dec 2004 12:01:20 +0000 (12:01 +0000)]
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)

16 years agor4148: add a default set of privileges to the core builtin accounts in the
Andrew Tridgell [Sat, 11 Dec 2004 05:43:03 +0000 (05:43 +0000)]
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)

16 years agor4147: converted from NT_USER_TOKEN to struct security_token
Andrew Tridgell [Sat, 11 Dec 2004 05:41:19 +0000 (05:41 +0000)]
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)

16 years agor4146: an attempted fix for a OS/2 rename problem found by kukks - seems OS/2
Andrew Tridgell [Sat, 11 Dec 2004 04:11:26 +0000 (04:11 +0000)]
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)

16 years agor4145: make sure we don't set the 32-bit error codes flag unless the client
Andrew Tridgell [Sat, 11 Dec 2004 03:39:09 +0000 (03:39 +0000)]
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)

16 years agor4142: Check result value of OpenHKU and OpenHKCR
Jelmer Vernooij [Fri, 10 Dec 2004 23:20:24 +0000 (23:20 +0000)]
r4142: Check result value of OpenHKU and OpenHKCR
(This used to be commit bba4e878b4a93e67e02b8f1332b0889947ec1a11)

16 years agor4141: Fix crash bug in ldb backend
Jelmer Vernooij [Fri, 10 Dec 2004 23:13:17 +0000 (23:13 +0000)]
r4141: Fix crash bug in ldb backend
(This used to be commit 5f64a60374486b9fc3d75786c3035a9017dd4d33)

16 years agor4140: Get rid of close_hive (replace it with talloc destructors).
Jelmer Vernooij [Fri, 10 Dec 2004 22:57:43 +0000 (22:57 +0000)]
r4140: Get rid of close_hive (replace it with talloc destructors).
(This used to be commit bcbfce7b0119538bab06801c97aa9c7d4bf3a6c6)

16 years agor4139: 2nd attempt at fixing the null ptr in size_is() problem.
Andrew Tridgell [Fri, 10 Dec 2004 22:36:46 +0000 (22:36 +0000)]
r4139: 2nd attempt at fixing the null ptr in size_is() problem.
(This used to be commit 3040cd65151dbcc54404f9be9d1fbcf539c7b635)

16 years agor4138: initialise 'type' in RPC-WINREG EnumValue test
Andrew Tridgell [Fri, 10 Dec 2004 22:35:35 +0000 (22:35 +0000)]
r4138: initialise 'type' in RPC-WINREG EnumValue test
(This used to be commit 952a26c561846def21d3d2f4d36cbe79a54f9eff)

16 years agor4137: Make *_open_key take a registry_key instead of a hive (more efficient
Jelmer Vernooij [Fri, 10 Dec 2004 22:28:49 +0000 (22:28 +0000)]
r4137: Make *_open_key take a registry_key instead of a hive (more efficient
in some cases)
(This used to be commit ddf7a331c58976f2c0b4a00390118f1acf60e3eb)

16 years agor4136: when we have a size or switch variable that is a pointer we need to check...
Andrew Tridgell [Fri, 10 Dec 2004 22:16:35 +0000 (22:16 +0000)]
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)

16 years agor4135: improve a debug message
Andrew Tridgell [Fri, 10 Dec 2004 21:31:32 +0000 (21:31 +0000)]
r4135: improve a debug message
(This used to be commit 4b45d3d2e86122dbe5bd258fc96ad674aba0d417)

16 years agor4133: Cache results of subkey and value queries
Jelmer Vernooij [Fri, 10 Dec 2004 20:50:49 +0000 (20:50 +0000)]
r4133: Cache results of subkey and value queries
(This used to be commit 1e12971137f50077e04a0432572275baf4fde35e)

16 years agor4132: - Bunch of rather large fixes in the registry
Jelmer Vernooij [Fri, 10 Dec 2004 20:07:04 +0000 (20:07 +0000)]
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)

16 years agor4124: include locale.h to get LC_ALL in include/system/iconv.h
Andrew Tridgell [Fri, 10 Dec 2004 04:41:56 +0000 (04:41 +0000)]
r4124: include locale.h to get LC_ALL in include/system/iconv.h
(This used to be commit 573230ea99136bd66d00bac18effd28b1e5ba76f)

16 years agor4123: set locale to C to ensure ascii string functions work
Andrew Tridgell [Fri, 10 Dec 2004 03:41:54 +0000 (03:41 +0000)]
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)