tprouty/samba.git
16 years agor8218: added testing of echo_TestSurrounding() and
Andrew Tridgell [Fri, 8 Jul 2005 04:16:36 +0000 (04:16 +0000)]
r8218: added testing of echo_TestSurrounding() and
echo_TestDoublePointer(). All echo.idl functions are now tested and
working from ejs.
(This used to be commit c065d677697d3e8dbe2575113823a7ac7109ca70)

16 years agor8217: added testing of echo_TestSleep() and echo_TestEnum() in echo js code
Andrew Tridgell [Fri, 8 Jul 2005 04:08:17 +0000 (04:08 +0000)]
r8217: added testing of echo_TestSleep() and echo_TestEnum() in echo js code
(This used to be commit 7fa9b8251dbab9482268f84dd98889123a9219e7)

16 years agor8216: - handle union pull in ejs pidl generation
Andrew Tridgell [Fri, 8 Jul 2005 04:07:26 +0000 (04:07 +0000)]
r8216: - handle union pull in ejs pidl generation

- added debugging calls for missing structure/union elements
(This used to be commit f3ff48204cb8edeb9f42afbbefe13f7d49305506)

16 years agor8215: switched the pull side of the ejs generator over to the recursive LEVELS based...
Andrew Tridgell [Fri, 8 Jul 2005 03:33:32 +0000 (03:33 +0000)]
r8215: switched the pull side of the ejs generator over to the recursive LEVELS based approach.
This allows for much more complex structure mappings to be generated.
(This used to be commit 49fc14d13291b02f7b16ab0eefe7bfb26f51b1c8)

16 years agor8214: added testing of echo_TestCall2(), which tests the union push code
Andrew Tridgell [Fri, 8 Jul 2005 03:11:17 +0000 (03:11 +0000)]
r8214: added testing of echo_TestCall2(), which tests the union push code
(This used to be commit 1429b885fbcf93ed012c836e21d00ca5d8c58741)

16 years agor8213: I've started to understand the LEVELS stuff in pidl much better now,
Andrew Tridgell [Fri, 8 Jul 2005 03:10:30 +0000 (03:10 +0000)]
r8213: I've started to understand the LEVELS stuff in pidl much better now,
and have re-coded the push side of the ejs generator to use it
properly. It ends up being very neat and small, and should handle much
more complex structures (like arrays of pointers to unions etc).

Also added push side support for unions. This should get more of the
echo pipe working via ejs.
(This used to be commit 2e306be1d83f722c259c4a63233e77d8bb1d5a72)

16 years agor8212: fix pushing of nbt_string's:
Stefan Metzmacher [Thu, 7 Jul 2005 19:49:35 +0000 (19:49 +0000)]
r8212: fix pushing of nbt_string's:

- we now use an ndr_token_list, for the nbt string label pointer offsets
  this avoids to scan the whole buffer

- we need to check for already send string on a per component basis
  not only for the fullname

e.g.
w2k3 response this in the CLDAP netlogon replies

forest: w2k3.vmnet1.vm.base
dns_name: sub1.
pdc_dns_name: w2k3-104.

and this will be interpreted like

forest: w2k3.vmnet1.vm.base
dns_name: sub1.w2k3.vmnet1.vm.base
pdc_dns_name: w2k3-104.w2k3.vmnet1.vm.base

metze
(This used to be commit d18303a0e27643285ffaf100eeddea2f9555c9db)

16 years agor8211: fix some cldap replies
Stefan Metzmacher [Thu, 7 Jul 2005 19:40:25 +0000 (19:40 +0000)]
r8211: fix some cldap replies

metze
(This used to be commit 8ca5729ec80a9064d592503ae101d22e07c2da0a)

16 years agor8210: - make the ndr_token_* function public
Stefan Metzmacher [Thu, 7 Jul 2005 19:13:32 +0000 (19:13 +0000)]
r8210: - make the ndr_token_* function public

- allow comparison function to be passed for ndr_token_retrive_cmp_fn(),
  this is for matching the keys, if NULL is passed, the old behavior
  tok->key == key is used

metze
(This used to be commit 019f3dc767ef703768df3acdbbd80808c122855c)

16 years agor8203: fix the build temporary,
Stefan Metzmacher [Thu, 7 Jul 2005 11:16:25 +0000 (11:16 +0000)]
r8203: fix the build temporary,

we also get perl warnings uninitialized value used in ejs.pm line 26

metze
(This used to be commit 3f0a6efd7495971d4641cc9c3a5c5ede4bbc6898)

16 years agor8200: - added stub functions for union pull/push
Andrew Tridgell [Thu, 7 Jul 2005 08:32:35 +0000 (08:32 +0000)]
r8200: - added stub functions for union pull/push

- kill the js interpreter with an exception on internal errors
(This used to be commit 5f062d71481a0aa2d8c89099abb2d171b789879e)

16 years agor8199: - we don't need to pre-declare 'var status;' everywhere
Andrew Tridgell [Thu, 7 Jul 2005 08:21:45 +0000 (08:21 +0000)]
r8199: - we don't need to pre-declare 'var status;' everywhere

- added testing of echo_TestCall(), which uses strings
(This used to be commit 67aa628413342fd812afd966c95ea9d470b3151b)

