ira/wip.git
16 years agor11714: put in a workaround for a winbind problem volker asked me about. The
Andrew Tridgell [Mon, 14 Nov 2005 03:48:55 +0000 (03:48 +0000)]
r11714: put in a workaround for a winbind problem volker asked me about. The
problem is that winbind currently relies on being able to receive on a
smb connection from within the same connections receive routine. This
means it relies on a non-serialised connection, so disable the
serialisation until winbind is fixed.

The correct fix will be to get rid of full_request() in dcerpc.c so
that bind requests can be fully async.
(This used to be commit c4115293d83a4a6d103e049c5832d4bcdc0a9dbc)

16 years agor11713: separate out the setting of the fde in the packet context from the
Andrew Tridgell [Mon, 14 Nov 2005 03:45:57 +0000 (03:45 +0000)]
r11713: separate out the setting of the fde in the packet context from the
enabling of packet serialisation
(This used to be commit 6a47cd65a8b588f9ddd375c57caaba08281e7cbb)

16 years agor11712: avoid changing the fde flags unless really needed
Andrew Tridgell [Mon, 14 Nov 2005 02:45:28 +0000 (02:45 +0000)]
r11712: avoid changing the fde flags unless really needed
(This used to be commit 48e6424b0cce38f7d8f212d1e891ff8bbd5fec34)

16 years agor11711: fixed the nbt server to use the right interface for outgoing requests
Andrew Tridgell [Mon, 14 Nov 2005 01:50:55 +0000 (01:50 +0000)]
r11711: fixed the nbt server to use the right interface for outgoing requests
(This used to be commit d87df5fe8e37d3daa3d9cb575450d756dc3d3c8f)

16 years agor11710: added function iface_same_net()
Andrew Tridgell [Mon, 14 Nov 2005 01:50:26 +0000 (01:50 +0000)]
r11710: added function iface_same_net()
(This used to be commit 3e36b301947ccd4343bc294da59b13a8a9cfafce)

16 years agor11709: Comment out unused function.
Tim Potter [Mon, 14 Nov 2005 00:57:19 +0000 (00:57 +0000)]
r11709: Comment out unused function.
(This used to be commit 8fe5eadafeda91e0540a30952a786949e0678511)

16 years agor11708: Fix allocation of too small buffer to hold ip address.
Rafal Szczesniak [Sun, 13 Nov 2005 18:35:12 +0000 (18:35 +0000)]
r11708: Fix allocation of too small buffer to hold ip address.
Thanks metze for catching that.

rafal
(This used to be commit 5114ef8d1cc9b6f2206463d4ba76653669728403)

16 years agor11705: Fix segfaulting create user function.
Rafal Szczesniak [Sat, 12 Nov 2005 21:44:42 +0000 (21:44 +0000)]
r11705: Fix segfaulting create user function.

rafal
(This used to be commit 6b0c083c9b714bf25709e1db3b2113eb8305e8ef)

16 years agor11700: added structure definitions for many of the getinfo structures
Andrew Tridgell [Sat, 12 Nov 2005 08:39:36 +0000 (08:39 +0000)]
r11700: added structure definitions for many of the getinfo structures
(This used to be commit 2919d4228636f1d61d930a37cddd5b1700bf2233)

16 years agor11699: use create_complex_file() to setup a file with a wide range of
Andrew Tridgell [Sat, 12 Nov 2005 08:19:39 +0000 (08:19 +0000)]
r11699: use create_complex_file() to setup a file with a wide range of
different attributes before running the getinfo level scanner, making
it easier to recognise levels
(This used to be commit 5d0cd9d041af71cb1bfb9cb3e0c45e0bbd8193cb)

16 years agor11698: added some more level names
Andrew Tridgell [Sat, 12 Nov 2005 08:18:52 +0000 (08:18 +0000)]
r11698: added some more level names
(This used to be commit 845bbef8038b776b32da0c9c55ae9375feee4961)

16 years agor11697: - added a generic SMB2 getinfo call
Andrew Tridgell [Sat, 12 Nov 2005 07:48:56 +0000 (07:48 +0000)]
r11697: - added a generic SMB2 getinfo call

- added a SMB2-SCANGETINFO test for scanning for available info levels

- added names for the info levels I recognise to smb2.h
(This used to be commit fe5986067e2aaca039d70393ccc8761434f18fe6)

16 years agor11696: added a few more opcode names
Andrew Tridgell [Sat, 12 Nov 2005 02:45:49 +0000 (02:45 +0000)]
r11696: added a few more opcode names
(This used to be commit 2a45476e94a248733333df29da57513bd114f213)

