1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

1623 Commits

Author SHA1 Message Date
Andrew Tridgell
2de9ce9499 r2106: try to cope with a wider range of UTF-16 characters when we are using
an external libiconv library.
(This used to be commit 168be7fbd7ae876ded39f73a7835e91b35e67244)
2007-10-10 12:58:25 -05:00
Andrew Tridgell
f891ff694b r2105: added a TestSleep() operation to the echo pipe and extended the
RPC-ECHO test to use it to test asynchronous rpc operations.
(This used to be commit a5eb6cad5050928fab593e1f9a82fbfba589120c)
2007-10-10 12:58:25 -05:00
Andrew Tridgell
833a896f56 r2104: fixed typo that causes a segv
(This used to be commit e37a4c1a63b914c46155d39c92f226c42a0393b7)
2007-10-10 12:58:25 -05:00
Andrew Tridgell
4db64692e7 r2103: in the conversion to async rpc I simplified the smb backend to only
use readx/writex instead of the more efficient SMBtrans calls. This
patch restores the efficiency by using SMBtrans when possible.
(This used to be commit 83fbe080e7fcdf4168d85f654b802dc4538b8984)
2007-10-10 12:58:25 -05:00
Andrew Tridgell
f3d9466469 r2102: fixed a race condition when handling dos errors that are in our
table. Should get rid of the static buffer completely at some point.
(This used to be commit e0bda611121ed1f4afc2bfe83853e5521c494164)
2007-10-10 12:58:25 -05:00
Andrew Tridgell
e64fce8b88 r2101: fixed a signed/unsigned char warning
(This used to be commit f5fd90848d350ba1016282a6ee9ea3c83a6e4a63)
2007-10-10 12:58:25 -05:00
Andrew Tridgell
e7f36ff1a5 r2100: rework the dcerpc client side library so that it is async. We now
generate a separate *_send() async function for every RPC call, and
there is a single dcerpc_ndr_request_recv() call that processes the
receive side of any rpc call. The caller can use
dcerpc_event_context() to get a pointer to the event context for the
pipe so that events can be waited for asynchronously.

The only part that remains synchronous is the initial bind
calls. These could also be made async if necessary, although I suspect
most applications won't need them to be.
(This used to be commit f5d004d8eb8c76c03342cace1976b27266cfa1f0)
2007-10-10 12:58:24 -05:00
Andrew Bartlett
18bbab7268 r2099: Get rid of another private ARCFOUR implementation from the codebase.
Andrew Bartlett
(This used to be commit 0237389ce765cbb6825b79de1b0727da0969efeb)
2007-10-10 12:58:24 -05:00
Andrew Bartlett
63b4975391 r2098: The first 8 bytes of this sig is not used in the 'is it correct' calculation.
Andrew Bartlett
(This used to be commit 16ef31a79ed959e80904b84b0230cadb1a7dd8d1)
2007-10-10 12:58:24 -05:00
Andrew Bartlett
1685238339 r2096: Enable use of NTLM2 for connections that do not got on to be NTLMSSP
signed or sealed.

This allows NTLM2 for SMB connections, and NTLMSSP over HTTP for example.

Andrew Bartlett
(This used to be commit e509451538eb5fac5a288e2c429d8481dbfb355f)
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
2812998ae9 r2092: fix the build(don't catch main() by make proto)
metze
(This used to be commit ecdb0b442659e80ca91d5ec5b505224c68a97c5a)
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
ef9351d84b r2089: fix standalone build with LDAP, this needs -llber too
metze
(This used to be commit b9152c9ba2735f511663f34a910142eed67701b5)
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
826a515ec0 r2088: add tdbtorture tdbdump and tdbtest to the build
NOTE: tdbbackup and tdbtool seems to be broken...

NOTE: I also added SMB_EXT_LIB(GDBM,...)
      because that is needed by tdbtest

metze
(This used to be commit e66630662d4203ccecbb20962e83dbf50a2c056f)
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
3cd74a3634 r2087: the ldb tools really don't need LIBSMB!
that reduces the size of thet binaries with '-g' and gcc 3.4
from 5.3 MB to 745 KB:-)

