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

412 Commits

Author SHA1 Message Date
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
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
5e34ee629a r2035: Fix spelling.
Andrew Bartlett
(This used to be commit 4e2c5a5fb3e428ffcdeef3b95fab644a420cc20c)
2007-10-10 12:58:19 -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
Stefan Metzmacher
e89e5eee38 r1997: fix compiler warning
metze
(This used to be commit eb9de893b8b93857c648f4df907aac9e9cb199dc)
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
b0856b8ad0 r1996: fix compiler warnings
metze
(This used to be commit dd8d68f3ecb78a2acdec74aa14e1922ad29cabf7)
2007-10-10 12:58:16 -05:00
Stefan Metzmacher
8460fc7df9 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)
2007-10-10 12:58:16 -05:00
Andrew Bartlett
0e5260c4f5 r1992: Make the NTLMSSP torture test show more detail, and return failure etc.
Andrew Bartlett
(This used to be commit a8e76085a7414068aa96b6544b28afc1e1e1010c)
2007-10-10 12:58:15 -05:00
Andrew Tridgell
b7e1ea20dc r1985: take advantage of the new talloc in a few more places
(This used to be commit 6ffdfd779936ce8c5ca49c5f444e8da2bbeee0a8)
2007-10-10 12:58:14 -05:00
Andrew Tridgell
b83ba93eae 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)
2007-10-10 12:58:14 -05:00
Stefan Metzmacher
6766809ba8 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)
2007-10-10 12:58:13 -05:00
Andrew Tridgell
1129c78083 r1897: added a choose_called_name() function that allows us to more sanely
handle connections using the IP as the server name, while not trying
for NBT name resolution on names like "192" and "192.168.1.2".

also removed the ip address argument to smbcli_socket_connect() as it
isn't used and doesn't really make sense.
(This used to be commit 2ce4028842556328da4da0de9bee942bed02cc62)
2007-10-10 12:58:09 -05:00
Stefan Metzmacher
a4b2f077e0 r1855: fix compiler warning and output fromatting
metze
(This used to be commit 59f3d417449f55d247604966b6e9fa2fa97c5124)
2007-10-10 12:58:02 -05:00
Andrew Tridgell
ada86316e5 r1820: added a strcmp_safe() that handles NULL pointers. Needed for the
search torture test, as some servers return really bad entries.
(This used to be commit c900ebb3ac18d77ab334d3bf5259b3bba547b09c)
2007-10-10 12:57:59 -05:00
Andrew Tridgell
350673b2d0 r1818: _really_ fixed epmapper this time, it was using more than one old rpc interface method.
(This used to be commit ec41c73ae136bffea4285ade8be322b3c4cf3629)
2007-10-10 12:57:59 -05:00
Stefan Metzmacher
16757c52d6 r1805: ...I just forgot to say that the sasl bind actually works now:-)
metze
(This used to be commit a2cd725681fa7b10a5cca337554be17f628465c0)
2007-10-10 12:57:58 -05:00
Simo Sorce
01b58ebf83 r1802: start to support SASL in our ldap libraries
does not work yet but we are close currently we send the right data
on wire and fail to decode the answer
(This used to be commit 10baf585821bf1f10a3786045a0965000cdffd12)
2007-10-10 12:57:58 -05:00
Jelmer Vernooij
b7779be06a r1799: List more uuids. From
http://www.hsc.fr/ressources/articles/win_net_srv
(This used to be commit 8d36dbed8c5bdc82176083b2c6f8d989ae903ba5)
2007-10-10 12:57:58 -05:00
Andrew Bartlett
14924a9fe7 r1795: Fix the multiple session setup torture tests.
Andrew Bartlett
(This used to be commit c4036f218967459c17056f9d27eb95eed3f72dd8)
2007-10-10 12:57:57 -05:00
Simo Sorce
9dc1e17c35 r1793: try to bind multiple times as anonimous and user
added -D parameter to torture to be able to specify:
- user dn
- base dn
- user secret
(This used to be commit 0eaec28f5c511a28764a1d350c2eaaf37272eb62)
2007-10-10 12:57:57 -05:00
Stefan Metzmacher
3301f6c59e r1773: fix the build
metze
(This used to be commit 4e1156602caf60b3c0659d9d5e7aba8e430153e2)
2007-10-10 12:57:56 -05:00
Simo Sorce
2e28edd233 r1771: OK Let's add tests for ldap.
Thanks to Metze and Volker for their unvaluable support :)
(This used to be commit e6a6c0737ab94d58930c0d4e1ef0bb4d99510833)
2007-10-10 12:57:56 -05:00
Andrew Bartlett
63c5ca7d58 r1769: Add a new torture test to check vuid properties, and SPNEGO/non-SPNEGO games.
Andrew Bartlett
(This used to be commit 90d70a63ee6d44172cec99a9115817f666b5d06d)
2007-10-10 12:57:55 -05:00
Simo Sorce
d01bc8a91e r1758: Move and enhance the add_string_to_array function as per volker job on trunk
(This used to be commit 606caddeb95382287fa41a5017ca473d0301be6b)
2007-10-10 12:57:54 -05:00
Andrew Tridgell
ae274c84d7 r1740: fixed the torture suite for ASCII-only servers
(This used to be commit c3bce90be745db3e7cbf8273c1c8496920332f5e)
2007-10-10 12:57:52 -05:00
Jelmer Vernooij
1d3b81e6c0 r1736: - Pidl updates:
- Support for "object oriented" interfaces in pidl
 - Support for inherited interfaces in pidl
 - Simplification of the support for properties on an interface