16 years agor11695: added SMB2-SCAN torture test for scanning for active SMB2 opcodes
Andrew Tridgell [Sat, 12 Nov 2005 02:37:51 +0000 (02:37 +0000)]
r11695: added SMB2-SCAN torture test for scanning for active SMB2 opcodes
(This used to be commit aa3bcf952c4436b488e461a3686955d70c672ce4)

16 years agor11694: fixed 2 valgrind errors
Andrew Tridgell [Sat, 12 Nov 2005 02:16:19 +0000 (02:16 +0000)]
r11694: fixed 2 valgrind errors
(This used to be commit 6381fe72417a5cd231b63a87a6a0ba9c65030ce6)

16 years agor11693: added a full async composite function for SMB2 that does:
Andrew Tridgell [Sat, 12 Nov 2005 02:12:51 +0000 (02:12 +0000)]
r11693: added a full async composite function for SMB2 that does:

 - name resolution
 - socket connect
 - negprot
 - multi-stage session setup
 - tcon
(This used to be commit c1a8e866fe6a0544b7b26da451ea093cdcacdd8f)

16 years agor11692: added a full composite (async) spnego session setup for SMB2. This
Andrew Tridgell [Sat, 12 Nov 2005 01:08:43 +0000 (01:08 +0000)]
r11692: added a full composite (async) spnego session setup for SMB2. This
simplies the torture code a lot.
(This used to be commit 7bf1046fbb7fd83fecb2fa645628ba9a17aab037)

16 years agor11691: added reply buffer code checks and oplock flags for create request/reply
Andrew Tridgell [Fri, 11 Nov 2005 23:27:47 +0000 (23:27 +0000)]
r11691: added reply buffer code checks and oplock flags for create request/reply
(This used to be commit 26ed781375c03958241d8c93324e04e948944d01)

16 years agor11687: filled in 3 more fields in the close reply
Andrew Tridgell [Fri, 11 Nov 2005 21:22:15 +0000 (21:22 +0000)]
r11687: filled in 3 more fields in the close reply
(This used to be commit 3a0abb3ff0b532179780ed95f8fcb4bca6e040b1)

16 years agor11683: fixed create call
Andrew Tridgell [Fri, 11 Nov 2005 14:14:22 +0000 (14:14 +0000)]
r11683: fixed create call
(This used to be commit 02d733190340fbb611443b0cc484813ba026eafe)

16 years agor11682: filled in access_mask in tcon reply
Andrew Tridgell [Fri, 11 Nov 2005 14:13:24 +0000 (14:13 +0000)]
r11682: filled in access_mask in tcon reply
(This used to be commit 173a213f915aa929cc2a6bfef06954e665b3d694)

16 years agor11681: filled in a few more smb2_create() fields
Andrew Tridgell [Fri, 11 Nov 2005 14:04:46 +0000 (14:04 +0000)]
r11681: filled in a few more smb2_create() fields
(This used to be commit a95413568f1e45691524dfd8e9159a3bafe358ea)

16 years agor11680: added smb2_close(). This also demonstrates that file handles are 16
Andrew Tridgell [Fri, 11 Nov 2005 13:08:31 +0000 (13:08 +0000)]
r11680: added smb2_close(). This also demonstrates that file handles are 16
bytes, not 20 bytes (metze, you were right!)
(This used to be commit d3bcc6628cde9ddedf0fd408cbee573f133ce582)

16 years agor11679: opening/creating files in SMB2 now works. Lots of unknown parameters
Andrew Tridgell [Fri, 11 Nov 2005 12:37:16 +0000 (12:37 +0000)]
r11679: opening/creating files in SMB2 now works. Lots of unknown parameters
in the call tho.
(This used to be commit 548fbd86b3b114493943b50669bdcba2f4ed87f2)

16 years agor11678: - add suport for sgroup,replica vs. sgroup,replica tests
Stefan Metzmacher [Fri, 11 Nov 2005 11:44:17 +0000 (11:44 +0000)]
r11678: - add suport for sgroup,replica vs. sgroup,replica tests
- add some sgroup,replica vs. sgroup,replica tests

metze
(This used to be commit 7a1b41452448fbb18170a7ca75c69f31cd7d89a8)

16 years agor11677: print leading zeros
Stefan Metzmacher [Fri, 11 Nov 2005 10:50:47 +0000 (10:50 +0000)]
r11677: print leading zeros

metze
(This used to be commit 19fb79b35d6d0b20d01f3722754cdd734bebc2ba)

16 years agor11676: as tridge uses 0x%llx in his latest commits...
Stefan Metzmacher [Fri, 11 Nov 2005 10:49:55 +0000 (10:49 +0000)]
r11676: as tridge uses 0x%llx in his latest commits...
try to use it every where and see how portable it is

metze
(This used to be commit 66a94de5ddd09df858a515555c01aa3d4f7d3e96)