metze
(This used to be commit 037a6d95b4a4640059a10dcbb0a266d15eaf42b3)
2007-10-10 12:58:24 -05:00
Andrew Tridgell
e36341a85e r2074: fixed a typo
(This used to be commit dce43a535c9f6135c162711bc12cee266fc46c4a)
2007-10-10 12:58:23 -05:00
Stefan Metzmacher
8aa051c7b2 r2071: - change smbtorture to use the popt_common stuff
this means -U DOM\\user is know allowed

- torture:userdomain is a new smb.conf parameter
  because lp_workgroup is not the domain of the user

- we use torture:userdomain now in the tests instad of lp_workgroup

- for backward compat the userdomain is lp_workgroup() by default and
  not lp_netbios_name(), which my change later to match 'net' and 'smbclient'..

- we now have dublicate options e.g. -N -s ...
  tridge: can we change this?

metze
(This used to be commit 4733dcbf5f17422a8a4c9f99664270b3aa66c586)
2007-10-10 12:58:23 -05:00
Stefan Metzmacher
7eb820d31b r2066: add 'net time' command
use it like:

net time <server>
net time <server> -U "" -N
net time <server> -U DOM\\user
...

metze
(This used to be commit ea14b2780f1cb6597ba4e71b83364e6a39e966fe)
2007-10-10 12:58:23 -05:00
Stefan Metzmacher
9b54c7ca21 r2065: add libnet_RemoteTOD() call with levels GENERIC and SRVSVC
metze
(This used to be commit 72e3b351d0169366aa88c5445ffa555da6efd1d0)
2007-10-10 12:58:23 -05:00
Stefan Metzmacher
c9656212f5 r2064: fix some error cases
metze
(This used to be commit 85ba7b4d60be3f771364aebc9c803da26d2c090b)
2007-10-10 12:58:23 -05:00
Andrew Bartlett
92cf946ab5 r2063: Ensure the first argument to a printf() like function (talloc_init()
in this case) is constant.

Andrew Bartlett
(This used to be commit 806ed15e605a5df1b4c243e21cd595ec2f98e3ee)
2007-10-10 12:58:23 -05:00
Andrew Bartlett
367fe84c8f r2062: Fix a couple more of the printf warnings (real bugs).
You should never pass a non-constant string as a format for a printf()
function - it could contain printf macros, and these need to be
checked.

Andrew Bartlett
(This used to be commit 183622c9f4dfe858564bbcb8c1a930d69b37f7fa)
2007-10-10 12:58:23 -05:00
Stefan Metzmacher
1795dfd454 r2061: - split libnet header files
- add LIB_RPC_CONNECT_STANDARD level which takes a server name
  and the PIPE NAME,UUID and VERSION

metze
(This used to be commit 6aeaa6aca39c8c2a9edf8d4b3e538bebb68070d7)
2007-10-10 12:58:22 -05:00
Stefan Metzmacher
aca1e774f7 r2060: fix compiler warning
metze
(This used to be commit dde5442b75ba169856a52a45588e2702d198b31d)
2007-10-10 12:58:22 -05:00
Stefan Metzmacher
275efb936f r2059: abartlet: is there a better way to fix this compiler warning
(the same problem as in -r 2056)

metze
(This used to be commit 98e4b23d450892e1ff37c36e52aa56bdf5f260b9)
2007-10-10 12:58:22 -05:00
Günther Deschner
e5c4c4b108 r2058: Merge heimdal krb5_locate_kdc-fix over from trunk/3_0 although
krb5_locate_kdc is (yet) an unused function in Samba4.