- Start on dcom rpc torture tests
(This used to be commit 45c3d0036b8510102816f9cdff9210098259cc5f)
2007-10-10 12:57:51 -05:00
Jelmer Vernooij
1f0ea81ae9 r1703: - Lots of RPC updates, adding new pipes and protocols.
- More updates/fixes to the ethereal parser generator
(This used to be commit 547f860285b117e291bf3dbaca0707dc268b214e)
2007-10-10 12:57:49 -05:00
Andrew Bartlett
06cf56bc1d r1685: Add the ability to lookup RPC auth types for the RPC-MGMT torture test.
Andrew Bartlett
(This used to be commit 0e4e3647e848605416fe79c742ac84d84dc4357c)
2007-10-10 12:57:48 -05:00
Andrew Tridgell
9c41274ace r1676: - improved the handling of username/password in locktest and gentest
- use lp_maxprotocol() in the libcli/raw/ negotiate code, so we obey
  the smb.conf "max protocol" option

- better handling of -M option in masktest
(This used to be commit 8685a584c92ab73a35b29a8c719f1ec207562837)
2007-10-10 12:57:48 -05:00
Stefan Metzmacher
c5fbb6f23c r1654: rename cli_ -> smbcli_
rename CLI_ -> SMBCLI_

metze
(This used to be commit 8441750fd9427dd6fe477f27e603821b4026f038)
2007-10-10 12:57:47 -05:00
Stefan Metzmacher
a0cb701b6f r1649: do a join as dc and run this test as the machine account
metze
(This used to be commit 59de2b1f528fb82fbfcf9c3783dd733a36d3fb6c)
2007-10-10 12:57:47 -05:00
Stefan Metzmacher
ae24bf5251 r1647: destroy mem_ctx
metze
(This used to be commit 973ac69a012e579a09807d635061ff3550a10719)
2007-10-10 12:57:46 -05:00
Andrew Tridgell
07aa4d8fe2 r1646: disable testing of group rename in the RPC-SAMR test, as it leaves the
group in a state where it can't be deleted via samr, which breaks
repeated runs of the test.
(This used to be commit bcad9efd728983c2d8932ef93eebd3d0c6d4d085)
2007-10-10 12:57:46 -05:00
Jelmer Vernooij
d31150a34f r1642: Torture test for EnumServicesStatus, almost finished.
(This used to be commit fb2ca1f4cde014c93a0741b8ba03d2d9caffd8df)
2007-10-10 12:57:46 -05:00
Andrew Tridgell
707c94babb r1637: - w2k3 can't handle more than 1000 names in a LookupNames request
- use a SID that w2k3 likes in CreateTrustedDomain
(This used to be commit b5f25fdb7440ba21f073f4ca7fa9a8771a6ebaf4)
2007-10-10 12:57:46 -05:00
Andrew Tridgell
d4ceaff6a5 r1636: improved the negnowait test so it is standalone (taking advantage of the async APIs)
(This used to be commit 19c22760c699aa2b000f023ff6083055a27a83cb)
2007-10-10 12:57:46 -05:00
Andrew Tridgell
44194cc663 r1632: in case of error don't send uninitialised fnums on the wire
(This used to be commit 13cd58efce8fc077c7c3ced99a82344766e20c5c)
2007-10-10 12:57:45 -05:00
Andrew Tridgell
16e452ddf8 r1628: - fixed the comment on run_deferopen. (I also think that the
deferopen test should probably be ripped out and redone, as it
   tests the wrong thing.)

 - removed some unused code

 - add progress printing to the pipe_number test

 - fixed the dir1 test to use deltree rather than trying to re-invent it itself (in a broken manner)

 - renamed all of the tests into catagories, so you can now run
   BASE-* for the base tests, and BENCH-* for the benchmarks.