16 years agor11675: a more general way of getting rid of compiler warnings and errors
Stefan Metzmacher [Fri, 11 Nov 2005 10:46:31 +0000 (10:46 +0000)]
r11675: a more general way of getting rid of compiler warnings and errors

metze
(This used to be commit 653f5ccd61f2555bbd49b81c5cc660962b31aa68)

16 years agor11674: SMB2 tree connect now works. We do 2 session setups and 2 tree
Andrew Tridgell [Fri, 11 Nov 2005 09:11:51 +0000 (09:11 +0000)]
r11674: SMB2 tree connect now works. We do 2 session setups and 2 tree
connects, giving the following output:

Running SMB2-CONNECT
Negprot reply:
current_time  = Fri Nov 11 20:10:42 2005 EST
boot_time     = Sat Nov 12 10:34:33 2005 EST
Session setup gave UID 0x40000000071
Session setup gave UID 0x140000000075
Tree connect gave tid = 0x7500000001
Tree connect gave tid = 0x7500000005
SMB2-CONNECT took 0.049024 secs
(This used to be commit a24a4c311005dec4c5638e9c7c10e5e2f9872f4d)

16 years agor11673: - update the max_version of the owner when we get some records
Stefan Metzmacher [Fri, 11 Nov 2005 08:56:38 +0000 (08:56 +0000)]
r11673: - update the max_version of the owner when we get some records
  in the sgroup_merge test, so that we don't see old records as new ones
- finish the owned,sgroup,active vs. sgroup * section

metze
(This used to be commit 534e34a1a1c822e72bf863e8acc396168b849b93)

16 years agor11672: - add support for special group merge tests
Stefan Metzmacher [Fri, 11 Nov 2005 08:02:50 +0000 (08:02 +0000)]
r11672: - add support for special group merge tests
- add owned,sgroup,active vs. replica,sgroup,active test

metze
(This used to be commit 938853dc5078a0d647d41177375ec8d35d61628b)

16 years agor11671: - make sure req is initialized
Stefan Metzmacher [Fri, 11 Nov 2005 08:00:51 +0000 (08:00 +0000)]
r11671: - make sure req is initialized
- only free the buffer when there's no request
- call async callback on error

metze
(This used to be commit 2084d62dd54c230c6494e482cb346b3ea959e6fb)

16 years agor11670: fix the build
Stefan Metzmacher [Fri, 11 Nov 2005 08:00:05 +0000 (08:00 +0000)]
r11670: fix the build

metze
(This used to be commit c0eebe293f341dcf35229c2cbbc3029f6f853abb)

16 years agor11669: - make sure req is initialized
Stefan Metzmacher [Fri, 11 Nov 2005 07:38:25 +0000 (07:38 +0000)]
r11669: - make sure req is initialized
- call async callback on error

metze
(This used to be commit 43aa5cffd3fd8bf07b236a039f5146e1e44296c6)

16 years agor11668: yay! we get a successful session setup with SMB2, and get back a 64bit uid
Andrew Tridgell [Fri, 11 Nov 2005 07:23:45 +0000 (07:23 +0000)]
r11668: yay! we get a successful session setup with SMB2, and get back a 64bit uid
(This used to be commit 72b34a7c1b66af6be02f66639efc55a19c73e387)

16 years agor11666: filled in the basic session setup. Vista happily accepts the first
Andrew Tridgell [Fri, 11 Nov 2005 06:26:42 +0000 (06:26 +0000)]
r11666: filled in the basic session setup. Vista happily accepts the first
stage of the session setup, and waits for more.
(This used to be commit 804c229c3ba7f866a7f3d66684e268d5ddc820ce)

16 years agor11665: started to put some meat on the structure used for the SMB2 library
Andrew Tridgell [Fri, 11 Nov 2005 05:53:54 +0000 (05:53 +0000)]
r11665: started to put some meat on the structure used for the SMB2 library

the call definitions will be in smb2_calls.h, which will play a
similar role that smb_interfaces.h plays for the old SMB protocol
(This used to be commit 4ef3902a8a99a0b8caa81a07ba07830d7cbbc32c)

16 years agor11664: forgot to commit the structs.h change
Andrew Tridgell [Fri, 11 Nov 2005 05:41:38 +0000 (05:41 +0000)]
r11664: forgot to commit the structs.h change
(This used to be commit 1f97dccd52a051686d436dbbd185146715b41dc8)

16 years agor11663: start of a SMB2 torture test. Just does a negprot and prints some fields...
Andrew Tridgell [Fri, 11 Nov 2005 04:46:48 +0000 (04:46 +0000)]
r11663: start of a SMB2 torture test. Just does a negprot and prints some fields for now.

