1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

1832 Commits

Author SHA1 Message Date
Andrew Tridgell
d0aee368a1 r2205: fixed an incorrect cast that broke relative strings in spoolss
(This used to be commit d2d3433de1)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
6a2422932b r2204: added [flag(RELATIVE_CURRENT)] to change [relative] pointer behaviour
for this struct and all sub-structures to be like spoolss relative
pointers (where offset is relative to current position).

volker will test this for me :)
(This used to be commit bd45329a3f)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
905dd977fa r2203: delete the key after testing, so as not to clutter the server with random keys
(This used to be commit d98ed1fbe5)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
73da5b1e87 r2202: don't close the smb pipe after the puzzle test
(This used to be commit 591ee2308c)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
b702a07f0b r2201: removed an exit I accidentially left in
(This used to be commit e1d13631f0)
2007-10-10 12:58:30 -05:00
Andrew Tridgell
a67ec52fde r2200: solved another piece of the lsakey puzzle - the session key for lsa
encryption on ncacn_ip_tcp is a fixed buffer! I don't yet know what
the buffer is, but this code proves its the same buffer for different
w2k3 servers and different user passwords, plus it is independent of
the negotiated NTLMSSP session key.
(This used to be commit 05fd38f3cf)
2007-10-10 12:58:30 -05:00
Andrew Tridgell
a560082c60 r2199: the unknown 16 bit number in lsa_LookupPrivDisplayName() is a language
ID, so the client can choose what language they get the privilege
description in.

this is the first time I've seen a language ID on the wire in CIFS.
(This used to be commit e99d88915f)
2007-10-10 12:58:30 -05:00
Andrew Tridgell
37dc4e9bf7 r2192: removed an erroneous free() call on an error path
(This used to be commit c80d686f59)
2007-10-10 12:58:30 -05:00
Andrew Tridgell
55b38541a0 r2186: setting [ref] output pointers in dcerpc calls is pointless. Removed it
for test_LookupPrivDisplayName
(This used to be commit 2d8f400592)
2007-10-10 12:58:30 -05:00
Andrew Tridgell
eaab3ed2d2 r2185: add a callback function to the dcerpc async API
also add a demonstration of its use in the netlogon async example
(This used to be commit f2a0438c66)
2007-10-10 12:58:30 -05:00
Andrew Tridgell
b990e9a97b r2184: use the smb.conf socket options for client code too
(This used to be commit 7256945b52)
2007-10-10 12:58:30 -05:00
Tim Potter
c6dd8f9c9a r2183: Tidy up naming of ethereal fields. The field names are taken from the
structure elements with underscores replaced with spaces and words
capitalised.

Fix small buglet where we confuse the name of the interface with the name
of the idl file.

Just discovered security descriptors don't display property anymore.  )-:
(This used to be commit a6f830cfec)
2007-10-10 12:58:29 -05:00
Andrew Tridgell
3a899d9a92 r2182: force the torture test domain join to happen on SMB to prevent the
LSAKEY problem holding up other tests
(This used to be commit ad8d54fd7d)
2007-10-10 12:58:29 -05:00
Andrew Tridgell
58bb944d81 r2181: an rpc async test on the netlogon pipe
(This used to be commit 4c370c3c91)
2007-10-10 12:58:29 -05:00
Andrew Tridgell
4d390df586 r2180: added RPC flags "padcheck" which enables checking of all received pad
bytes to make sure they are zero. Non-zero values usually indicate one
of two things:

 - the server is leaking data through sending uninitialised memory
 - we have mistaken a real field in the IDL for padding