(This used to be commit 2e297be5c34086a42396acc3abf965f8dbd665cd)
2007-10-10 12:57:44 -05:00
Jelmer Vernooij
0c55b8d8c2 r1617: Start working on the svcctl pipe
(This used to be commit 518ff5f505446fee623365fd5bdfc75c0cb93d2a)
2007-10-10 12:57:44 -05:00
Andrew Tridgell
5ddf678e01 r1578: the first stage of the async client rewrite.
Up to now the client code has had an async API, and operated
asynchronously at the packet level, but was not truly async in that it
assumed that it could always write to the socket and when a partial
packet came in that it could block waiting for the rest of the packet.

This change makes the SMB client library full async, by adding a
separate outgoing packet queue, using non-blocking socket IO and
having a input buffer that can fill asynchonously until the full
packet has arrived.

The main complexity was in dealing with the events structure when
using the CIFS proxy backend. In that case the same events structure
needs to be used in both the client library and the main smbd server,
so that when the client library is waiting for a reply that the main
server keeps processing packets. This required some changes in the
events library code.

Next step is to make the generated rpc client code use these new
capabilities.
(This used to be commit 96bf4da3edc4d64b0f58ef520269f3b385b8da02)
2007-10-10 12:57:42 -05:00
Stefan Metzmacher
d093b7e777 r1547: rename 'enum <bla>_level' -> 'enum smb_<bla>_level'
e.g. we now have 'union smb_mkdir' and 'enum smb_mkdir_level' in sync

we may should also rename 'RAW_MKDIR_*' -> 'SMB_MKDIR_*'

metze
(This used to be commit 0bb50dcf1ccb9797000fcbea4d8a73f2d2a3db77)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
937e2a57ac r1544: add some comments and fix 'return True' -> 'return ret'
metze
(This used to be commit a9a22d1e0db32c7715809efc4bb08ea5a5a9a69b)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
b56fbe6d14 r1543: add srvsvc_NetRemoteTOD idl and torture tests
metze
(This used to be commit 3f2b77d7ec024f54dc478522d85278ced8fce617)
2007-10-10 12:57:41 -05:00
Stefan Metzmacher
fd806c76ba r1530: we don't need to call srvsvc_NetShareGetInfo twice
in NetShareEnum and NetShareEnumAll

metze
(This used to be commit e5bf65b840cd7fbc97166c6313f5eb29de9d129f)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
fda5ab2f21 r1529: add NetSrvGetInfo torture test
metze
(This used to be commit 0018aeb2fe8c42e49fdcdd1ecc646b277625967d)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
4dbc8abcc0 r1528: add NetCharDevQ torture tests
metze
(This used to be commit d44c85176a79461bfb465a5643b855aa0d8da726)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
dbb6b8f1ec r1527: add NetCharDev torture tests
metze
(This used to be commit dde75d3b346be33213e9f38db01945ee45eff9df)
2007-10-10 12:57:40 -05:00
Stefan Metzmacher
18b511f0ce r1526: some cleanups and fixes for the srvsvc torture tests
metze
(This used to be commit 3a2a8973bee1d7e4b21cf807ef549ad3498b4e9d)
2007-10-10 12:57:39 -05:00
Andrew Tridgell
f348037f7b r1510: add a commented out routine I used to test password change on NT3.
(This used to be commit fb5796b0dccf7cd518db03e6456d986f17e50345)
2007-10-10 12:57:36 -05:00
Andrew Bartlett
f607197054 r1498: (merge from 3.0)
Rework our random number generation system.

On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork().

For other systems, we now only re-seed after a fork, and on startup.
No need to do it per-operation.  This removes the 'need_reseed'
parameter from generate_random_buffer().

This also requires that we start the secrets subsystem, as that is
where the reseed value is stored, for systems without /dev/urandom.

In order to aviod identical streams in forked children, the random
state is re-initialised after the fork(), at the same point were we do
that to the tdbs.

Andrew Bartlett
(This used to be commit b97d3cb2efd68310b1aea8a3ac40a64979c8cdae)
2007-10-10 12:57:35 -05:00