test name is SMB2-CONNECT
(This used to be commit 13f27fadca2f74a2486caa7df0fc7662fca16f67)

16 years agor11662: the beginnings of a SMB2 client library. Very hackish, meant for experimentation
Andrew Tridgell [Fri, 11 Nov 2005 04:45:38 +0000 (04:45 +0000)]
r11662: the beginnings of a SMB2 client library. Very hackish, meant for experimentation
(This used to be commit 68422dc73f6ea51bf906f3db223ae8abf077aba1)

16 years agor11660: - the libcli/raw/ lib no longer uses the SMBCLI_REQUEST_SEND state, or
Andrew Tridgell [Fri, 11 Nov 2005 01:38:39 +0000 (01:38 +0000)]
r11660: - the libcli/raw/ lib no longer uses the SMBCLI_REQUEST_SEND state, or
  the associated send queue

- fixed negnowait to not watch for the SMBCLI_REQUEST_SEND state
(This used to be commit d19235ede5d352d0b0373d204f4357dddde5946f)

16 years agor11659: allow the max runtime for smbtorture and smbd to be controlled on a
Andrew Tridgell [Fri, 11 Nov 2005 00:50:40 +0000 (00:50 +0000)]
r11659: allow the max runtime for smbtorture and smbd to be controlled on a
per-host basis in the build farm
(This used to be commit c8185fe414ef686a52327f420ee81ce09b983c3c)

16 years agor11650: - as every call that goes down to the ntvfs layer need a valid tcon and session
Stefan Metzmacher [Thu, 10 Nov 2005 16:16:09 +0000 (16:16 +0000)]
r11650: - as every call that goes down to the ntvfs layer need a valid tcon and session
  ntcancel also needs to have AS_USER
- move the SIGNING_NO_REPLY logic as global option, because this needs to be set
  for the error replies too.
- as we currently don't know how to generate signatures for ntcancel replies
  we just skip the sending of the reply
- w2k3 first checks the VUID and then the TID, so we do now
- ntcreateX also uses ERRbaduid when getting a wrong VUID

metze
(This used to be commit d677ebf43d0d7e679ff11862683c993d887d9441)

