samba.git
16 years agor4318: add missing template for trusting domains
Stefan Metzmacher [Tue, 21 Dec 2004 11:48:32 +0000 (11:48 +0000)]
r4318: add missing template for trusting domains

metze

16 years agor4317: check the count of replies in the os2 ea_list torture test
Andrew Tridgell [Tue, 21 Dec 2004 11:48:13 +0000 (11:48 +0000)]
r4317: check the count of replies in the os2 ea_list torture test

16 years agor4316: - now that the trans2 code properly supports multi-part requests, we can set
Andrew Tridgell [Tue, 21 Dec 2004 11:47:08 +0000 (11:47 +0000)]
r4316: - now that the trans2 code properly supports multi-part requests, we can set
  a maximum sized max_data in libcli trans2 code

- fixed string termination in the EA_LIST trans2 findfirst level

16 years agor4315: use the remote hosts max_xmit, not the local hosts, in calculating max trans2...
Andrew Tridgell [Tue, 21 Dec 2004 11:45:37 +0000 (11:45 +0000)]
r4315: use the remote hosts max_xmit, not the local hosts, in calculating max trans2 data sizes

16 years agor4314: added ACL checking on unlink
Andrew Tridgell [Tue, 21 Dec 2004 11:44:32 +0000 (11:44 +0000)]
r4314: added ACL checking on unlink

16 years agor4313: fixed a bug in handling new xattrs in the tdb xattr backend
Andrew Tridgell [Tue, 21 Dec 2004 11:43:46 +0000 (11:43 +0000)]
r4313: fixed a bug in handling new xattrs in the tdb xattr backend

16 years agor4310: fixed the authority_name field in lsa_GetUserName()
Andrew Tridgell [Tue, 21 Dec 2004 10:05:02 +0000 (10:05 +0000)]
r4310: fixed the authority_name field in lsa_GetUserName()

16 years agor4309: idl and torture test for lsa_GetUserName()
Stefan Metzmacher [Tue, 21 Dec 2004 09:41:21 +0000 (09:41 +0000)]
r4309: idl and torture test for lsa_GetUserName()

why does samba3 return domain_name as in the unknown_name field in the code
and on the wire it returns DCERPC_FAULT_OP_RNG_ERROR?

all of my test machines NT4,W2K,W2K3,XP returned NULL

and if I file the string in the .in.* the server echos the strings back
and returns NT_STATUS_INVALID_PARAMETER

metze

16 years agor4308: [out,ref] pointer needs to set (don't corrupt the stack and segfault)
Stefan Metzmacher [Tue, 21 Dec 2004 09:33:12 +0000 (09:33 +0000)]
r4308: [out,ref] pointer needs to set (don't corrupt the stack and segfault)

metze

PS: <tridge> "silly tridge forgot a out [ref] var" :-)

16 years agor4303: a bit more consistent help on privileges commands in smbclient
Andrew Tridgell [Tue, 21 Dec 2004 03:29:09 +0000 (03:29 +0000)]
r4303: a bit more consistent help on privileges commands in smbclient

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.

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.

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

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

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.

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

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

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

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.

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()

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()

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()

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()

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

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.

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

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.

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

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

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.

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.

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

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.

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.

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

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.

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

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

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

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

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

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

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

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.

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

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.

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)

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

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

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

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

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

16 years agor4201: Remove duplicate const.
Tim Potter [Tue, 14 Dec 2004 06:25:19 +0000 (06:25 +0000)]
r4201: Remove duplicate const.

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.

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)

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

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.

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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

metze

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

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

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

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)

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

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

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

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

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.

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.

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

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

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

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.

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

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.

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

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

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

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.

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().

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

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.

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.

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

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)

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

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