to differentiate between the two you really need to run with
"print,padcheck" and look carefully at whether the non-zero pad bytes
are random or appear to be deliberate.
(This used to be commit 7fdb778f81)
2007-10-10 12:58:29 -05:00
Andrew Tridgell
01f704e5ec r2179: two more lsa torture tests from Richard Renard. Thanks!
(This used to be commit 25f85efd75)
2007-10-10 12:58:29 -05:00
Volker Lendecke
3e454a5891 r2173: Fix asn1 BOOLEANs. Thanks to Love Hornquist-Astrand.
Volker
(This used to be commit 53f58c053b)
2007-10-10 12:58:29 -05:00
Andrew Tridgell
4a17f26292 r2170: if we don't have a native iconv library then we can't build this test
(This used to be commit 5cf9333f60)
2007-10-10 12:58:28 -05:00
Andrew Tridgell
f4dbe1865e r2169: switch core iconv code to use talloc
(This used to be commit 117796c19b)
2007-10-10 12:58:28 -05:00
Tim Potter
5bab23d8ed r2168: Move these files into a separate ethereal-pidl-plugin svn repository.
Not only will this allow the plugin to be built easily, but will also
get rid of the duplicate function names that muck up etags.
(This used to be commit 604fc603da)
2007-10-10 12:58:28 -05:00
Tim Potter
f469c8982b r2167: Implement some stubbed out functions.
(This used to be commit ed48d13e4d)
2007-10-10 12:58:28 -05:00
Stefan Metzmacher
deb288d82e r2166: sync the asn1 stuff with trunk
metze
(This used to be commit 46762c9ee0)
2007-10-10 12:58:28 -05:00
Andrew Tridgell
960c1d13c1 r2165: generalise the charset torture test to add testing of CP850
potentially we can test any charset
(This used to be commit e754d0cbca)
2007-10-10 12:58:28 -05:00
Andrew Tridgell
a08808d62b r2164: put the latest "accept either form" utf-16 iconv code in samba4
(This used to be commit 62a0cfd865)
2007-10-10 12:58:28 -05:00
Andrew Tridgell
31c1c7846f r2159: converted samba4 over to UTF-16.
I had previously thought this was unnecessary, as windows doesn't use
standards compliant UTF-16, and for filesystem operations treats bytes
as UCS-2, but Bjoern Jacke has pointed out to me that this means we
don't correctly store extended UTF-16 characters as UTF-8 on
disk. This can be seen with (for example) the gothic characters with
codepoints above 64k.

This commit also adds a LOCAL-ICONV torture test that tests the first
1 million codepoints against the system iconv library, and tests 5
million random UTF-16LE buffers for identical error handling to the
system iconv library.

the lib/iconv.c changes need backporting to samba3
(This used to be commit 756f28ac95)
2007-10-10 12:58:27 -05:00
Andrew Tridgell
48f3df41bb r2158: removed a misleading comment (the extra uint16 is just padding)
(This used to be commit 9e120bff7a)
2007-10-10 12:58:27 -05:00
Tim Potter
cfedadec22 r2154: Merge of Jim's format string fixup in r2130:2131
(This used to be commit 17a53eaac2)
2007-10-10 12:58:27 -05:00
Jeremy Allison
ebe1733768 r2151: Added some more ad-hoc tests. Found bugs in Samba3 with these :-).
Jeremy.
(This used to be commit fe6506e190)
2007-10-10 12:58:27 -05:00
Andrew Tridgell
468fe3e5db r2128: netlogon DELTA_POLICY fix from rrenard
(This used to be commit 5ab362cede)
2007-10-10 12:58:27 -05:00
Andrew Tridgell
5be4fe1737 r2127: more lsa IDL updates from Richard Renard
(This used to be commit 5be1b54d15)
2007-10-10 12:58:26 -05:00
Andrew Tridgell
9db2cb2642 r2126: two more lsa functions worked out by richard renard
(This used to be commit 253203f58f)
2007-10-10 12:58:26 -05:00
Andrew Tridgell
1f591a4400 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 dbe786f61e)
2007-10-10 12:58:26 -05:00
Stefan Metzmacher
0575d5e0d2 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 bc4c188362)
2007-10-10 12:58:26 -05:00
Stefan Metzmacher
776d90d801 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 79bee828fb)
2007-10-10 12:58:26 -05:00
Stefan Metzmacher
eed08c84e2 r2121: fix compiler warning
metze
(This used to be commit 2de544181e)
2007-10-10 12:58:26 -05:00
Andrew Bartlett
6fe8b2f608 r2119: Noticed by jra:
Clean up use of unitilaised variable.

Andrew Bartlett
(This used to be commit e8d0246882)
2007-10-10 12:58:26 -05:00
Andrew Tridgell
91e645b6d7 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 a86e629a39)
2007-10-10 12:58:26 -05:00
Andrew Tridgell
1fc55db733 r2107: added a SAMR async test - this one seems to work
(This used to be commit 306eb84865)
2007-10-10 12:58:25 -05:00
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 168be7fbd7)
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 a5eb6cad50)
2007-10-10 12:58:25 -05:00
Andrew Tridgell
833a896f56 r2104: fixed typo that causes a segv
(This used to be commit e37a4c1a63)
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 83fbe080e7)
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 e0bda61112)
2007-10-10 12:58:25 -05:00
Andrew Tridgell
e64fce8b88 r2101: fixed a signed/unsigned char warning
(This used to be commit f5fd90848d)
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 f5d004d8eb)
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 0237389ce7)
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 16ef31a79e)
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 e509451538)
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 ecdb0b4426)
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 b9152c9ba2)
2007-10-10 12:58:24 -05:00