samba.git
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)

16 years agor4118: don't assume that "unsigned int" is the same type as uint32_t
Andrew Tridgell [Thu, 9 Dec 2004 12:54:01 +0000 (12:54 +0000)]
r4118: don't assume that "unsigned int" is the same type as uint32_t
(This used to be commit 1ddab01d2ac0a51278cbd13d6d9369973c7a5b3a)

16 years agor4117: fixed EnumValue in winreg server
Andrew Tridgell [Thu, 9 Dec 2004 12:50:50 +0000 (12:50 +0000)]
r4117: fixed EnumValue in winreg server
(This used to be commit f2f21033b65b82251b5ea0b2475ceb1bb3657fb3)

16 years agor4116: fixed compilation of EnumValue code in winreg rpc backend
Andrew Tridgell [Thu, 9 Dec 2004 12:42:29 +0000 (12:42 +0000)]
r4116: fixed compilation of EnumValue code in winreg rpc backend

thanks to volker for pointing this out
(This used to be commit 2b67f18bdb58164697efd428391d4cbc46398464)

16 years agor4115: check for gensec errors before calling memcpy on a set of credentials,
Andrew Tridgell [Thu, 9 Dec 2004 10:33:21 +0000 (10:33 +0000)]
r4115: check for gensec errors before calling memcpy on a set of credentials,
otherwise the creds structure might be invalid
(This used to be commit 76285b3390f20366d53c7b2509ac07e1f88f7309)

16 years agor4114: added have_features bits to gensec schannel code. This fixes our
Andrew Tridgell [Thu, 9 Dec 2004 10:32:43 +0000 (10:32 +0000)]
r4114: added have_features bits to gensec schannel code. This fixes our
schannel code.

I would also like to give a gentle reminder to everyone to please run
the appropriate test scripts when you change a subsystem. It's a shame
to have this test code and not use it, and it takes much longer for
another developer to track down a bug in your new code than it would
take for you fix to it at the time you first add it.

 - for rpc changes run test_rpc.sh
 - for CIFS changes run test_posix.sh
 - for ldb changes run test-tdb in lib/ldb/
(This used to be commit 0c58b254cabd236911021aff87c73183356fa8e3)

16 years agor4113: modified EnumValue in winreg to take advantage of the new pidl handling
Andrew Tridgell [Thu, 9 Dec 2004 07:52:00 +0000 (07:52 +0000)]
r4113: modified EnumValue in winreg to take advantage of the new pidl handling
of arrays.
(This used to be commit b47e203a054e26d5d0c133a3c3b8d9502bd6ac69)

16 years agor4112: when a pointer is NULL on the wire ensure it is null in the structure
Andrew Tridgell [Thu, 9 Dec 2004 07:51:20 +0000 (07:51 +0000)]
r4112: when a pointer is NULL on the wire ensure it is null in the structure
(This used to be commit 83221a0da07bf7c45757e737782f2f4ee541ad88)

16 years agor4111: fixed winreg to use much simpler (and I believe correct) IDL for QueryValue
Andrew Tridgell [Thu, 9 Dec 2004 07:05:47 +0000 (07:05 +0000)]
r4111: fixed winreg to use much simpler (and I believe correct) IDL for QueryValue
(This used to be commit 659d0295314c6a070698fc81223044f4d7366993)

16 years agor4110: fixed pidl to allow arrays to have size_is() and length_is() elements
Andrew Tridgell [Thu, 9 Dec 2004 07:05:00 +0000 (07:05 +0000)]
r4110: fixed pidl to allow arrays to have size_is() and length_is() elements
that depend on variables that come after the array in the structure or function.

This has been something that has been problematic for a while, but the
winreg QueryValue problem finally prompted me to fix it properly. We
should now go back and fix up all the ugly workarounds we have used to
avoid this problem in other calls.

Unfortunately the solution is fairly complex, and involves the use of
the internal ndr token lists (similar to the solution for relative
pointers). I wonder if anyone else will be able to follow the logic if
I get run over by a bus :-)
(This used to be commit e839b19ec5581f669f2a7705b1fb80845313251c)

16 years agor4109: fixed an uninitialised socket write found by kukks
Andrew Tridgell [Thu, 9 Dec 2004 04:40:57 +0000 (04:40 +0000)]
r4109: fixed an uninitialised socket write found by kukks
(This used to be commit 30c58b046d65164da37f705de105662f806e1331)