16 years agor11649: - add support for ntcancel replies (they only happen in error cases,
Stefan Metzmacher [Thu, 10 Nov 2005 16:09:44 +0000 (16:09 +0000)]
r11649: - add support for ntcancel replies (they only happen in error cases,
  e.g when you supply an invalid TID or VUID)
- as we don't yet understand how to check the smb_signing of this
  replies, we just ignore the whole packet

abartlet,jra,tridge:
can someone try to find out how to create and verify
the signatures for this replies.
what I noticed is that still use the increment by one for the request,
and later requests are still generated fine, only the generating and verifying
of the ntcancel replies make problems

metze
(This used to be commit e6eb0fd2c2f45d6f612d74c6b527c7b17094c907)

16 years agor11648: fix some bugs...
Stefan Metzmacher [Thu, 10 Nov 2005 15:51:57 +0000 (15:51 +0000)]
r11648: fix some bugs...

metze
(This used to be commit 475eb4cc96aa147897fd6b0d5b5cc0509fb1d2a0)

16 years agor11647: add smbcli_ prefix
Stefan Metzmacher [Thu, 10 Nov 2005 15:27:27 +0000 (15:27 +0000)]
r11647: add smbcli_ prefix

metze
(This used to be commit 356e7d037cf3fc24844b2efa5071917ea03e6163)

16 years agor11646: fix typos
Stefan Metzmacher [Thu, 10 Nov 2005 14:54:05 +0000 (14:54 +0000)]
r11646: fix typos

metze
(This used to be commit 0c520e19a0676c688341523add8a176c3aba8578)

16 years agor11644: free the buffer when it's not used
Stefan Metzmacher [Thu, 10 Nov 2005 14:16:50 +0000 (14:16 +0000)]
r11644: free the buffer when it's not used

metze
(This used to be commit 16f2d92618a55188d260cadd144281b325cdacda)

16 years agor11643: fix compiler warnings
Stefan Metzmacher [Thu, 10 Nov 2005 14:03:07 +0000 (14:03 +0000)]
r11643: fix compiler warnings

metze
(This used to be commit 913d5356eb04d0fd02c36052b5cb6a2a5646473a)

16 years agor11642: add some error checks
Stefan Metzmacher [Thu, 10 Nov 2005 13:52:07 +0000 (13:52 +0000)]
r11642: add some error checks

metze
(This used to be commit 9d6406d8daeff0a9bde72ce7749d18fa61324e8a)

16 years agor11641: remove unused parameter vuid
Stefan Metzmacher [Thu, 10 Nov 2005 13:02:56 +0000 (13:02 +0000)]
r11641: remove unused parameter vuid

metze
(This used to be commit 9399e4d260011ce59229086e39585e1e56bd79a5)

16 years agor11640: just a nicer format, and make adding more special cases easier
Stefan Metzmacher [Thu, 10 Nov 2005 12:59:15 +0000 (12:59 +0000)]
r11640: just a nicer format, and make adding more special cases easier

metze
(This used to be commit 5fb5d1a864d9df0ac82fca145b51fdb27406bc97)

16 years agor11639: fixed some create_time tests that should be change_time tests
Andrew Tridgell [Thu, 10 Nov 2005 12:35:12 +0000 (12:35 +0000)]
r11639: fixed some create_time tests that should be change_time tests
(This used to be commit c4266c7f688145a9b7da8977aff7fb972b7d0aa4)

16 years agor11638: fixed handling of null volume name in RAW-QFSINFO test
Andrew Tridgell [Thu, 10 Nov 2005 12:29:44 +0000 (12:29 +0000)]
r11638: fixed handling of null volume name in RAW-QFSINFO test
thanks to Stephen Zarkos for finding this
(This used to be commit 8331eee64cb679c091ca46cc001ff9851eb91f0e)

16 years agor11637: we need a session and a tcon for ntioctl() and ntrename()
Stefan Metzmacher [Thu, 10 Nov 2005 12:25:46 +0000 (12:25 +0000)]
r11637: we need a session and a tcon for ntioctl() and ntrename()

metze
(This used to be commit 3389544c2b14a044aed4a6d0ff966c0a2d92a61a)

16 years agor11636: a bit neater solution to the nt_cancel problem
Andrew Tridgell [Thu, 10 Nov 2005 11:10:40 +0000 (11:10 +0000)]
r11636: a bit neater solution to the nt_cancel problem
(This used to be commit ba7864b07eebecd4d4eb2ce515412a49964ae179)

16 years agor11635: fix a handling of packet_send in the smb client lib
Stefan Metzmacher [Thu, 10 Nov 2005 09:12:36 +0000 (09:12 +0000)]
r11635: fix a handling of packet_send in the smb client lib

this was cause of the PANIC on the build farm on metze01

as we use req->out.buffer from the old request in the smb_raw_ntcancel()
and send a 0 TID, that causes our server code to crash
(a fix for the server code will follow)

metze
(This used to be commit 97cd824e44b03178706b108c7a78753faf412e8f)

16 years agor11634: - make crc table static
Stefan Metzmacher [Thu, 10 Nov 2005 07:12:17 +0000 (07:12 +0000)]
r11634: - make crc table static
- const uint8_t * in all places
- update header prototype

metze
(This used to be commit 91dfa4c28d280aff8dbf46cf1e174b5b317ba322)

16 years agor11633: Fix some more warnings.
Tim Potter [Thu, 10 Nov 2005 05:42:07 +0000 (05:42 +0000)]
r11633: Fix some more warnings.
(This used to be commit 89039683db4f2f492b292b32e2dd783e977ae165)

16 years agor11632: removed 2 unused functions
Andrew Tridgell [Thu, 10 Nov 2005 05:26:53 +0000 (05:26 +0000)]
r11632: removed 2 unused functions
(This used to be commit fa904afed93a350dd0dcd3cddc1521a4a1ad6711)

16 years agor11631: fixed a signed/unsigned warning
Andrew Tridgell [Thu, 10 Nov 2005 05:24:52 +0000 (05:24 +0000)]
r11631: fixed a signed/unsigned warning
(This used to be commit 86d08d3ec5cfa36e048042563a56aca79c87a5bb)

16 years agor11630: another fix for over-reading in the packet code. This time get the
Andrew Tridgell [Thu, 10 Nov 2005 05:12:28 +0000 (05:12 +0000)]
r11630: another fix for over-reading in the packet code. This time get the
sign of the comparison right :-)
(This used to be commit 7e40077aa793e29b5770aae2e07e964239e8249b)

16 years agor11629: fixed a bug found with the socket:testnonblock code. With randomised
Andrew Tridgell [Thu, 10 Nov 2005 04:49:02 +0000 (04:49 +0000)]
r11629: fixed a bug found with the socket:testnonblock code. With randomised
under-reads we could end up supplying a buffer to the client that has
an incorrect length
(This used to be commit 9c95015b9cccc10a5ba1facd4b48c0fff34e9588)

16 years agor11628: fixed a valgrind error in the rpc echo test
Andrew Tridgell [Thu, 10 Nov 2005 04:28:55 +0000 (04:28 +0000)]
r11628: fixed a valgrind error in the rpc echo test
(This used to be commit d340ea7906c091a1400d3e73a8f530174aa8a965)