16 years agor8198: - handled push/pull of simple strings in ejs
Andrew Tridgell [Thu, 7 Jul 2005 08:20:57 +0000 (08:20 +0000)]
r8198: - handled push/pull of simple strings in ejs

- improved the error handling, so the ejs wrappers don't just ignore a type they
  don't handle, instead an exception is issued saying what isn't handled
(This used to be commit a77c2aa8606ad668f6a513211a1d9e7d6193d741)

16 years agor8197: added testing of echo_SinkData() and echo_SourceData()
Andrew Tridgell [Thu, 7 Jul 2005 07:47:30 +0000 (07:47 +0000)]
r8197: added testing of echo_SinkData() and echo_SourceData()
(This used to be commit f1d6b328c46265b04fe7c0626d94bb2c844507c9)

16 years agor8196: - added testing of the EchoData interface in the echo test script
Andrew Tridgell [Thu, 7 Jul 2005 07:43:45 +0000 (07:43 +0000)]
r8196: - added testing of the EchoData interface in the echo test script

- add asserts on all calls for correct results
(This used to be commit 0b67754c281f387148b64ba00742437330dc68f7)

16 years agor8195: - fixed handling of simple arrays. To keep the logic simple, I moved to making...
Andrew Tridgell [Thu, 7 Jul 2005 07:42:47 +0000 (07:42 +0000)]
r8195: - fixed handling of simple arrays. To keep the logic simple, I moved to making all push
  functions taking a constant pointer to the type rather than having a different calling
  convention for scalars and pointers

- fixed the setting of the 'length' element in arrays
(This used to be commit 431b4b6888434daa8d1306f0e98bae7b2fe0fddd)

16 years agor8194: delete the old hand-written ejs code for echo_AddOne. This is now
Andrew Tridgell [Thu, 7 Jul 2005 06:27:23 +0000 (06:27 +0000)]
r8194: delete the old hand-written ejs code for echo_AddOne. This is now
autogenerated by pidl
(This used to be commit 697b67ed572a458494fbf9172a341f6b621c84a3)

16 years agor8193: fixed the echo.js example code to work with the new syntax for rpc
Andrew Tridgell [Thu, 7 Jul 2005 06:26:22 +0000 (06:26 +0000)]
r8193: fixed the echo.js example code to work with the new syntax for rpc
calls from js. I chose the new syntax to match the C calling syntax,
so if you are familiar with using the Samba4 rpc libraries from C,
then using them from js should be easy
(This used to be commit 757bb7f31cc85b08885d55adf6e2ce7d925c0353)

16 years agor8192: updated the glue code for the generated ejs functions from pidl
Andrew Tridgell [Thu, 7 Jul 2005 06:25:04 +0000 (06:25 +0000)]
r8192: updated the glue code for the generated ejs functions from pidl

only handles a small subset of all IDL files so far
(This used to be commit 14b6436cc51f599572932bef72c49e0da4888073)

16 years agor8191: updated the ejs code generator in pidl to generate enough code for
Andrew Tridgell [Thu, 7 Jul 2005 06:23:36 +0000 (06:23 +0000)]
r8191: updated the ejs code generator in pidl to generate enough code for
simple rpc calls to work. Still very rough, but its a start.
(This used to be commit fb2639bbc203e49f6719922b6850edf28c8748a1)

16 years agor8185: Delete on close on directories:
Volker Lendecke [Wed, 6 Jul 2005 14:56:45 +0000 (14:56 +0000)]
r8185: Delete on close on directories:

Creating a file in a directory with delete-on-close set returns
DELETE_PENDING, and trying to set the flag on a non-empty directory returns
DIRECTORY_NOT_EMPTY.

Volker
(This used to be commit 5680f34778b2f5291936f4d4fb937a7713696c52)

16 years agor8182: Little more testing delete-on-close: Check flag with qfileinfo.
Volker Lendecke [Wed, 6 Jul 2005 13:24:38 +0000 (13:24 +0000)]
r8182: Little more testing delete-on-close: Check flag with qfileinfo.

Volker
(This used to be commit 47a9df946d5ff967289fba0ff4209711ead11e31)

16 years agor8181: Allow host/foo.realm/realm@REALM requests, assuming that the realm
Andrew Bartlett [Wed, 6 Jul 2005 12:33:52 +0000 (12:33 +0000)]
r8181: Allow host/foo.realm/realm@REALM requests, assuming that the realm
forms both differ only in case.  We may need a better solution than
this later.

Andrew Bartlett
(This used to be commit a0ad13f5bceb17c1b856548825e5509921b409f0)

16 years agor8179: Delete-on-close is really a shared DB. Setting it on one connection(!) and
Volker Lendecke [Wed, 6 Jul 2005 09:50:31 +0000 (09:50 +0000)]
r8179: Delete-on-close is really a shared DB. Setting it on one connection(!) and
resetting it on another resets it for both.

Volker
(This used to be commit 30bd7e36669dbb2fd7d85a1cd72927370267d616)

16 years agor8177: More explorations.
Volker Lendecke [Wed, 6 Jul 2005 08:13:11 +0000 (08:13 +0000)]
r8177: More explorations.

The share mode db is actually checked on qpathinfo even before the
delete-on-close is executed.

Volker
(This used to be commit 124f3b74ca2ece9ba73737c3ccb75e1730973f19)