16 years agor4106: Add full name of two more hives
Jelmer Vernooij [Wed, 8 Dec 2004 22:13:28 +0000 (22:13 +0000)]
r4106: Add full name of two more hives
(This used to be commit c1023db5e8336e495c06acae1773a28d7fc90658)

16 years agor4105: Fix IDL for QueryValue() and add a torture test for it.
Jelmer Vernooij [Wed, 8 Dec 2004 22:02:49 +0000 (22:02 +0000)]
r4105: Fix IDL for QueryValue() and add a torture test for it.
Thanks to Michael Allen for some hints on what was wrong with the previous IDL.
(This used to be commit 0fa6d847433eb281eaff15b8be4a26f898689f0a)

16 years agor4102: more uint64 vs HYPER_T fixes
Stefan Metzmacher [Wed, 8 Dec 2004 11:30:26 +0000 (11:30 +0000)]
r4102: more uint64 vs HYPER_T fixes

NOTE:
 [u]int64 uses 4 Byte alignment
 and HYPER_T uses 8 Byte alignment

metze
(This used to be commit 717454eb2fd2bf90e67074acefdae5304cd7433f)

16 years agor4101: ignore secondary session requests to cope with a OS/2 bug reported by
Andrew Tridgell [Wed, 8 Dec 2004 11:02:47 +0000 (11:02 +0000)]
r4101: ignore secondary session requests to cope with a OS/2 bug reported by
Guenter Kukkukk
(This used to be commit 49c8df5648eae1e8222c0dd2859fd2ff62ef34ce)

16 years agor4100: fix drsuapi_DsReplicaObjMetaData2() idl
Stefan Metzmacher [Wed, 8 Dec 2004 10:54:09 +0000 (10:54 +0000)]
r4100: fix drsuapi_DsReplicaObjMetaData2() idl

(many thanks to tridge for telling me that HYPER_T isn't the same as uint64!)

metze
(This used to be commit 74b9ef4de5263953aa2e03401a271f2830163efe)

16 years agor4099: Spelling fixes.
Tim Potter [Wed, 8 Dec 2004 10:36:14 +0000 (10:36 +0000)]
r4099: Spelling fixes.
(This used to be commit 24d9f97bd6059d90eeead23900225e286047a862)

16 years agor4098: catch null guid string so RPC-DRSUAPI works against my server
Andrew Tridgell [Wed, 8 Dec 2004 10:24:10 +0000 (10:24 +0000)]
r4098: catch null guid string so RPC-DRSUAPI works against my server
(This used to be commit c4c83f04f55d206716380330d2a4d2b31f893346)

16 years agor4097: add missing file from last commit
Stefan Metzmacher [Wed, 8 Dec 2004 10:13:45 +0000 (10:13 +0000)]
r4097: add missing file from last commit

sorry!:-)

metze
(This used to be commit c2495d60a11febb2715d0dbf3f6598d8edccfb11)

16 years agor4096: move the samdb code to source/dsdb/
Stefan Metzmacher [Wed, 8 Dec 2004 08:21:35 +0000 (08:21 +0000)]
r4096: move the samdb code to source/dsdb/

the idea is to have a directory service db layer
which will be used by the ldap server, samr server, drsuapi server
authentification...

I plan to make different implementations of this interface possible
- current default will be the current samdb code with sam.ldb
- a compat implementation for samba3 (if someone wants to write one)
- a new dsdb implementation which:
  - understands naming contexts (directory parrtitions)
  - do schema and acl checking checking
  - maintain objectGUID, timestamps and USN number,
    maybe linked attributes ('member' and 'memberOf' attributes)
  - store metadata on a attribute=value combination...

metze
(This used to be commit 893a8b8bca2f020fbbe6f469aaa8dd4478249eb8)

16 years agor4095: smbsrv_terminate_connection() doesn't exit() in single processor mode, so...
Andrew Tridgell [Wed, 8 Dec 2004 08:09:42 +0000 (08:09 +0000)]
r4095: smbsrv_terminate_connection() doesn't exit() in single processor mode, so after we
call it we need to return, and not continue processing packets
(This used to be commit 33e4cee17dbfbb79e5ae68fda893a4d313865eb5)

16 years agor4087: - add idl and torture tests for drsuapi_DsReplicaGetInfo()
Stefan Metzmacher [Tue, 7 Dec 2004 12:20:28 +0000 (12:20 +0000)]
r4087: - add idl and torture tests for drsuapi_DsReplicaGetInfo()