16 years agor11627: give the caller much more control over the stream to packet process,
Andrew Tridgell [Thu, 10 Nov 2005 04:26:00 +0000 (04:26 +0000)]
r11627: give the caller much more control over the stream to packet process,
allowing it to specify the initial read size (thus preventing
over-reading) and to stop the recv process when needed. This is used
by the dcerpc socket code, which relies on not getting packets when it
isn't ready for them
(This used to be commit f869fd674ec4b148dc9a264e94d19ce79d35131d)

16 years agor11626: Fix unhandled enum in case statement warnings by noting appropriately
Tim Potter [Thu, 10 Nov 2005 03:48:56 +0000 (03:48 +0000)]
r11626: Fix unhandled enum in case statement warnings by noting appropriately
that some values aren't handled.  The remaining warnings I think are
actual bugs or required functionality that is missing (mostly lack of
server side Unix extensions).
(This used to be commit 03c7da27a06736f2a27d76e6a00a24ab54453af9)

16 years agor11625: NULL terminate list of strings. For some reason this wasn't causing a
Tim Potter [Thu, 10 Nov 2005 03:37:49 +0000 (03:37 +0000)]
r11625: NULL terminate list of strings.  For some reason this wasn't causing a
crash on i386 but was on ia64.
(This used to be commit 12c77bb2e17ef3cb3264da86852832dffb5474c1)

16 years agor11624: Use enum names instead of magic numbers.
Tim Potter [Thu, 10 Nov 2005 03:01:21 +0000 (03:01 +0000)]
r11624: Use enum names instead of magic numbers.
(This used to be commit f177c223e6b881a65ed49ceacf9106e42d2a7d0a)

16 years agor11623: convert the dcerpc socket layer to the generic packet code
Andrew Tridgell [Thu, 10 Nov 2005 02:23:59 +0000 (02:23 +0000)]
r11623: convert the dcerpc socket layer to the generic packet code
(This used to be commit 4ea66e6e80de0d70b53bf9cd16c1dfd1c400f57e)

16 years agor11622: convert the ldap server to the generic packet code
Andrew Tridgell [Thu, 10 Nov 2005 01:41:47 +0000 (01:41 +0000)]
r11622: convert the ldap server to the generic packet code
(This used to be commit 6ef4ba0c81002c9960dc5fe4fbfd0622957d492a)

16 years agor11621: some minor fixes from comments by metze
Andrew Tridgell [Thu, 10 Nov 2005 00:36:53 +0000 (00:36 +0000)]
r11621: some minor fixes from comments by metze
(This used to be commit 6ab808223475ba7c52dbe4d639af9a8e7f64b202)

16 years agor11620: switch the ldap client code over to using the generic packet code
Andrew Tridgell [Thu, 10 Nov 2005 00:28:02 +0000 (00:28 +0000)]
r11620: switch the ldap client code over to using the generic packet code
(This used to be commit 1d29ad2a27d89454e5e3c4a3cf05cc5edde0208c)

16 years agor11619: use the 32 bit length helper in the kdc.
Andrew Tridgell [Thu, 10 Nov 2005 00:26:26 +0000 (00:26 +0000)]
r11619: use the 32 bit length helper in the kdc.
(This used to be commit 24f20eed0e242aab76ce8f0f8db7266ddc9ec97b)

16 years agor11618: added a generic '32 bit length prefix' full packet helper to the packet code
Andrew Tridgell [Thu, 10 Nov 2005 00:25:57 +0000 (00:25 +0000)]
r11618: added a generic '32 bit length prefix' full packet helper to the packet code
(This used to be commit b4dbe55105cc2807a17d7e5bf8db9756cc526a3b)

16 years agor11616: Replace old crc32 code with one from the FreeBSD tree.
Jeremy Allison [Wed, 9 Nov 2005 19:36:33 +0000 (19:36 +0000)]
r11616: Replace old crc32 code with one from the FreeBSD tree.
 *  COPYRIGHT (C) 1986 Gary S. Brown.  You may use this program, or
 *  code or tables extracted from it, as desired without restriction.
Jeremy.
(This used to be commit d42644927d46154c6366f3a7d10bea09989ed813)

16 years agor11611: don't use unions without a instance name, not all compilers support that...
Stefan Metzmacher [Wed, 9 Nov 2005 18:06:36 +0000 (18:06 +0000)]
r11611: don't use unions without a instance name, not all compilers support that...

fix the build with cc on IRIX 6.5 us4

tridge: we should post this to the appweb maintainers, also with my
        hex constant fix from a few weeks ago!

metze
(This used to be commit 5cc44994fb17211009e68f941e3db56acf0ca236)

16 years agor11609: fixed handling of one way requests with new send code
Andrew Tridgell [Wed, 9 Nov 2005 14:00:31 +0000 (14:00 +0000)]
r11609: fixed handling of one way requests with new send code
(This used to be commit d2b568a1114015839ca59c6f32bde4b06ea81ef9)