16 years agor8176: Exploring the share mode database...
Volker Lendecke [Wed, 6 Jul 2005 07:45:22 +0000 (07:45 +0000)]
r8176: Exploring the share mode database...

A delete-on-close deleted file is still around while open on another fd. But
only for findfirst, not for qpathinfo :-)

Volker
(This used to be commit dbc7a1a978d782c73f593f4b46f2a81d35169713)

16 years agor8174: Check DOS error codes in torture chkpath test.
Jeremy Allison [Wed, 6 Jul 2005 03:13:17 +0000 (03:13 +0000)]
r8174: Check DOS error codes in torture chkpath test.
Jeremy.
(This used to be commit ff58ecad044dc7a3cdb4c010ea5cc1ea5e2e4b3b)

16 years agor8171: According to Samba 3 and Ethereal, the winreg_OpenUnkown stuff is
Tim Potter [Wed, 6 Jul 2005 01:53:34 +0000 (01:53 +0000)]
r8171: According to Samba 3 and Ethereal, the winreg_OpenUnkown stuff is
actually a uint16 * without the [string] attribute, a la the the
system_name argument to samr_Connect().

Initialising the pointer to NULL is sufficient and we still pass the
RPC-WINREG test against win2k3.
(This used to be commit 407d962dacf7c833b36cb739e48fe97226968a34)

16 years agor8168: after testing I saw that w2k3 uses unique pointers on the mgmt pipe
Stefan Metzmacher [Tue, 5 Jul 2005 12:42:54 +0000 (12:42 +0000)]
r8168: after testing I saw that w2k3 uses unique pointers on the mgmt pipe
that also matches the spec at http://www.opengroup.org/onlinepubs/9629399/apdyq.htm

metze
(This used to be commit 117e678bde040b9294c2fff473ececd0d7e3a1cc)

16 years agor8167: - use the same algorithm than w2k3 for 'unique' pointer values
Stefan Metzmacher [Tue, 5 Jul 2005 12:09:33 +0000 (12:09 +0000)]
r8167: - use the same algorithm than w2k3 for 'unique' pointer values

- add a new 'sptr' (simple-full) pointer type to simulate what we need to support pipes
  like epmapper and mgmt that uses 'ptr' full pointer in their spec

- I runned make test and test_w2k3.sh with this, all fine

does we have any other pipe using 'unique' pointer where we need 'ptr'?

btw: jelmer, what does 'ignore' pointers do? they are allowed in pidl but not implemented!

metze
(This used to be commit d19068bfb2e3ff5d88bc3b76d5cef93417c7f218)

16 years agor8164: - match the ordering w2k3 uses for the PAC_BUFFER:
Stefan Metzmacher [Tue, 5 Jul 2005 10:57:39 +0000 (10:57 +0000)]
r8164: - match the ordering w2k3 uses for the PAC_BUFFER:
   LOGON_INFO
   LOGON_NAME
   SRV_CHECKSUM
   KDC_CHECKSUM

- w2k3 also don't use the groupmembership array with rids
  it uses the othersids array

metze
(This used to be commit 2286fad27d749ebba14f5448f1f635bb36750c9c)

16 years agor8163: if sidcount is zero it happened that we return NT_STATUS_NO_MEMORY...
Stefan Metzmacher [Tue, 5 Jul 2005 10:52:26 +0000 (10:52 +0000)]
r8163: if sidcount is zero it happened that we return NT_STATUS_NO_MEMORY...

metze
(This used to be commit a9ff35a1a24f2d2935e67855fee5011ea528029f)

16 years agor8162: Revert my pad8 hack.
Andrew Bartlett [Tue, 5 Jul 2005 10:06:15 +0000 (10:06 +0000)]
r8162: Revert my pad8 hack.

Andrew Bartlett
(This used to be commit 8e78830ffc9280b48e1e690d95a94f1645e6e496)

16 years agor8161: Update Samba4 for the new Heimdal update.
Andrew Bartlett [Tue, 5 Jul 2005 10:05:40 +0000 (10:05 +0000)]
r8161: Update Samba4 for the new Heimdal update.

Andrew Bartlett
(This used to be commit 6a9b6373273f135fe012a6603707d77c2a65e9fa)

16 years agor8158: - use the timestring for the serial number of the bind zone file
Stefan Metzmacher [Tue, 5 Jul 2005 07:10:52 +0000 (07:10 +0000)]
r8158: - use the timestring for the serial number of the bind zone file

- add --krbtgtpass and --machinepass options, with them you can easy set them to default
  values for testing so that you don't need to setup a new keytab file when you rerun provision.pl

metze
(This used to be commit cfb72455970c182aaba67bf9cf9775a854f143ff)

16 years agor8157: add the algorithm for unique pointers that w2k3 uses.
Stefan Metzmacher [Tue, 5 Jul 2005 06:17:47 +0000 (06:17 +0000)]
r8157: add the algorithm for unique pointers that w2k3 uses.

this is ifdef'ed out currently because we use 'unique' pointers in the epmapper pipe,
where we should use 'ptr' full pointers.

metze
(This used to be commit ccc9d9267a60287eff1fb26132aa7cae3b39dcee)

16 years agor8156: I found out that the unknown[2] field of the unknown[4] array is a length...
Stefan Metzmacher [Tue, 5 Jul 2005 06:13:12 +0000 (06:13 +0000)]
r8156: I found out that the unknown[2] field of the unknown[4] array is a length too,
it's always 16 bytes smaller than the size in the PAC_BUFFER