Guenther
(This used to be commit fe93f58dfe208ec814f1e75efde4ececa2b2cb5f)
2007-10-10 12:58:22 -05:00
Andrew Bartlett
235a71fa3e r2056: Allow the compiler to check this format string.
Andrew Bartlett
(This used to be commit 7e18ca72854ad9801da6ffd56dc2bb804a3f52f9)
2007-10-10 12:58:22 -05:00
Andrew Bartlett
5e869b4eab r2055: Add PRINTF_ATTRIBUTE to many more parts of the code, and a new
--enable-developer warning for when they are missing.

Andrew Bartlett
(This used to be commit 8115e44d47bcd65edba08d10117180ae508cdbc1)
2007-10-10 12:58:21 -05:00
Andrew Bartlett
18797d8c70 r2054: Fix compile warnings/build failures on non-gcc.
Andrew Bartlett
(This used to be commit 2cbbf123d26081687a15eb7b82738e8187153ba4)
2007-10-10 12:58:21 -05:00
Andrew Bartlett
fadc0e46f7 r2053: All RPC sessions 'want' a session key. Of course, the key they
currently get it bougs, but anyway...

Andrew Bartlett
(This used to be commit 46864dd9d778c008c2f1a3a6701360d4ca64a664)
2007-10-10 12:58:21 -05:00
Andrew Tridgell
ede02ee038 r2051: switched the samdb over to using the new destructor and reference
count features of talloc, instead of re-implementing both those
features inside of samdb (which is what we did before).

This makes samdb considerably simpler, and also fixes some bugs, as I
found some error paths that didn't call samdb_close(). Those are now
handled by the fact that a talloc_free() will auto-close and destroy
the samdb context, using a destructor.
(This used to be commit da60987a92266734c33b81ee217081abdc4330f3)
2007-10-10 12:58:21 -05:00
Andrew Tridgell
294f6f1694 r2050: fixed a case where code assumed you could Realloc the result of a data_blob()
(This used to be commit 1fdccf8dc79ea19a37be7fb047130a7c8e2407e5)
2007-10-10 12:58:21 -05:00
Andrew Tridgell
4f55a7af08 r2049: talloc now has destructors and reference counts
this means you can do:

  talloc_set_destructor(ptr, my_destructor);

and your destructor will be called with the pointer as an argument
when the pointer is about to be freed. The destructor can refuse the
free by returning -1.

You can also increase the reference count on a pointer like this:

  talloc_increase_ref_count(ptr);

and a talloc_free() will just reduce the reference count, only
actually freeing the memory when the count reaches zero.
(This used to be commit b5608d52d33a1d8be5a8a6751bc6cec162c7ed92)
2007-10-10 12:58:21 -05:00
Stefan Metzmacher
c4a2128db5 r2048: fix memory leak found by abartlet
metze
(This used to be commit 0cab7a32f82fa10fea92bb86a1ffd5017f85e887)
2007-10-10 12:58:20 -05:00
Andrew Bartlett
3d065b198e r2047: Warn on 'declaration after statement' (breaks non-gcc).
Andrew Bartlett
(This used to be commit ce96816d0eeb0b71efd15c77d10ec76303a0abb8)
2007-10-10 12:58:20 -05:00
Andrew Tridgell
15d0ce1977 r2046: fixed two server packet format errors found with the RAW-* tests
(This used to be commit 9fdbe60230741e11478871072a40c8bc8124b5ea)
2007-10-10 12:58:20 -05:00
Andrew Tridgell
cc7d62d3d1 r2045: fixed a date format push in SMBsearch
(This used to be commit a6cc0bedad98e7b9bbc27d9f31c21d5eba77146f)
2007-10-10 12:58:20 -05:00
Andrew Tridgell
c595ec9936 r2044: fixed two unin
(This used to be commit d17e088ebbf1fd0dd2ef2d73115c7f458677d02f)
2007-10-10 12:58:20 -05:00
Andrew Tridgell
716e6c1efb r2043: data_blob() now returns a talloc'd pointer. If everyone has been
following the data_blob() API properly then this will cause no
problems. I'm expecting chaos.