16 years agor11608: switched the kdc to use the generic packet send code
Andrew Tridgell [Wed, 9 Nov 2005 13:49:38 +0000 (13:49 +0000)]
r11608: switched the kdc to use the generic packet send code
(This used to be commit 2cbcc8a919a5164bd57143ffc778f49011b9eee6)

16 years agor11607: switched the smb server to use the generic packet send code
Andrew Tridgell [Wed, 9 Nov 2005 13:42:56 +0000 (13:42 +0000)]
r11607: switched the smb server to use the generic packet send code
(This used to be commit 9eee7bafa12553a894536db8ce5cc2d268e09ae6)

16 years agor11606: use the generic packet send code in libcli/raw/
Andrew Tridgell [Wed, 9 Nov 2005 13:34:36 +0000 (13:34 +0000)]
r11606: use the generic packet send code in libcli/raw/
(This used to be commit 0bcea45b15b08cb42d7f6fbbb3a25f73b95f362c)

16 years agor11605: added handling of the send queue to the generic packet handling code
Andrew Tridgell [Wed, 9 Nov 2005 13:33:53 +0000 (13:33 +0000)]
r11605: added handling of the send queue to the generic packet handling code
(This used to be commit f98d499b2ef93cf2d060acafbc424754add322a8)

16 years agor11604: converted the kdc code to use the new packet lib. Andrew, I'm not sure
Andrew Tridgell [Wed, 9 Nov 2005 11:13:02 +0000 (11:13 +0000)]
r11604: converted the kdc code to use the new packet lib. Andrew, I'm not sure
how to test this, can you have a look and see if it works for you? Is
there some hidden switch to kinit to use tcp?
(This used to be commit 0a797712fb9b11996ce035a77907000130b6f616)

16 years agor11603: converted the smb server to use the new generic packet code
Andrew Tridgell [Wed, 9 Nov 2005 10:51:26 +0000 (10:51 +0000)]
r11603: converted the smb server to use the new generic packet code
(This used to be commit 0fc496bb6f520ddf6d85cc2f3df80f93b871cfe9)

16 years agor11602: added packet_set_serialise() to allow the generic packet layer to
Andrew Tridgell [Wed, 9 Nov 2005 10:50:39 +0000 (10:50 +0000)]
r11602: added packet_set_serialise() to allow the generic packet layer to
handle optional request serialisation (this is something that is
commonly needed on stream connections)
(This used to be commit d860eb795693d8c292eec2a639ece4793d28dc38)

16 years agor11601: try to fix the build on IRIX 6.5 us4
Stefan Metzmacher [Wed, 9 Nov 2005 10:17:05 +0000 (10:17 +0000)]
r11601: try to fix the build on IRIX 6.5 us4

abartlet, tridge, lha: is there a better way?

metze
(This used to be commit b2b4969bdcdd85b1093d91184ff10eff9f74e550)

16 years agor11600: remove unused code
Stefan Metzmacher [Wed, 9 Nov 2005 09:28:59 +0000 (09:28 +0000)]
r11600: remove unused code

metze
(This used to be commit 06ccbc3fa99dc6396b2fe46adb51ef42431669eb)

16 years agor11599: remove local (and broken) version of strhaslower() strhasupper()
Stefan Metzmacher [Wed, 9 Nov 2005 09:16:32 +0000 (09:16 +0000)]
r11599: remove local (and broken) version of strhaslower() strhasupper()

metze
(This used to be commit 35e17abb8763e4d90725d007fefa76965260c124)

16 years agor11598: fixed strhaslower() and strhasupper() to not falsely recognise
Andrew Tridgell [Wed, 9 Nov 2005 08:45:00 +0000 (08:45 +0000)]
r11598: fixed strhaslower() and strhasupper() to not falsely recognise
caseless characters as lower/upper
(This used to be commit 74fb317f2acf7a5963f37c0cd9e21a34d7da2f4f)

16 years agor11597: revert a commit by mistake
Simo Sorce [Wed, 9 Nov 2005 08:23:33 +0000 (08:23 +0000)]
r11597: revert a commit by mistake
(This used to be commit 09e6f494b490127ace1a9d1077c2757d813abc55)

16 years agor11596: switched the libcli/raw/ code over to using the lib/stream/ generic
Andrew Tridgell [Wed, 9 Nov 2005 08:13:41 +0000 (08:13 +0000)]
r11596: switched the libcli/raw/ code over to using the lib/stream/ generic
packet parsing code. This simplifies the logic in the raw client
library a fair bit
(This used to be commit f8d43f1f67876360e1295d85a3c3702d1d60ed7b)

