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

1625 Commits

Author SHA1 Message Date
Andrew Tridgell
a86e629a39 r2118: fixed the receipt of bigendian rpc packets with the new async code.
The fix uses the new talloc_increase_ref_count() function in an
interesting way. I suspect this sort of technique will become quite
common.
2007-10-10 12:58:26 -05:00
Andrew Tridgell
306eb84865 r2107: added a SAMR async test - this one seems to work 2007-10-10 12:58:25 -05:00
Andrew Tridgell
168be7fbd7 r2106: try to cope with a wider range of UTF-16 characters when we are using
an external libiconv library.
2007-10-10 12:58:25 -05:00
Andrew Tridgell
a5eb6cad50 r2105: added a TestSleep() operation to the echo pipe and extended the
RPC-ECHO test to use it to test asynchronous rpc operations.
2007-10-10 12:58:25 -05:00
Andrew Tridgell
e37a4c1a63 r2104: fixed typo that causes a segv 2007-10-10 12:58:25 -05:00
Andrew Tridgell
83fbe080e7 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.
2007-10-10 12:58:25 -05:00
Andrew Tridgell
e0bda61112 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.
2007-10-10 12:58:25 -05:00
Andrew Tridgell
f5fd90848d r2101: fixed a signed/unsigned char warning 2007-10-10 12:58:25 -05:00
Andrew Tridgell
f5d004d8eb 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.
2007-10-10 12:58:24 -05:00
Andrew Bartlett
0237389ce7 r2099: Get rid of another private ARCFOUR implementation from the codebase.
Andrew Bartlett
2007-10-10 12:58:24 -05:00
Andrew Bartlett
16ef31a79e r2098: The first 8 bytes of this sig is not used in the 'is it correct' calculation.
Andrew Bartlett
2007-10-10 12:58:24 -05:00
Andrew Bartlett
e509451538 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
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
ecdb0b4426 r2092: fix the build(don't catch main() by make proto)
metze
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
b9152c9ba2 r2089: fix standalone build with LDAP, this needs -llber too
metze
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
e66630662d 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
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
037a6d95b4 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
2007-10-10 12:58:24 -05:00
Andrew Tridgell
dce43a535c r2074: fixed a typo 2007-10-10 12:58:23 -05:00
Stefan Metzmacher
4733dcbf5f 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
2007-10-10 12:58:23 -05:00
Stefan Metzmacher
ea14b2780f r2066: add 'net time' command
use it like:

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

metze
2007-10-10 12:58:23 -05:00
Stefan Metzmacher
72e3b351d0 r2065: add libnet_RemoteTOD() call with levels GENERIC and SRVSVC
metze
2007-10-10 12:58:23 -05:00
Stefan Metzmacher
85ba7b4d60 r2064: fix some error cases
metze
2007-10-10 12:58:23 -05:00
Andrew Bartlett
806ed15e60 r2063: Ensure the first argument to a printf() like function (talloc_init()
in this case) is constant.

Andrew Bartlett
2007-10-10 12:58:23 -05:00
Andrew Bartlett
183622c9f4 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
2007-10-10 12:58:23 -05:00
Stefan Metzmacher
6aeaa6aca3 r2061: - split libnet header files
- add LIB_RPC_CONNECT_STANDARD level which takes a server name
  and the PIPE NAME,UUID and VERSION

metze
2007-10-10 12:58:22 -05:00
Stefan Metzmacher
dde5442b75 r2060: fix compiler warning
metze
2007-10-10 12:58:22 -05:00
Stefan Metzmacher
98e4b23d45 r2059: abartlet: is there a better way to fix this compiler warning
(the same problem as in -r 2056)

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

Guenther
2007-10-10 12:58:22 -05:00
Andrew Bartlett
7e18ca7285 r2056: Allow the compiler to check this format string.
Andrew Bartlett
2007-10-10 12:58:22 -05:00
Andrew Bartlett
8115e44d47 r2055: Add PRINTF_ATTRIBUTE to many more parts of the code, and a new
--enable-developer warning for when they are missing.

Andrew Bartlett
2007-10-10 12:58:21 -05:00
Andrew Bartlett
2cbbf123d2 r2054: Fix compile warnings/build failures on non-gcc.
Andrew Bartlett
2007-10-10 12:58:21 -05:00
Andrew Bartlett
46864dd9d7 r2053: All RPC sessions 'want' a session key. Of course, the key they
currently get it bougs, but anyway...

Andrew Bartlett
2007-10-10 12:58:21 -05:00
Andrew Tridgell
da60987a92 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.
2007-10-10 12:58:21 -05:00
Andrew Tridgell
1fdccf8dc7 r2050: fixed a case where code assumed you could Realloc the result of a data_blob() 2007-10-10 12:58:21 -05:00
Andrew Tridgell
b5608d52d3 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.
2007-10-10 12:58:21 -05:00
Stefan Metzmacher
0cab7a32f8 r2048: fix memory leak found by abartlet
metze
2007-10-10 12:58:20 -05:00
Andrew Bartlett
ce96816d0e r2047: Warn on 'declaration after statement' (breaks non-gcc).
Andrew Bartlett
2007-10-10 12:58:20 -05:00
Andrew Tridgell
9fdbe60230 r2046: fixed two server packet format errors found with the RAW-* tests 2007-10-10 12:58:20 -05:00
Andrew Tridgell
a6cc0bedad r2045: fixed a date format push in SMBsearch 2007-10-10 12:58:20 -05:00
Andrew Tridgell
d17e088ebb r2044: fixed two unin 2007-10-10 12:58:20 -05:00
Andrew Tridgell
3f6b3c21e4 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
2007-10-10 12:58:20 -05:00
Andrew Tridgell
e1575a72a1 r2042: missed a couple of places that should be talloc_free() 2007-10-10 12:58:19 -05:00
Andrew Bartlett
86f61568ea 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
2007-10-10 12:58:19 -05:00
Andrew Tridgell
f6dc62bf11 r2040: fixed a memory handling error in clisocket (caught with valgrind) 2007-10-10 12:58:19 -05:00
Andrew Tridgell
957b260621 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.
2007-10-10 12:58:19 -05:00
Andrew Tridgell
5894b5c0f3 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().
2007-10-10 12:58:19 -05:00
Andrew Tridgell
c0862278ca r2037: switched the asn.1 code to use talloc 2007-10-10 12:58:19 -05:00
Andrew Tridgell
a2ad77fb3a 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().
2007-10-10 12:58:19 -05:00
Andrew Bartlett
4e2c5a5fb3 r2035: Fix spelling.
Andrew Bartlett
2007-10-10 12:58:19 -05:00
Jeremy Allison
b43320ee5c r2034: Allow user-selectable hash functions on open only.
Jeremy.
2007-10-10 12:58:18 -05:00
Andrew Tridgell
eddb31d196 r2031: add a check for a blank secret return in lsa secret tests 2007-10-10 12:58:18 -05:00