we now dump the blob's on LOCAL-PAC with -d 10

metze
(This used to be commit 4ef721ce53539ac56ca8ac4d601f512149ca7283)

16 years agor8154: - fix some mem_leals
Stefan Metzmacher [Mon, 4 Jul 2005 17:04:36 +0000 (17:04 +0000)]
r8154: - fix some mem_leals

- check if the buffer length of the original and created buffer are equal

metze
(This used to be commit 84ff2d87e28df3e2b3c1495a9ea48f40221b96ae)

16 years agor8150: these should be static
Stefan Metzmacher [Mon, 4 Jul 2005 16:16:22 +0000 (16:16 +0000)]
r8150: these should be static

metze
(This used to be commit 25f5d1db296b03b62869c8467b652a0df3107222)

16 years agor8148: - make the PAC generation code a bit more readable and add some outof memory...
Stefan Metzmacher [Mon, 4 Jul 2005 15:42:08 +0000 (15:42 +0000)]
r8148: - make the PAC generation code a bit more readable and add some outof memory checks

- move to handmodified pull/push code for PAC_BUFFER
  to get the _ndr_size field and the subcontext size right

- after looking closely to the sample w2k3 PAC in our torture test (and some more in my archive)
  I found out that the first uint32 before the netr_SamInfo3 was also a pointer,
  (and we passed a NULL pointer there before, so I think that was the reason why the windows clients doesn't want our PAC)

  w2k3 uses this for unique pointers:

  ptr = ndr->ptr_count * 4;
  ptr |= 0x00020000;
  ndr->ptr_count;

- do one more pull/push round with the sample PAC

metze
(This used to be commit 0eee17941595e9842a264bf89ac73ca66cea7ed5)

16 years agor8146: fix compiler warning
Stefan Metzmacher [Mon, 4 Jul 2005 15:06:05 +0000 (15:06 +0000)]
r8146: fix compiler warning

metze
(This used to be commit 5fcaa21d67e399aab4af15f4f6f919203c1152e5)

16 years agor8136: remove unused var
Stefan Metzmacher [Mon, 4 Jul 2005 10:38:35 +0000 (10:38 +0000)]
r8136: remove unused var

metze
(This used to be commit d75c97b8476357bee4d3ba5f8464193c8d296cdd)

16 years agor8135: fix the linking on my SuSE 7.3 box
Stefan Metzmacher [Mon, 4 Jul 2005 10:37:05 +0000 (10:37 +0000)]
r8135: fix the linking on my SuSE 7.3 box

metze
(This used to be commit a2a8aa322d722bd8a1ab672eacfe2f812d621f84)

16 years agor8134: remove unused var
Stefan Metzmacher [Mon, 4 Jul 2005 10:26:25 +0000 (10:26 +0000)]
r8134: remove unused var

metze
(This used to be commit f308b72b19ab1e0e2f5a732bd1bc13082a634a9c)

16 years agor8128: Janitor work...
Rafal Szczesniak [Mon, 4 Jul 2005 07:32:48 +0000 (07:32 +0000)]
r8128: Janitor work...

rafal
(This used to be commit 9f0dfafcdeceb23c19686d2163e6ff6e613bd067)

16 years agor8127: fixed code in function error
Andrew Tridgell [Mon, 4 Jul 2005 07:26:27 +0000 (07:26 +0000)]
r8127: fixed code in function error
(This used to be commit 46632e2048f0b87de351cd3f26229cfc4b3384ca)

16 years agor8126: - moved to 16 byte alignment for talloc. This is in response to a bug
Andrew Tridgell [Mon, 4 Jul 2005 07:10:21 +0000 (07:10 +0000)]
r8126: - moved to 16 byte alignment for talloc. This is in response to a bug
  report from robert collins.

- updated talloc guide to reflect the fact that over the last few
  months talloc overhead compared to malloc has dropped, probably due
  to a bunch of small changes. It now costs about 4% more than malloc
  on my box
(This used to be commit 689a9ccf91f9de560a500787d85321abe096b948)

16 years agor8125: fixed an error code mapping based on the updated torture tests
Andrew Tridgell [Mon, 4 Jul 2005 05:55:32 +0000 (05:55 +0000)]
r8125: fixed an error code mapping based on the updated torture tests
(This used to be commit a3b8a00d7f67da5bc1187ce271a8df1601411dbc)

16 years agor8124: added a set of file sharing tests that pass against w2k3
Andrew Tridgell [Mon, 4 Jul 2005 05:54:41 +0000 (05:54 +0000)]
r8124: added a set of file sharing tests that pass against w2k3
(This used to be commit 93c2d93ed81c688d5e191aed0dc70ecfe59830ea)

16 years agor8123: fixed the RAW-NOTIFY and RAW-QFSINFO tests against w2k3
Andrew Tridgell [Mon, 4 Jul 2005 05:54:09 +0000 (05:54 +0000)]
r8123: fixed the RAW-NOTIFY and RAW-QFSINFO tests against w2k3
(This used to be commit acd9fad3a4c578e20cd4bdb79a000a7ff70f680c)

16 years agor8122: more fixes from testing dos error code handling against w2k3
Andrew Tridgell [Mon, 4 Jul 2005 05:24:39 +0000 (05:24 +0000)]
r8122: more fixes from testing dos error code handling against w2k3
(This used to be commit b71fbcf5e2c627d918aef555b8cc8dd4591d8fe7)

16 years agor8121: yuck. w2k3 seems to choose ERRDOS:ERRbaduid or
Andrew Tridgell [Mon, 4 Jul 2005 05:16:57 +0000 (05:16 +0000)]
r8121: yuck. w2k3 seems to choose ERRDOS:ERRbaduid or
NT_STATUS_INVALID_HANDLE on a per call basis for a bad vuid. That
means it is doing checking for a valid vuid in each backend function,
rather than globally. I don't want to emulate that as it is way too
error prone, and could easily lead to a security hole, so instead
accept either error code in our test suite.
(This used to be commit aefa9e53fa97551c1b15bdd50565881e63aea9a8)

16 years agor8120: added in the newly found DOS locking error codes into the pvfs backend
Andrew Tridgell [Mon, 4 Jul 2005 05:08:27 +0000 (05:08 +0000)]
r8120: added in the newly found DOS locking error codes into the pvfs backend
(This used to be commit d77b3820d16f60fb9119ac6eb70007363990b20d)

16 years agor8119: fixed two error code returns in the smb server now that we have
Andrew Tridgell [Mon, 4 Jul 2005 05:07:18 +0000 (05:07 +0000)]
r8119: fixed two error code returns in the smb server now that we have
torture code that can tell the difference between dos and ntstatus
codes without mapping
(This used to be commit 5521060c089c2181a2f3c7aeabd2f3ba813c6e60)

16 years agor8118: remove a debugging hack that should not have been in the last commit
Andrew Tridgell [Mon, 4 Jul 2005 05:06:16 +0000 (05:06 +0000)]
r8118: remove a debugging hack that should not have been in the last commit
(This used to be commit 0f76449a08955cfe50178b6accfd631d7cf42da3)

16 years agor8117: fixed a bunch more dos error code handing.
Andrew Tridgell [Mon, 4 Jul 2005 05:05:28 +0000 (05:05 +0000)]
r8117: fixed a bunch more dos error code handing.

The biggest change was fixing the RAW-CONTEXT test. It was forcing
capabilities to zero in an attempt to not negotiated extended
security, but as a side effect it was forcing negotiation of dos error
codes. This confused the hell out of the test code!

Also fixed a bunch of places incorrectly using NT_STATUS_V() instead
of NT_STATUS_EQUAL() and several places that had the wrong dos status
codes
(This used to be commit 0b22744f40804a0d6dc94bfc40ec09306f584f7e)

16 years agor8116: demonstrate a little trick that can be used to track down where an
Andrew Tridgell [Mon, 4 Jul 2005 05:02:29 +0000 (05:02 +0000)]
r8116: demonstrate a little trick that can be used to track down where an
error is coming from. In this case I needed to know where a
NT_STATUS_ACCESS_DENIED was being returned, which is a very common
error, but I needed to know which place in the code was giving it
(This used to be commit 692bb1c8a1428917ed6c516d02524c2f76157181)

16 years agor8115: added support for 2 more dos error codes found during testing
Andrew Tridgell [Mon, 4 Jul 2005 05:01:22 +0000 (05:01 +0000)]
r8115: added support for 2 more dos error codes found during testing
(This used to be commit 97cb70571377e3b4e5eb0b7ca516e4af349fdfea)

16 years agor8114: fixed the build after tpots ejs commit ....
Andrew Tridgell [Mon, 4 Jul 2005 04:20:34 +0000 (04:20 +0000)]
r8114: fixed the build after tpots ejs commit ....
(This used to be commit 8649945cf9932a169190727f99e352ad68b0589f)

16 years agor8113: this should fix the build on systems without heimdal
Andrew Tridgell [Mon, 4 Jul 2005 03:42:28 +0000 (03:42 +0000)]
r8113: this should fix the build on systems without heimdal
(This used to be commit 980c09cfca1744c35eb284c7177709fedba073dc)

16 years agor8112: Remove extra headers, and add #ifdef to allow the 'not yet using
Andrew Bartlett [Mon, 4 Jul 2005 03:34:56 +0000 (03:34 +0000)]
r8112: Remove extra headers, and add #ifdef to allow the 'not yet using
Heimdal' case.

Andrew Bartlett
(This used to be commit b7c3c2f67188d8c8478d93e6890a81fa7d468061)

16 years agor8111: fixed the client library to work against w2k3 with nt status codes
Andrew Tridgell [Mon, 4 Jul 2005 02:54:32 +0000 (02:54 +0000)]
r8111: fixed the client library to work against w2k3 with nt status codes
disabled. The main change is to turn off spnego, which cannot work at
all without nt status codes (w2k3 gives a ERRHRD:ERRgeneral error when
you try)

I also modified NT_STATUS_EQUAL() to allow for nt->dos code equality,
but only when nt status codes are disabled in smb.conf. That keeps all
the existing torture code working, while still allowing us to
correctly catch the cases where forced dos error codes are needed

The dos->ntstatus mapping table has been removed completely, as it
doesn't really make sense, is impossible to get right, and with the
new dos status handling isn't needed. When matching a nt status code
to a dos status code it makes far more sense to map from the nt code
to the dos code and compare, rather than the reverse, as the nt->dos
mapping is what windows has to do internally, so there really is a
valid mapping table.
(This used to be commit f21274e07b361ef40fdc0fe23e96f1c9c63a091c)

16 years agor8110: More PAC work. I still can't get WinXP to accept the PAC, but we are
Andrew Bartlett [Mon, 4 Jul 2005 02:36:16 +0000 (02:36 +0000)]
r8110: More PAC work.  I still can't get WinXP to accept the PAC, but we are
much closer.

This changes PIDL to allow a subcontext to have a pad8 flag, saying to
pad behind to an 8 byte boundary.  This is the only way I can explain
the 4 trainling zeros in the signature struct.

Far more importantly, the PAC code is now under self-test, both in
creating/parsing our own PAC, but also a PAC from my win2k3 server.
This required changing auth_anonymous, because I wanted to reuse the
anonymous 'server_info' generation code.

I'm still having trouble with PIDL, particulary as surrounds value(),
but I'll follow up on the list.

Andrew Bartlett
(This used to be commit 50a54bf4e9bf04d2a8e0aebb3482a2ff655c8bbb)

16 years agor8109: Try to print out more helpful debug messages on DCERPC server-side
Andrew Bartlett [Mon, 4 Jul 2005 02:27:18 +0000 (02:27 +0000)]
r8109: Try to print out more helpful debug messages on DCERPC server-side
gensec failure to start.

Andrew Bartlett
(This used to be commit bc8f8d2dcfbcf06bb9c49981bc3811b252a4b9b0)

16 years agor8108: Fix indentation, and remove a discard_const_p() that we don't need any more.
Andrew Bartlett [Mon, 4 Jul 2005 02:25:33 +0000 (02:25 +0000)]
r8108: Fix indentation, and remove a discard_const_p() that we don't need any more.

Perhaps like minimal_includes.pl, we should have a way to find these
automaticly.  Hmm...

Andrew Bartlett
(This used to be commit d13b9f548e9d3696505178476d2615835cae8fe2)

16 years agor8107: now that we properly separate DOS and NT status codes all the places
Andrew Tridgell [Mon, 4 Jul 2005 01:57:53 +0000 (01:57 +0000)]
r8107: now that we properly separate DOS and NT status codes all the places
that relied on the mapping need to be fixed. The first thing is to get
all the torture tests working against w2k3 again with nt status codes
enabled. The 2nd step will be to make them pass with nt status
disabled.

This starts on the first task, fixing the assumption that
NT_STATUS_INVALID_LOCK_SEQUENCE is a valid substitute for
ERRDOS:ERRbadaccess
(This used to be commit 87cdd117081193d215c5a9e3603438e058ad777b)

16 years agor8106: the use of a static string for dos error codes was causing problems in
Andrew Tridgell [Mon, 4 Jul 2005 01:45:52 +0000 (01:45 +0000)]
r8106: the use of a static string for dos error codes was causing problems in
the torture code. To fix this, get rid of dos_errstr() and instead
move the strings into the nt_errstr() table, using cpp to generate the
strings
(This used to be commit 3136ad9634f0a5ab46e4f83e093df87fdd36484d)

16 years agor8105: Add ejsrpc push/pull functions for uint16 and uint8.
Tim Potter [Mon, 4 Jul 2005 01:31:34 +0000 (01:31 +0000)]
r8105: Add ejsrpc push/pull functions for uint16 and uint8.
(This used to be commit ee27943e215126a2048d1082437ef2597d913371)

16 years agor8104: - added support for our client library to not negotiate nt status codes, contr...
Andrew Tridgell [Mon, 4 Jul 2005 01:23:38 +0000 (01:23 +0000)]
r8104: - added support for our client library to not negotiate nt status codes, controlled
  with 'nt status support' option.

- make nt_errstr() display nice strings for dos status codes encoded
  using NT_STATUS_DOS()

- no longer map between dos and nt status codes in the client library,
  instead return using NT_STATUS_DOS()

- fixed the RAW-CONTEXT test to look for
  NT_STATUS_DOS(ERRSRV, ERRbaduid) instead of NT_STATUS_INVALID_HANDLE
(This used to be commit ff5549e87ffae9f062394f30d8fd1ae95b614735)

16 years agor8103: Add an argument separator between the hardcoded args and $PIDL_EXTRA_ARGS
Tim Potter [Mon, 4 Jul 2005 01:20:02 +0000 (01:20 +0000)]
r8103: Add an argument separator between the hardcoded args and $PIDL_EXTRA_ARGS
so the first extra arg isn't interpreted as a parameter to the last
hardcoded arg.
(This used to be commit ad1700ca8e1af7933a183172f4a5ad4b56280474)

16 years agor8101: Fix some indentation.
Tim Potter [Mon, 4 Jul 2005 00:30:06 +0000 (00:30 +0000)]
r8101: Fix some indentation.
(This used to be commit baa8f0836f34c94a2f3d831e315575cfa7ced7c3)

16 years agor8099: clean up after BASE-TCON
Volker Lendecke [Sun, 3 Jul 2005 17:35:19 +0000 (17:35 +0000)]
r8099: clean up after BASE-TCON
(This used to be commit 23bff7bf6cf437e78db50b09f69fd1fbdf6aab35)

16 years agor8098: Add my copyright and remove unecessary header dependency.
Rafal Szczesniak [Sun, 3 Jul 2005 17:17:32 +0000 (17:17 +0000)]
r8098: Add my copyright and remove unecessary header dependency.

rafal
(This used to be commit 88e7b9c2371383c469e2db73d4c8dca70aca7586)

16 years agor8096: Remove function that has became libnet_Lookup fuction.
Rafal Szczesniak [Sun, 3 Jul 2005 14:47:19 +0000 (14:47 +0000)]
r8096: Remove function that has became libnet_Lookup fuction.

rafal
(This used to be commit 9885749e36435b301c992e50d0a189860cfa4b5e)

16 years agor8095: Fix compiler warning.
Rafal Szczesniak [Sun, 3 Jul 2005 14:03:41 +0000 (14:03 +0000)]
r8095: Fix compiler warning.

rafal
(This used to be commit 6736ab102f60f8e14d10f430f3e5a0eef478bc81)

16 years agor8094: Fix compiler warnings.
Rafal Szczesniak [Sun, 3 Jul 2005 13:58:47 +0000 (13:58 +0000)]
r8094: Fix compiler warnings.

rafal
(This used to be commit cca6d792945477b86b2dd91f3c90152b69ee2a15)

16 years agor8091: fix invalid attribute names s/_/-/g
Simo Sorce [Sun, 3 Jul 2005 08:49:38 +0000 (08:49 +0000)]
r8091: fix invalid attribute names s/_/-/g
this will fix the build
(This used to be commit 9a8872b168c68bade31cab09bea609d2143c4e97)

16 years agor8084: do not leak memory on errors
Simo Sorce [Sat, 2 Jul 2005 18:43:22 +0000 (18:43 +0000)]
r8084: do not leak memory on errors
(This used to be commit 2e328e6c2fc2c66b0d0de910cd43ab232049bc90)

16 years agor8083: check attribute type is valid (only ascii alphanum chars and '-' char)
Simo Sorce [Sat, 2 Jul 2005 18:34:13 +0000 (18:34 +0000)]
r8083: check attribute type is valid (only ascii alphanum chars and '-' char)
fail if not
(This used to be commit b1a61cd5d03b4c61b81c810123ffeb3621831617)

16 years agor8082: large rewite of ldb_dn.c
Simo Sorce [Sat, 2 Jul 2005 17:30:03 +0000 (17:30 +0000)]
r8082: large rewite of ldb_dn.c

- we do not support multpiple attribute components anymore, makes code a lot easier
  they will be readded later if we found out they are really used, so far my tests
  show w2k3 do not handle them as well

- fix escaping issues, move component value to be in an ldb_val structure
  still need to handle binary values case

- make cononicalize functions leak less memory by giving a specific memory context

- fix tests scripts so that test-ldap can start
- make test not delete databases on completion so that I can inspect them
(This used to be commit 624a73148d125690ce18515f19231d26df207738)

16 years agor8081: Add simple test for RpcConnect function.
Rafal Szczesniak [Sat, 2 Jul 2005 14:38:05 +0000 (14:38 +0000)]
r8081: Add simple test for RpcConnect function.

rafal
(This used to be commit 0209fc67adae9d2003f06c826557306c2141a6a8)

16 years agor8080: Use libnet_context where using libnet_Lookup functions now.
Rafal Szczesniak [Sat, 2 Jul 2005 14:37:21 +0000 (14:37 +0000)]
r8080: Use libnet_context where using libnet_Lookup functions now.

rafal
(This used to be commit 1815a6af06aa791bfecb4aee8742701975d35318)

16 years agor8079: Dcerpc pipe in libnet_context is just pipe now, instead of explicit samr.
Rafal Szczesniak [Sat, 2 Jul 2005 14:36:34 +0000 (14:36 +0000)]
r8079: Dcerpc pipe in libnet_context is just pipe now, instead of explicit samr.

rafal
(This used to be commit e7870156dacb2e0346e24f8490bfd90e8b21ea96)

16 years agor8078: rpc connect function uses structure now.
Rafal Szczesniak [Sat, 2 Jul 2005 14:35:01 +0000 (14:35 +0000)]
r8078: rpc connect function uses structure now.

rafal
(This used to be commit 34592b6a92591122180649de251f2ddc181fe382)

16 years agor8077: Propagate changes in rpc connect routine to functions using it
Rafal Szczesniak [Sat, 2 Jul 2005 14:33:55 +0000 (14:33 +0000)]
r8077: Propagate changes in rpc connect routine to functions using it
(it's quite common).

rafal
(This used to be commit 798b00c24ae30a08ac81342d13130a6a2f9d3a08)

16 years agor8076: Put name resolution methods into libnet_context. This allows libnet based
Rafal Szczesniak [Sat, 2 Jul 2005 14:32:49 +0000 (14:32 +0000)]
r8076: Put name resolution methods into libnet_context. This allows libnet based
application use methods of their own choice and makes it less dependent on
smb.conf parameters.
Use libnet_context in libnet_Lookup functions which is the way to pass
default name resolution methods if caller doesn't want to bother with
specifying them.

rafal
(This used to be commit d0ea136356bcb9c6c01120d8683b71e8689d5e5b)

16 years agor8075: Make rpc connect function part of libnet api, as I suppose many
Rafal Szczesniak [Sat, 2 Jul 2005 14:28:15 +0000 (14:28 +0000)]
r8075: Make rpc connect function part of libnet api, as I suppose many
implementers of more complex function might need to use it.
Also simplify io structure which essentially does the same thing
when connecting arbitrary rpc server or a domain pdc.

rafal
(This used to be commit b28d2e96392e89e39f2499f54b6e549a8f3cfb4b)

16 years agor8074: demonstrate calling echo_AddOne() from ejs
Andrew Tridgell [Sat, 2 Jul 2005 11:13:12 +0000 (11:13 +0000)]
r8074: demonstrate calling echo_AddOne() from ejs
(This used to be commit 0c534699efb24abefd9879859cde6a9ac61e5af3)

16 years agor8073: a successful rpc call from ejs!
Andrew Tridgell [Sat, 2 Jul 2005 11:12:33 +0000 (11:12 +0000)]
r8073: a successful rpc call from ejs!

the ejs_echo.c code is the stuff that needs to be auto-generated by
pidl. It only does echo_AddOne so far.

We also need a table for registering these calls. The code is
hard-wired for echo_AddOne for now.
(This used to be commit b1ea58ddc482c373783d16331dd07378010ba39a)

16 years agor8071: reduce the size of the default ldb tests. We run on some pretty low powered...
Andrew Tridgell [Sat, 2 Jul 2005 06:32:06 +0000 (06:32 +0000)]
r8071: reduce the size of the default ldb tests. We run on some pretty low powered machines
in the farm, and don't want to chew too much cpu needlessly.
(This used to be commit c03753faa46d52ae4606546b57962e10c41ea3ad)

16 years agor8070: a (as yet not working) example of how rpc calls might be made from js scripts
Andrew Tridgell [Sat, 2 Jul 2005 05:22:12 +0000 (05:22 +0000)]
r8070: a (as yet not working) example of how rpc calls might be made from js scripts
(This used to be commit b9e73fa932e8289b756b557faeca1690c02a21ed)

16 years agor8069: the beginnings of code to allow rpc calls to be made from ejs
Andrew Tridgell [Sat, 2 Jul 2005 05:21:17 +0000 (05:21 +0000)]
r8069: the beginnings of code to allow rpc calls to be made from ejs

tpot, note that this shows how you can modify passed in MprVar
variables in C call
(This used to be commit a782541db3de6ca3b599a220265cf9e6cb0c4d7b)

16 years agor8068: reduced the verbosity of the EPM code
Andrew Tridgell [Sat, 2 Jul 2005 05:18:33 +0000 (05:18 +0000)]
r8068: reduced the verbosity of the EPM code
(This used to be commit 4c5974fc3dabd090284b2ed455a0af114ddbec1d)

16 years agor8067: added a method for disabling the password prompt in programs that want
Andrew Tridgell [Sat, 2 Jul 2005 05:18:01 +0000 (05:18 +0000)]
r8067: added a method for disabling the password prompt in programs that want
cmdline credentials, but don't want a prompt if none are supplied
(This used to be commit d7d7f7292b7032dcad6d6245510af229f12f7085)

16 years agor8065: don't run the LOCAL-ICONV test in selftest. It does cross-checking of
Andrew Tridgell [Sat, 2 Jul 2005 01:17:19 +0000 (01:17 +0000)]
r8065: don't run the LOCAL-ICONV test in selftest. It does cross-checking of
the builtin iconv code with the system iconv code, and too many
platforms have broken system iconv code, making it fail in a way that
is meaningless for whether samba will work
(This used to be commit a12950195173337869c5894c86327e7e75cf289f)

16 years agor8059: fixed handling of delete on close fir directories
Andrew Tridgell [Fri, 1 Jul 2005 12:59:23 +0000 (12:59 +0000)]
r8059: fixed handling of delete on close fir directories
(This used to be commit 14f51a99bccffac0ca284d1315ab6d4b10f3711f)

16 years agor8058: added testing of delete on close for files and directories
Andrew Tridgell [Fri, 1 Jul 2005 12:47:10 +0000 (12:47 +0000)]
r8058: added testing of delete on close for files and directories
(This used to be commit 214e51b3c8021dfe31ad951603bae64fa281b0f8)

16 years agor8057: use our defined push/pull types in the validate code (fixes a warning)
Andrew Tridgell [Fri, 1 Jul 2005 12:22:50 +0000 (12:22 +0000)]
r8057: use our defined push/pull types in the validate code (fixes a warning)
(This used to be commit 4e14ebf51e871d6d70a194e2725c2158675dc6fc)

16 years agor8056: make the realm lowercase in our ldb (better matches w2k3)
Andrew Tridgell [Fri, 1 Jul 2005 12:20:24 +0000 (12:20 +0000)]
r8056: make the realm lowercase in our ldb (better matches w2k3)
(This used to be commit 39cfb6f739f33a33dcbee708a9a2e5f1c6c12287)

16 years agor8055: added canonicalName to our domainDns record
Andrew Tridgell [Fri, 1 Jul 2005 12:19:39 +0000 (12:19 +0000)]
r8055: added canonicalName to our domainDns record
(This used to be commit 1ba296b9d0ed1cf0961bdd3cde03f1ce56e1d72b)