16 years agor11595: added a helper layer to parse streams into individual packets. This is
Andrew Tridgell [Wed, 9 Nov 2005 08:11:50 +0000 (08:11 +0000)]
r11595: added a helper layer to parse streams into individual packets. This is
something that Andrew Bartlett has been asking for for a while, and
when I started having to re-invent this packet parsing code yet again
for SMB2 I decided it was time to do it generically

you use it by providing a "is this a full packet yet?" helper function
to the packet_*() functions, which then handle all the logic of
partial packet buffering.

This also goes to great lengths to operate efficiently, minimising the
number of recv system calls.
(This used to be commit e6c47b954a6f09c53ea419800ce873295fcd0be9)

16 years agor11594: ensure ldb_search() sets *res to NULL on failure (some of the updated
Andrew Tridgell [Wed, 9 Nov 2005 08:07:38 +0000 (08:07 +0000)]
r11594: ensure ldb_search() sets *res to NULL on failure (some of the updated
ldb_result code coud rely on that)
(This used to be commit cd567bcb24125827c746c1c0902631b0e7c2cea5)

16 years agor11593: added a data_blob_realloc() function
Andrew Tridgell [Wed, 9 Nov 2005 08:06:56 +0000 (08:06 +0000)]
r11593: added a data_blob_realloc() function
(This used to be commit e04262d391d81f863256a9fe69a2884fbce641af)

16 years agor11592: fixed a crash bug from the ldb_result changes (res was being used after being...
Andrew Tridgell [Wed, 9 Nov 2005 05:19:57 +0000 (05:19 +0000)]
r11592: fixed a crash bug from the ldb_result changes (res was being used after being freed)
(This used to be commit 5c7f3fef3e2324f0d1edda0f0f06f662bbcf7e08)

16 years agor11588: Remove unused (at the moment) variable and quiet compiler warning.
Rafal Szczesniak [Wed, 9 Nov 2005 00:38:46 +0000 (00:38 +0000)]
r11588: Remove unused (at the moment) variable and quiet compiler warning.

rafal
(This used to be commit 90db7f13bc0df0a276dc736d2f9439616cb3b2f7)

16 years agor11587: Trivial testing code giving an idea of how could using
Rafal Szczesniak [Tue, 8 Nov 2005 23:23:16 +0000 (23:23 +0000)]
r11587: Trivial testing code giving an idea of how could using
subcontexts look like.

rafal
(This used to be commit 5a338b04f37f6160f4aaf7d9758aa2d817516eb1)

16 years agor11586: Further work on ejs interface for libnet. The idea is to split libnet
Rafal Szczesniak [Tue, 8 Nov 2005 23:22:21 +0000 (23:22 +0000)]
r11586: Further work on ejs interface for libnet. The idea is to split libnet
functionalities into groups of subcontexts of net subcontext just the
way it's done in net tool. This way we can pass common arguments when
creating subcontext. Also, this may allow easier writing net tool
completely as a script.

At the moment there's a name resolve code segfault to be fixed.

rafal
(This used to be commit 25310d05927dab69d37248977f974bcaedbd081b)

16 years agor11572: Add support for accountExpires and password expiry (should cause the
Andrew Bartlett [Tue, 8 Nov 2005 02:30:42 +0000 (02:30 +0000)]
r11572: Add support for accountExpires and password expiry (should cause the
ticket to be reduced in validity).

Andrew Bartlett
(This used to be commit 5575a1443b5225140f401bde7f897f96dfe73b39)

16 years agor11568: Debuging aids: Let the administrator know when a key/entry expired,
Andrew Bartlett [Tue, 8 Nov 2005 01:17:41 +0000 (01:17 +0000)]
r11568: Debuging aids: Let the administrator know when a key/entry expired,
rather than just the fact of the expiry.

Andrew Bartlett
(This used to be commit 31c4ab26d7ab1e550c2ecc7c3ae6c44b87140aa3)

16 years agor11567: Ldb API change patch.
Simo Sorce [Tue, 8 Nov 2005 00:11:45 +0000 (00:11 +0000)]
r11567: Ldb API change patch.

This patch changes the way lsb_search is called and the meaning of the returned integer.
The last argument of ldb_search is changed from struct ldb_message to struct ldb_result
which contains a pointer to a struct ldb_message list and a count of the number of messages.
The return is not the count of messages anymore but instead it is an ldb error value.

I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good
amount of places. I also tried to double check all my changes being sure that the calling
functions would still behave as before. But this patch is big enough that I fear some bug
may have been introduced anyway even if it passes the test suite. So if you are currently
working on any file being touched please give it a deep look and blame me for any error.

Simo.
(This used to be commit 22c8c97e6fb466b41859e090e959d7f1134be780)