Tim Potter [Tue, 31 Aug 2004 23:57:14 +0000 (23:57 +0000)]
r2154: Merge of Jim's format string fixup in r2130:2131
(This used to be commit
17a53eaac2d0d76413c8bb27a6f1c80536ccf3a7)
Jeremy Allison [Tue, 31 Aug 2004 21:34:14 +0000 (21:34 +0000)]
r2151: Added some more ad-hoc tests. Found bugs in Samba3 with these :-).
Jeremy.
(This used to be commit
fe6506e190ed5e1987894d43caa51b33d80d5193)
Andrew Tridgell [Tue, 31 Aug 2004 09:29:51 +0000 (09:29 +0000)]
r2128: netlogon DELTA_POLICY fix from rrenard
(This used to be commit
5ab362cede5b6b91af42247d7b0981f3e4b4d093)
Andrew Tridgell [Tue, 31 Aug 2004 08:43:28 +0000 (08:43 +0000)]
r2127: more lsa IDL updates from Richard Renard
(This used to be commit
5be1b54d15e65008f0dc06a005fb205180817a6d)
Andrew Tridgell [Tue, 31 Aug 2004 08:22:51 +0000 (08:22 +0000)]
r2126: two more lsa functions worked out by richard renard
(This used to be commit
253203f58f7fe6d1b7aea50822d191a8377b47da)
Andrew Tridgell [Tue, 31 Aug 2004 08:21:29 +0000 (08:21 +0000)]
r2125: the lp_use_mmap() in map_file() is inappropriate for 2 reasons, so I have removed it.
- lp_use_mmap() is really meant to cope with systems that have broken
mmap coherence, but map_file() doesn't need coherence, as its maps
read only
- map_file() is used to map the charset files before loadparm has
loaded, so lp_use_mmap() is always returning false for the major
use of map_file()
(This used to be commit
dbe786f61e3de0758f95f2abd1b15a4c320432ca)
Stefan Metzmacher [Tue, 31 Aug 2004 07:14:34 +0000 (07:14 +0000)]
r2124: merge from trunk (-r 2123):
Argl. I could never get the naming right. Having the most significant byte at
the lowest memory address is big endian, at least according to the google
search for 'big endian'....
Volker
(This used to be commit
bc4c188362901423cc900fd4bdfa4a9ed6838f2b)
Stefan Metzmacher [Tue, 31 Aug 2004 06:21:14 +0000 (06:21 +0000)]
r2122: merge from trunk (-r 2120):
Fix bug found by Love H?\195?\182rnquist ?\195?\133strand: asn1_write_Integer needs to push
stuff little endian.
(This used to be commit
79bee828fbb70e71ad3fbd45758bcc7775ea977b)
Stefan Metzmacher [Tue, 31 Aug 2004 06:18:48 +0000 (06:18 +0000)]
r2121: fix compiler warning
metze
(This used to be commit
2de544181ec75da63fdcd5ecdde9e6a533603a38)
Andrew Bartlett [Tue, 31 Aug 2004 02:57:49 +0000 (02:57 +0000)]
r2119: Noticed by jra:
Clean up use of unitilaised variable.
Andrew Bartlett
(This used to be commit
e8d0246882f0d70dc3c63208d0a990804f36a05d)
Andrew Tridgell [Tue, 31 Aug 2004 01:16:50 +0000 (01:16 +0000)]
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.
(This used to be commit
a86e629a39baf0ba2a6bb347eb9b72551c1477ff)
Andrew Tridgell [Mon, 30 Aug 2004 13:05:03 +0000 (13:05 +0000)]
r2107: added a SAMR async test - this one seems to work
(This used to be commit
306eb848654e0cadb0ebe10c29420fc0c30a64c4)
Andrew Tridgell [Mon, 30 Aug 2004 12:03:01 +0000 (12:03 +0000)]
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)
Andrew Tridgell [Mon, 30 Aug 2004 07:36:16 +0000 (07:36 +0000)]
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)
Andrew Tridgell [Mon, 30 Aug 2004 06:14:18 +0000 (06:14 +0000)]
r2104: fixed typo that causes a segv
(This used to be commit
e37a4c1a63b914c46155d39c92f226c42a0393b7)
Andrew Tridgell [Mon, 30 Aug 2004 05:35:30 +0000 (05:35 +0000)]
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)
Andrew Tridgell [Mon, 30 Aug 2004 05:33:49 +0000 (05:33 +0000)]
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)
Andrew Tridgell [Mon, 30 Aug 2004 05:32:00 +0000 (05:32 +0000)]
r2101: fixed a signed/unsigned char warning
(This used to be commit
f5fd90848d350ba1016282a6ee9ea3c83a6e4a63)
Andrew Tridgell [Mon, 30 Aug 2004 03:10:43 +0000 (03:10 +0000)]
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)
Andrew Bartlett [Mon, 30 Aug 2004 01:34:01 +0000 (01:34 +0000)]
r2099: Get rid of another private ARCFOUR implementation from the codebase.
Andrew Bartlett
(This used to be commit
0237389ce765cbb6825b79de1b0727da0969efeb)
Andrew Bartlett [Mon, 30 Aug 2004 01:26:28 +0000 (01:26 +0000)]
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)
Andrew Bartlett [Sun, 29 Aug 2004 11:28:31 +0000 (11:28 +0000)]
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)
Stefan Metzmacher [Fri, 27 Aug 2004 18:00:55 +0000 (18:00 +0000)]
r2092: fix the build(don't catch main() by make proto)
metze
(This used to be commit
ecdb0b442659e80ca91d5ec5b505224c68a97c5a)
Stefan Metzmacher [Fri, 27 Aug 2004 15:56:04 +0000 (15:56 +0000)]
r2089: fix standalone build with LDAP, this needs -llber too
metze
(This used to be commit
b9152c9ba2735f511663f34a910142eed67701b5)
Stefan Metzmacher [Fri, 27 Aug 2004 15:52:54 +0000 (15:52 +0000)]
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)
Stefan Metzmacher [Fri, 27 Aug 2004 14:35:34 +0000 (14:35 +0000)]
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)
Andrew Tridgell [Wed, 25 Aug 2004 23:10:30 +0000 (23:10 +0000)]
r2074: fixed a typo
(This used to be commit
dce43a535c9f6135c162711bc12cee266fc46c4a)
Stefan Metzmacher [Wed, 25 Aug 2004 14:31:59 +0000 (14:31 +0000)]
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)
Stefan Metzmacher [Wed, 25 Aug 2004 12:14:06 +0000 (12:14 +0000)]
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)
Stefan Metzmacher [Wed, 25 Aug 2004 12:11:28 +0000 (12:11 +0000)]
r2065: add libnet_RemoteTOD() call with levels GENERIC and SRVSVC
metze
(This used to be commit
72e3b351d0169366aa88c5445ffa555da6efd1d0)
Stefan Metzmacher [Wed, 25 Aug 2004 11:04:47 +0000 (11:04 +0000)]
r2064: fix some error cases
metze
(This used to be commit
85ba7b4d60be3f771364aebc9c803da26d2c090b)
Andrew Bartlett [Wed, 25 Aug 2004 10:46:28 +0000 (10:46 +0000)]
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)
Andrew Bartlett [Wed, 25 Aug 2004 10:21:14 +0000 (10:21 +0000)]
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)
Stefan Metzmacher [Wed, 25 Aug 2004 09:22:47 +0000 (09:22 +0000)]
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)
Stefan Metzmacher [Wed, 25 Aug 2004 09:09:17 +0000 (09:09 +0000)]
r2060: fix compiler warning
metze
(This used to be commit
dde5442b75ba169856a52a45588e2702d198b31d)
Stefan Metzmacher [Wed, 25 Aug 2004 08:58:12 +0000 (08:58 +0000)]
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)
Günther Deschner [Wed, 25 Aug 2004 08:31:48 +0000 (08:31 +0000)]
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)
Andrew Bartlett [Wed, 25 Aug 2004 07:30:58 +0000 (07:30 +0000)]
r2056: Allow the compiler to check this format string.
Andrew Bartlett
(This used to be commit
7e18ca72854ad9801da6ffd56dc2bb804a3f52f9)
Andrew Bartlett [Wed, 25 Aug 2004 07:15:21 +0000 (07:15 +0000)]
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)
Andrew Bartlett [Wed, 25 Aug 2004 07:13:53 +0000 (07:13 +0000)]
r2054: Fix compile warnings/build failures on non-gcc.
Andrew Bartlett
(This used to be commit
2cbbf123d26081687a15eb7b82738e8187153ba4)
Andrew Bartlett [Wed, 25 Aug 2004 07:13:01 +0000 (07:13 +0000)]
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)
Andrew Tridgell [Wed, 25 Aug 2004 07:10:40 +0000 (07:10 +0000)]
r2052: rewrote the talloc section of the programming guide
(This used to be commit
7d3effccb235e6f7a342c295f70e83362fb19a27)
Andrew Tridgell [Wed, 25 Aug 2004 06:44:23 +0000 (06:44 +0000)]
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)
Andrew Tridgell [Wed, 25 Aug 2004 06:42:08 +0000 (06:42 +0000)]
r2050: fixed a case where code assumed you could Realloc the result of a data_blob()
(This used to be commit
1fdccf8dc79ea19a37be7fb047130a7c8e2407e5)
Andrew Tridgell [Wed, 25 Aug 2004 06:40:58 +0000 (06:40 +0000)]
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)
Stefan Metzmacher [Wed, 25 Aug 2004 06:13:08 +0000 (06:13 +0000)]
r2048: fix memory leak found by abartlet
metze
(This used to be commit
0cab7a32f82fa10fea92bb86a1ffd5017f85e887)
Andrew Bartlett [Wed, 25 Aug 2004 05:58:33 +0000 (05:58 +0000)]
r2047: Warn on 'declaration after statement' (breaks non-gcc).
Andrew Bartlett
(This used to be commit
ce96816d0eeb0b71efd15c77d10ec76303a0abb8)
Andrew Tridgell [Wed, 25 Aug 2004 04:16:48 +0000 (04:16 +0000)]
r2046: fixed two server packet format errors found with the RAW-* tests
(This used to be commit
9fdbe60230741e11478871072a40c8bc8124b5ea)
Andrew Tridgell [Wed, 25 Aug 2004 04:16:14 +0000 (04:16 +0000)]
r2045: fixed a date format push in SMBsearch
(This used to be commit
a6cc0bedad98e7b9bbc27d9f31c21d5eba77146f)
Andrew Tridgell [Wed, 25 Aug 2004 04:03:28 +0000 (04:03 +0000)]
r2044: fixed two unin
\11
(This used to be commit
d17e088ebbf1fd0dd2ef2d73115c7f458677d02f)
Andrew Tridgell [Wed, 25 Aug 2004 03:23:39 +0000 (03:23 +0000)]
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)
Andrew Tridgell [Wed, 25 Aug 2004 02:25:48 +0000 (02:25 +0000)]
r2042: missed a couple of places that should be talloc_free()
(This used to be commit
e1575a72a10252fdb88778f14bf3c44a65d72c5e)
Andrew Bartlett [Wed, 25 Aug 2004 02:25:20 +0000 (02:25 +0000)]
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)
Andrew Tridgell [Wed, 25 Aug 2004 02:07:53 +0000 (02:07 +0000)]
r2040: fixed a memory handling error in clisocket (caught with valgrind)
(This used to be commit
f6dc62bf119c294db060b0870b6ca80bc28bd4a5)
Andrew Tridgell [Wed, 25 Aug 2004 02:07:20 +0000 (02:07 +0000)]
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)
Andrew Tridgell [Wed, 25 Aug 2004 02:06:08 +0000 (02:06 +0000)]
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)
Andrew Tridgell [Wed, 25 Aug 2004 02:05:02 +0000 (02:05 +0000)]
r2037: switched the asn.1 code to use talloc
(This used to be commit
c0862278cab106a441d1049c1da945fa11353f9f)
Andrew Tridgell [Wed, 25 Aug 2004 02:04:35 +0000 (02:04 +0000)]
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)
Andrew Bartlett [Wed, 25 Aug 2004 01:58:08 +0000 (01:58 +0000)]
r2035: Fix spelling.
Andrew Bartlett
(This used to be commit
4e2c5a5fb3e428ffcdeef3b95fab644a420cc20c)
Jeremy Allison [Wed, 25 Aug 2004 01:12:59 +0000 (01:12 +0000)]
r2034: Allow user-selectable hash functions on open only.
Jeremy.
(This used to be commit
b43320ee5c9ac14c330e61ae62e0786b088e04fa)
Andrew Tridgell [Wed, 25 Aug 2004 00:04:47 +0000 (00:04 +0000)]
r2031: add a check for a blank secret return in lsa secret tests
(This used to be commit
eddb31d19654853189d1c3c52105a6240d100456)
Andrew Tridgell [Tue, 24 Aug 2004 23:58:00 +0000 (23:58 +0000)]
r2030: quick hack to allow the simple NTVFS backend to handler base directories with mixed case names
(This used to be commit
efecc3306efb17f586b781112886d9416b355d65)
Andrew Tridgell [Tue, 24 Aug 2004 23:56:59 +0000 (23:56 +0000)]
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)
Stefan Metzmacher [Tue, 24 Aug 2004 16:28:08 +0000 (16:28 +0000)]
r2021: add password change fallback to SetUserInfo level 25,24,23
metze
(This used to be commit
d31405ff2f379e9627cc9ee3acaf61e2ccc0f6e4)
Stefan Metzmacher [Tue, 24 Aug 2004 15:48:14 +0000 (15:48 +0000)]
r2020: fix compiler warnings
metze
(This used to be commit
17268837d21c2199b87bd78c1f62b49a37b86df8)
Stefan Metzmacher [Tue, 24 Aug 2004 15:43:57 +0000 (15:43 +0000)]
r2019: fix compiler warnings
metze
(This used to be commit
699248fe821ffb738065002b5fef67cd59ca37f6)
Stefan Metzmacher [Tue, 24 Aug 2004 15:38:57 +0000 (15:38 +0000)]
r2017: fix compiler warnings
metze
(This used to be commit
eb75d9323fb07fe9a19bbf77168aeb8a4b92c3b8)
Stefan Metzmacher [Tue, 24 Aug 2004 12:07:36 +0000 (12:07 +0000)]
r2012: --enable-developer also sets debug=yes now
and we how set the CFLAGS="-g -Wall" and the rest only
if the compiler supports it.
CFLAGS is now not empty when we call PROG_CC
so there won't be a "-O2" in the final CFLAGS
metze
(This used to be commit
479f68169466532c7903ced06907288baa1ed8e5)
Stefan Metzmacher [Tue, 24 Aug 2004 12:04:11 +0000 (12:04 +0000)]
r2011: remove this broken and never reached test
as PROG_CC will set CFLAGS to the default ones
normaly "-g -O2"
metze
(This used to be commit
424af1a9df7e67aa2194b2542794ed4589e57dbf)
Stefan Metzmacher [Tue, 24 Aug 2004 12:01:24 +0000 (12:01 +0000)]
r2010: trigger the config.smb_build.dump output by --enable-*developer not --enable-debug
metze
(This used to be commit
ffbfc410336cdf44459de5b387dd1a03b122535e)
Stefan Metzmacher [Tue, 24 Aug 2004 10:07:49 +0000 (10:07 +0000)]
r2005: fix compiler warnings
metze
(This used to be commit
71992c90cc35179ea8783d770c89b16618e1adc6)
Stefan Metzmacher [Tue, 24 Aug 2004 10:03:49 +0000 (10:03 +0000)]
r2004: remove unused file
metze
(This used to be commit
46d5ce350aeae352a9a14b14b968c299f11272f2)
Andrew Tridgell [Tue, 24 Aug 2004 01:32:12 +0000 (01:32 +0000)]
r2003: got rid of next_token_nr(), which involved some horrible globals
and nasy pointer tricks.
this involved fixing some of the internals of smbclient
(This used to be commit
126fec6169f9412932c82e7675840476132bce87)
Stefan Metzmacher [Mon, 23 Aug 2004 09:00:06 +0000 (09:00 +0000)]
r2000: remove unused var
metze
(This used to be commit
5d5b65173949e51c88c5e9ef8768d4e1c14be17c)
Stefan Metzmacher [Mon, 23 Aug 2004 08:50:54 +0000 (08:50 +0000)]
r1999: fix compiler warning
metze
(This used to be commit
8c9c702bc3328c3826985711c4a30b878cf8b02e)
Stefan Metzmacher [Mon, 23 Aug 2004 08:49:55 +0000 (08:49 +0000)]
r1998: fix compiler warning
metze
(This used to be commit
bf06f476dbdfbcb38ccbd8606e622097015c2b3d)
Stefan Metzmacher [Mon, 23 Aug 2004 07:28:15 +0000 (07:28 +0000)]
r1997: fix compiler warning
metze
(This used to be commit
eb9de893b8b93857c648f4df907aac9e9cb199dc)
Stefan Metzmacher [Mon, 23 Aug 2004 07:22:31 +0000 (07:22 +0000)]
r1996: fix compiler warnings
metze
(This used to be commit
dd8d68f3ecb78a2acdec74aa14e1922ad29cabf7)
Stefan Metzmacher [Mon, 23 Aug 2004 07:12:13 +0000 (07:12 +0000)]
r1995: a ndrdump file from abartlet make it clear that this isn't a pointer
to a uint32, there're two uint32 with 0x00000000
metze
(This used to be commit
80f27766cb6d2c4e00232f7e3d5cde75ad84d094)
Stefan Metzmacher [Mon, 23 Aug 2004 07:08:07 +0000 (07:08 +0000)]
r1994: fix compiler warning
metze
(This used to be commit
a3a4b9c9ea2692b3ca85d9a4a094e36609831f19)
Andrew Bartlett [Mon, 23 Aug 2004 05:51:38 +0000 (05:51 +0000)]
r1993: Allow WinXP domain logon to progress a bit further (it seems broken for me).
Fix indent, and add a few more useful debug messages.
Send a fault, if the bind is not accepted - don't just leave the client hanging.
Andrew Bartlett
(This used to be commit
486215edc1148ad754632be37760dc0d38b0340d)
Andrew Bartlett [Sun, 22 Aug 2004 05:37:39 +0000 (05:37 +0000)]
r1992: Make the NTLMSSP torture test show more detail, and return failure etc.
Andrew Bartlett
(This used to be commit
a8e76085a7414068aa96b6544b28afc1e1e1010c)
Andrew Bartlett [Sun, 22 Aug 2004 05:35:43 +0000 (05:35 +0000)]
r1991: After finding a talloc inconsistancy is a very good time to smb_panic(),
it can only indicate programmer error, and doing a smb_panic() ensures
an automatic backtrace (and eventually an abort()).
Andrew Bartlett
(This used to be commit
b2d93d0010d80f158760f53273853de2439c3062)
Andrew Bartlett [Sun, 22 Aug 2004 05:33:07 +0000 (05:33 +0000)]
r1990: Fix breakage caused by the recent talloc changes. (Failure to process
an SPNEGO login from WinXP at least).
talloc_asprintf_append() lost an argument, but because TALLOC_CTX is
now a void*, this was not picked up by the compiler.
I've tested the login (asn1), but not the registry/gtk changes.
Andrew Bartlett
(This used to be commit
4294be44057124568fe1d176702056bb62ad3214)
Andrew Tridgell [Sat, 21 Aug 2004 18:15:07 +0000 (18:15 +0000)]
r1989: fixed a couple of bugs in code that assumes sizeof(time_t) == sizeof(int)
(This used to be commit
cc3d420c33152c8e9026dc39a7322d11edb3c774)
Paul Green [Sat, 21 Aug 2004 12:23:02 +0000 (12:23 +0000)]
r1988: Let Samba use all POSIX features available on VOS.
paulg
(This used to be commit
a489ea5ebec852c33c4d659893144b0577ee8af1)
Tim Potter [Sat, 21 Aug 2004 11:48:46 +0000 (11:48 +0000)]
r1986: Janitor for myself. Merge -r1907:1908 from SAMBA_3_0 branch.
(This used to be commit
99f7feec0ab545271f49ea3ab811eb3022aa03db)
Andrew Tridgell [Sat, 21 Aug 2004 07:43:29 +0000 (07:43 +0000)]
r1985: take advantage of the new talloc in a few more places
(This used to be commit
6ffdfd779936ce8c5ca49c5f444e8da2bbeee0a8)
Andrew Tridgell [Sat, 21 Aug 2004 02:07:12 +0000 (02:07 +0000)]
r1984: this change is what you should read to understand the new talloc()
It simplifies our structure handling a lot, making the code shorter
and easier to understand. Look at the diff carefully and see if you
can understand it. If you're still confused then please ask.
(This used to be commit
03c341aca7f09cb1f0d33ec65e074e6a00caa30f)
Andrew Tridgell [Sat, 21 Aug 2004 01:54:46 +0000 (01:54 +0000)]
r1983: a completely new implementation of talloc
This version does the following:
1) talloc_free(), talloc_realloc() and talloc_steal() lose their
(redundent) first arguments
2) you can use _any_ talloc pointer as a talloc context to allocate
more memory. This allows you to create complex data structures
where the top level structure is the logical parent of the next
level down, and those are the parents of the level below
that. Then destroy either the lot with a single talloc_free() or
destroy any sub-part with a talloc_free() of that part
3) you can name any pointer. Use talloc_named() which is just like
talloc() but takes the printf style name argument as well as the
parent context and the size.
The whole thing ends up being a very simple piece of code, although
some of the pointer walking gets hairy.
So far, I'm just using the new talloc() like the old one. The next
step is to actually take advantage of the new interface
properly. Expect some new commits soon that simplify some common
coding styles in samba4 by using the new talloc().
(This used to be commit
e35bb094c52e550b3105dd1638d8d90de71d854f)
Andrew Tridgell [Sat, 21 Aug 2004 01:20:51 +0000 (01:20 +0000)]
r1982: i is not initialised or used
(This used to be commit
db4bc88f9aeaa59f08b9b447a8b2256c9c9c5fb0)
Andrew Tridgell [Fri, 20 Aug 2004 22:50:33 +0000 (22:50 +0000)]
r1973: for systems that don't have strtoull() try strtouq(). This should fix
the build for some BSD varients.
(This used to be commit
73e9ee791472bb212efe0eb4744daa91678263ad)
Andrew Tridgell [Fri, 20 Aug 2004 22:49:45 +0000 (22:49 +0000)]
r1972: cmdline_auth_info does not need to be declared global
(This used to be commit
d07dbdb22acc4c9cafb7141486fbf162d9f8164e)
Stefan Metzmacher [Fri, 20 Aug 2004 15:00:22 +0000 (15:00 +0000)]
r1961: print out the dcerpc fault code, when we got NT_STATUS_NET_WRITE_FAULT
(this need to be done more generic for all dcerpc calls,
but for now I just need it in this 2 places)
metze
(This used to be commit
d965f84f69ada2a10e9159aa1743c0bee7790488)
Stefan Metzmacher [Fri, 20 Aug 2004 13:24:28 +0000 (13:24 +0000)]
r1957: add cmdline_set_* functions
and let smbclient use the cmdline _* functions
metze
(This used to be commit
ffb87ebc33e728bf8506383f95b80605adec3c68)
Stefan Metzmacher [Fri, 20 Aug 2004 10:22:22 +0000 (10:22 +0000)]
r1952: change the _RPC levels into _SAMR
because we may have other rpc levels in future
add more comments about what's going on
check the rsult of samr_OpenUser
metze
(This used to be commit
741f95909b42eb55a251e5de991e5b3185714e3e)
Stefan Metzmacher [Fri, 20 Aug 2004 09:55:21 +0000 (09:55 +0000)]
r1951: add 'net password set' call
use it like:
net password set user
net password set DOM\\user
net password set user pass
net password set DOM\\user pass
net password set -U DOM\\Administrator%admpass DOM\\user pass
metze
(This used to be commit
b660e5b9e6236c996550973e9bde1e80a8eed775)
Stefan Metzmacher [Fri, 20 Aug 2004 09:52:37 +0000 (09:52 +0000)]
r1950: implement libnet_SetPassword_rpc()
this currently tries only SetUserInfo26
the fallback is not yet done
metze
(This used to be commit
af6b5673b05e7fc1c876a248f99bc71faeec9538)
Stefan Metzmacher [Fri, 20 Aug 2004 09:48:25 +0000 (09:48 +0000)]
r1949: provide functions to access the username, userdomain and userpassword
now you're prompted when cmdline_get_userpassword() is called
and the password is not yet known
metze
(This used to be commit
d14a01533c5d465ff3709c48576b798b3be807e0)
Stefan Metzmacher [Fri, 20 Aug 2004 09:12:53 +0000 (09:12 +0000)]
r1947: fix cup & paste errors
metze
(This used to be commit
1c72f30650655b03fb04a34188a959dfe917b5ec)