(NOTE: that the drsuapi_DsReplicaObjMetaData2 struct is not corrently parsed yet
 and there're some unknown fields left in someother infotypes)

metze
(This used to be commit 4fd57d5e7cff085a8c003ea82f282e26dc1346d9)

16 years agor4086: - make dcerpc_ndr_request_table_send() the default and rename it to just
Stefan Metzmacher [Tue, 7 Dec 2004 09:26:00 +0000 (09:26 +0000)]
r4086: - make dcerpc_ndr_request_table_send() the default and rename it to just
  dcerpc_ndr_request_send()
- this allows us to call dcerpc_log_packet() when we receive a packet we
  can't parse correctly

metze
(This used to be commit a7a6cea112a180a28188997ca99f30d8dd286bb8)

16 years agor4085: print out dcerpc_fault's as names
Stefan Metzmacher [Tue, 7 Dec 2004 09:21:13 +0000 (09:21 +0000)]
r4085: print out dcerpc_fault's as names

metze
(This used to be commit 979c453c4dedf0006997dfc9994331e49643b741)

16 years agor4084: add some more error codes
Stefan Metzmacher [Tue, 7 Dec 2004 09:18:56 +0000 (09:18 +0000)]
r4084: add some more error codes

metze
(This used to be commit e5db58526825476fd6d8d80c8ee6c3bca0e23c84)

16 years agor4082: support alter_context requests
Stefan Metzmacher [Mon, 6 Dec 2004 17:48:51 +0000 (17:48 +0000)]
r4082: support alter_context requests

metze
(This used to be commit ab6ec6b5f4e04322eb151b7bf9c530a0dc16bf89)

16 years agor4081: use clearer names
Stefan Metzmacher [Mon, 6 Dec 2004 17:44:33 +0000 (17:44 +0000)]
r4081: use clearer names

metze
(This used to be commit 5d7d6f02cf1aa731d371c97054480d83d85102cb)

16 years agor4080: missing file from the last commit
Stefan Metzmacher [Mon, 6 Dec 2004 15:45:48 +0000 (15:45 +0000)]
r4080: missing file from the last commit

metze
(This used to be commit ea7b496995573426486b7eab5de822d5602d7368)

16 years agor4079: implement the gensec_have_feature() correctly by asking
Stefan Metzmacher [Mon, 6 Dec 2004 15:44:17 +0000 (15:44 +0000)]
r4079: implement the gensec_have_feature() correctly by asking
the backend what is actually in use

metze
(This used to be commit 6f3eb7bc03609108b9e0ea5676fca3d04140e737)

16 years agor4078: use clearer names
Stefan Metzmacher [Mon, 6 Dec 2004 15:17:43 +0000 (15:17 +0000)]
r4078: use clearer names

metze
(This used to be commit 717f7c3555ecf6265b5b30783f3214f4ca3b6c00)

16 years agor4077: don't add wrapping to empty blobs
Stefan Metzmacher [Mon, 6 Dec 2004 15:14:42 +0000 (15:14 +0000)]
r4077: don't add wrapping to empty blobs

metze
(This used to be commit e6d83d019dc46ff7ae32e7c8f9f7a3ab7d0cdcf3)

16 years agor4076: fix compiler warning
Stefan Metzmacher [Mon, 6 Dec 2004 15:10:31 +0000 (15:10 +0000)]
r4076: fix compiler warning

metze
(This used to be commit 2647b47557c880dd5f24a4cd15475badfd7fdc94)

16 years agor4075: implement RemoteTOD server function
Stefan Metzmacher [Mon, 6 Dec 2004 11:10:15 +0000 (11:10 +0000)]
r4075: implement RemoteTOD server function

metze
(This used to be commit 0c6d4246a45f649e7373606f12db74c2acd0f538)

16 years agor4074: make the RAW-ACLS test use the new lsa helper functions to determine
Andrew Tridgell [Mon, 6 Dec 2004 07:13:50 +0000 (07:13 +0000)]
r4074: make the RAW-ACLS test use the new lsa helper functions to determine
the privileges of the user running the test. This allows the test to
work out what the expected access masks are.
(This used to be commit dcf6c297d372cfa421d757d43897f00ad1d4f5f5)

16 years agor4073: - added a set of lsa helper routines to make lsa lookups that are
Andrew Tridgell [Mon, 6 Dec 2004 07:12:38 +0000 (07:12 +0000)]
r4073: - added a set of lsa helper routines to make lsa lookups that are
  related to filesharing. For example, in order to manipulate ACLs
  properly its important to be able to call LookupSids, and to be able
  to lookup what privileges a SID has.

- added 3 new commands to smbclient "lookupname", "lookupsid" and
  "privileges"
(This used to be commit 8780c40f0539da72652d17455e98fcaee6d197d1)

16 years agor4072: - changed the names of some of the well known sids to be more consistent
Andrew Tridgell [Mon, 6 Dec 2004 07:10:25 +0000 (07:10 +0000)]
r4072: - changed the names of some of the well known sids to be more consistent

- added string constants for the important privileges.
(This used to be commit d5bc706140faf2d0a917f90f87884cd097e8a48c)

16 years agor4071: - ldap does allow adding additional attribute values with a modify
Andrew Tridgell [Mon, 6 Dec 2004 06:45:51 +0000 (06:45 +0000)]
r4071: - ldap does allow adding additional attribute values with a modify
  operation, but not if the value already exists

- fixed syntax of test.ldif for ldap backend
(This used to be commit 29225d0bec39038e42e68849bd9378898f062081)

16 years agor4070: move some defines from asn_1.h to the places they belong to
Stefan Metzmacher [Sun, 5 Dec 2004 16:29:27 +0000 (16:29 +0000)]
r4070: move some defines from asn_1.h to the places they belong to

metze
(This used to be commit ab2c2f27e1c61516e885f02bf26350f97209057a)

16 years agor4069: better error code for SMBwriteBMPX
Andrew Tridgell [Sun, 5 Dec 2004 11:13:14 +0000 (11:13 +0000)]
r4069: better error code for SMBwriteBMPX
(This used to be commit eef066175f98f38eff465f941a7bd747173e8db9)

16 years agor4068: added LANMAN2.1 to list of supported protocols (for OS/2)
Andrew Tridgell [Sun, 5 Dec 2004 07:59:42 +0000 (07:59 +0000)]
r4068: added LANMAN2.1 to list of supported protocols (for OS/2)
(This used to be commit 06e48d1276d3837db4d278400e7ee29561cd9205)

16 years agor4067: no matches in findnext is not an error
Andrew Tridgell [Sun, 5 Dec 2004 07:58:58 +0000 (07:58 +0000)]
r4067: no matches in findnext is not an error
(This used to be commit 6da058a28ba44a02964d375c9e390fbd472bc2b6)

16 years agor4066: add a mapping for NT_STATUS_NO_MORE_ENTRIES
Andrew Tridgell [Sun, 5 Dec 2004 07:53:57 +0000 (07:53 +0000)]
r4066: add a mapping for NT_STATUS_NO_MORE_ENTRIES
(This used to be commit 335b1c6a52b2e437e7f16a84ba547e5387ef64d1)

16 years agor4065: fixed ntstatus->dos error code for NT_STATUS_NO_SUCH_FILE
Andrew Tridgell [Sun, 5 Dec 2004 07:43:38 +0000 (07:43 +0000)]
r4065: fixed ntstatus->dos error code for NT_STATUS_NO_SUCH_FILE
(This used to be commit 19efd83b863a8c94f509d6a933a7d5de43aa95e9)

16 years agor4064: use the same name for type on both ends
Stefan Metzmacher [Sat, 4 Dec 2004 14:28:06 +0000 (14:28 +0000)]
r4064: use the same name for type on both ends

for long term we should remove all typedef's

metze
(This used to be commit 4b3f552cb373a0d91526412fc31699959c96a007)

16 years agor4063: - change char * -> uint8_t in struct request_buffer
Stefan Metzmacher [Sat, 4 Dec 2004 13:56:25 +0000 (13:56 +0000)]
r4063: - change char * -> uint8_t in struct request_buffer

- change smbcli_read/write to take void * for the buffers to match read(2)/write(2)

all this fixes a lot of gcc-4 warnings

metze
(This used to be commit b94f92bc6637f748d6f7049f4f9a30b0b8d18a7a)

16 years agor4062: the RAW-ACLS test now passes. The SEC_STD_DELETE bit is rather strange
Andrew Tridgell [Sat, 4 Dec 2004 12:42:40 +0000 (12:42 +0000)]
r4062: the RAW-ACLS test now passes. The SEC_STD_DELETE bit is rather strange
though - I expect we'll need to tweak that some more.
(This used to be commit e3500811b90b8423ee7694609340f394957d1160)

16 years agor4061: more additions to the RAW-ACLS test, to help me work out some details for...
Andrew Tridgell [Sat, 4 Dec 2004 10:16:47 +0000 (10:16 +0000)]
r4061: more additions to the RAW-ACLS test, to help me work out some details for pvfs
(This used to be commit 273165e53a606fa0a55ff8fb6fea440e19a7e285)

16 years agor4060: removed an unused file
Andrew Tridgell [Sat, 4 Dec 2004 10:15:54 +0000 (10:15 +0000)]
r4060: removed an unused file
(This used to be commit 35ca4e1e81c5d927238e90d0c6c09987c11b5d35)

16 years agor4059: moved the ldb -o option parsing to a common routine
Andrew Tridgell [Sat, 4 Dec 2004 10:14:03 +0000 (10:14 +0000)]
r4059: moved the ldb -o option parsing to a common routine
(This used to be commit ee52c1e38c9bac852458196ffbd677cca62a3965)

16 years agor4058: added a type safe version of smb_xmalloc()
Andrew Tridgell [Sat, 4 Dec 2004 09:30:38 +0000 (09:30 +0000)]
r4058: added a type safe version of smb_xmalloc()
(This used to be commit 1235afa5fe3a396cd7a180cbc500834a30fbaa80)

16 years agor4057: unknown5 represents the account policy "Users must logon to change
Günther Deschner [Sat, 4 Dec 2004 00:14:47 +0000 (00:14 +0000)]
r4057: unknown5 represents the account policy "Users must logon to change
password".

Guenther
(This used to be commit 18e01ae25493d2b4b9b86d090199d5202d7a9e42)

16 years agor4056: modified the access check code based on results from RAW-ACLS
Andrew Tridgell [Fri, 3 Dec 2004 13:04:10 +0000 (13:04 +0000)]
r4056: modified the access check code based on results from RAW-ACLS
test. Also added generic mapping bits for pvfs. We don't pass RAW-ACLS
yet, but its close.
(This used to be commit c7cbd966d49a5345ea326732587555d209c531fc)

16 years agor4055: fixed more places to use type safe allocation macros
Andrew Tridgell [Fri, 3 Dec 2004 07:20:30 +0000 (07:20 +0000)]
r4055: fixed more places to use type safe allocation macros
(This used to be commit eec698254f67365f27b4b7569fa982e22472aca1)

16 years agor4054: got rid of Realloc(), replacing it with the type safe macro realloc_p()
Andrew Tridgell [Fri, 3 Dec 2004 06:42:06 +0000 (06:42 +0000)]
r4054: got rid of Realloc(), replacing it with the type safe macro realloc_p()
(This used to be commit b0f6e21481745d1b2ced28d9ed6f09f6ffd99562)

16 years agor4053: expanded and fixed a bug in the RAW-ACLS test
Andrew Tridgell [Fri, 3 Dec 2004 06:25:56 +0000 (06:25 +0000)]
r4053: expanded and fixed a bug in the RAW-ACLS test
(This used to be commit 0d19b4a09f4ce0b0c5e7779809c383322f4de4fc)

16 years agor4052: fixed a bunch of code to use the type safe _p allocation macros
Andrew Tridgell [Fri, 3 Dec 2004 06:24:38 +0000 (06:24 +0000)]
r4052: fixed a bunch of code to use the type safe _p allocation macros
(This used to be commit 80d15fa3402a9d1183467463f6b21c0b674bc442)

16 years agor4051: use talloc_array() instead of talloc() when allocating arrays in auto-generate...
Andrew Tridgell [Fri, 3 Dec 2004 05:27:43 +0000 (05:27 +0000)]
r4051: use talloc_array() instead of talloc() when allocating arrays in auto-generated ndr code
(This used to be commit 90cdfd921e1a6f8806fe94bba61f1bbaa79c79f1)

16 years agor4050: make sure we add objectClass and sAMAccountName
Andrew Tridgell [Fri, 3 Dec 2004 05:24:09 +0000 (05:24 +0000)]
r4050: make sure we add objectClass and sAMAccountName
(This used to be commit 57d0079bb91b8edc625027e1f28203794e018afc)

16 years agor4049: a simple perl script to add a new user to Samba4 ldb
Andrew Tridgell [Fri, 3 Dec 2004 05:01:20 +0000 (05:01 +0000)]
r4049: a simple perl script to add a new user to Samba4 ldb
(This used to be commit 76f2ae32040fe494e703abb54dd7ad09d7110408)

16 years agor4048: a very simple howto for new developers to tell them how to build and install...
Andrew Tridgell [Fri, 3 Dec 2004 03:08:36 +0000 (03:08 +0000)]
r4048: a very simple howto for new developers to tell them how to build and install samba4
(This used to be commit 4e7d723dacc0d6d526721ee037502c02ffd3fdec)

16 years agor4046: add more servicePrincipalName's for the dc account
Stefan Metzmacher [Thu, 2 Dec 2004 18:32:48 +0000 (18:32 +0000)]
r4046: add more servicePrincipalName's for the dc account

metze
(This used to be commit 659a0b26e2fa466169078bab6dd4af1e5fffb48b)

16 years agor4045: readd krb5 support defaulted to disable
Stefan Metzmacher [Thu, 2 Dec 2004 18:27:08 +0000 (18:27 +0000)]
r4045: readd krb5 support defaulted to disable

use:
gensec:krb5=yes
gensec:ms_krb5=yes

to enable it

or -k on the client tools on the command line

metze
(This used to be commit 0ae5794cf44933d2554e0356baaca24c7a784f71)

16 years agor4044: only send supportedMech when we also send other data
Stefan Metzmacher [Thu, 2 Dec 2004 18:15:39 +0000 (18:15 +0000)]
r4044: only send supportedMech when we also send other data

metze
(This used to be commit 1e0483a8482574fa0f8d7ad31cc4bf4a6155ec52)

16 years agor4042: fix segfault on server schannel connections
Stefan Metzmacher [Thu, 2 Dec 2004 12:12:26 +0000 (12:12 +0000)]
r4042: fix segfault on server schannel connections

metze
(This used to be commit 57bd26f9c528687ca2ca9bbaa56f7f36efd2231f)

16 years agor4041: fix cut-n-paste typo
Stefan Metzmacher [Thu, 2 Dec 2004 11:40:18 +0000 (11:40 +0000)]
r4041: fix cut-n-paste typo

metze
(This used to be commit 54398aa889b5954c7c387b252dd1a9173eac36f0)

16 years agor4040: sorry today is not my day...
Stefan Metzmacher [Thu, 2 Dec 2004 10:35:25 +0000 (10:35 +0000)]
r4040: sorry today is not my day...

uint32 != uint8_t ...

metze
(This used to be commit a8a3b8ee341fda041383df225ea2b7f9b589fc04)

16 years agor4039: added a test for an element > 128 bytes in length, to ensure we test
Andrew Tridgell [Thu, 2 Dec 2004 10:28:19 +0000 (10:28 +0000)]
r4039: added a test for an element > 128 bytes in length, to ensure we test
for sign extending errors in element length
(This used to be commit 07378fca6c12ffffcd3fe5e91f4d70ef838a45d5)

16 years agor4038: fix sign/unsign bug I introduced in -r 4022
Stefan Metzmacher [Thu, 2 Dec 2004 10:14:40 +0000 (10:14 +0000)]
r4038: fix sign/unsign bug I introduced in -r 4022

this caused new ldb record to be corrupt if the length was > 12b byte

thanks tridge for finding this

metze
(This used to be commit 6998c37b473d8efeb2ed5285f10f469a29ad787a)

16 years agor4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 in my...
Andrew Tridgell [Thu, 2 Dec 2004 04:51:56 +0000 (04:51 +0000)]
r4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 in my compile
(This used to be commit 0928b1f5b68c858922c3ea6c27ed03b5091c6221)

16 years agor4036: expanded the RAW-ACLS torture test to include tests for the
Andrew Tridgell [Thu, 2 Dec 2004 04:38:41 +0000 (04:38 +0000)]
r4036: expanded the RAW-ACLS torture test to include tests for the
generic->specific access mask mappings, and tests of the behaviour of
SID_CREATOR_OWNER and SEC_FLAG_MAXIMUM_ALLOWED
(This used to be commit f572fe6d29d5a318b24d71a2ebfa2baca2b79a10)

16 years agor4035: more effort on consistent naming of the access mask bits.
Andrew Tridgell [Thu, 2 Dec 2004 04:37:36 +0000 (04:37 +0000)]
r4035: more effort on consistent naming of the access mask bits.

This removes the duplicate named SEC_RIGHTS_MAXIMUM_ALLOWED and
SEC_RIGHTS_FULL_CONTROL, which are just other names for
SEC_FLAG_MAXIMUM_ALLOWED and SEC_RIGHTS_FILE_ALL. The latter names
match the new naming conventions in security.idl

Also added names for the generic->specific mappings for files are
directories
(This used to be commit 17a4e0b3aca227b40957ed1e0c57e498debc6ddf)