this is part of the general move towards using talloc for everything
in samba4
(This used to be commit 3f6b3c21e4d538aeb30b7906a75995b8f4c11223)
2007-10-10 12:58:20 -05:00
Andrew Tridgell
98875066fb r2042: missed a couple of places that should be talloc_free()
(This used to be commit e1575a72a10252fdb88778f14bf3c44a65d72c5e)
2007-10-10 12:58:19 -05:00
Andrew Bartlett
fa5a99b7a6 r2041: Fix NTLMSSP RPC sealing, client -> win2k3 server.
The bug (found by tridge) is that Win2k3 is being tighter about the
NTLMSSP flags.  If we don't negotiate sealing, we can't use it.

We now have a way to indicate to the GENSEC implementation mechanisms
what things we want for a connection.

Andrew Bartlett
(This used to be commit 86f61568ea44c5719f9b583beeeefb12e0c26f4c)
2007-10-10 12:58:19 -05:00
Andrew Tridgell
b13a9a8f98 r2040: fixed a memory handling error in clisocket (caught with valgrind)
(This used to be commit f6dc62bf119c294db060b0870b6ca80bc28bd4a5)
2007-10-10 12:58:19 -05:00
Andrew Tridgell
600144050c r2039: got rid of the free() ptr in DATA_BLOB
I plan on replacing the concept by adding a generic destructor in all talloc ptrs, so you can do:

  talloc_set_destructor(ptr, my_destructor);

to setup a function that will be called on free.
(This used to be commit 957b260621c091830c01e9e8c370c199350342ec)
2007-10-10 12:58:19 -05:00
Andrew Tridgell
2ed3ab021d r2038: get rid of the optimisation in the dcerpc server that tries to avoid a
data copy by playing internal games with DATA_BLOB and free().
(This used to be commit 5894b5c0f32f75734151c6c915b296204b7825ac)
2007-10-10 12:58:19 -05:00
Andrew Tridgell
35d65298d5 r2037: switched the asn.1 code to use talloc
(This used to be commit c0862278cab106a441d1049c1da945fa11353f9f)
2007-10-10 12:58:19 -05:00
Andrew Tridgell
bc5b92c0e0 r2036: switched the spnego code to use talloc
now that talloc_free() doesn't need to take a context ptr, there is no
reason we can't use talloc everywhere that we currently use malloc().
(This used to be commit a2ad77fb3ac9638c5ef52494bf62083ec594b9f5)
2007-10-10 12:58:19 -05:00
Andrew Bartlett
5e34ee629a r2035: Fix spelling.
Andrew Bartlett
(This used to be commit 4e2c5a5fb3e428ffcdeef3b95fab644a420cc20c)
2007-10-10 12:58:19 -05:00
Jeremy Allison
85d8d24d3d r2034: Allow user-selectable hash functions on open only.
Jeremy.
(This used to be commit b43320ee5c9ac14c330e61ae62e0786b088e04fa)
2007-10-10 12:58:18 -05:00
Andrew Tridgell
c58b64b7bf r2031: add a check for a blank secret return in lsa secret tests
(This used to be commit eddb31d19654853189d1c3c52105a6240d100456)
2007-10-10 12:58:18 -05:00
Andrew Tridgell
53415ebf8a r2030: quick hack to allow the simple NTVFS backend to handler base directories with mixed case names
(This used to be commit efecc3306efb17f586b781112886d9416b355d65)
2007-10-10 12:58:18 -05:00
Andrew Tridgell
5e122da655 r2029: changed our client side dcerpc padding to match what w2k3 does - a 16
byte padding of the payload portion of the packet.
(This used to be commit 271831f97f3952838557bf5034c1e435b33cb14a)
2007-10-10 12:58:18 -05:00