1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

1677 Commits

Author SHA1 Message Date
Tim Potter
aeaec31533 r2234: Tridge, this is a patch to allow people to set the REF_ALLOC flag on
a dcerpc_pipe structure as we discussed this morning.
(This used to be commit 79969dc8da)
2007-10-10 12:58:33 -05:00
Tim Potter
65b5a2297c r2230: Wrapper for dcerpc_samr_Connect2(). All this glue code should be
automatically generated but at the moment it's hand coded.
(This used to be commit e1a368050d)
2007-10-10 12:58:33 -05:00
Tim Potter
86bf5cefa9 r2229: Have dcerpc_pipe_connect() throw an exception if non-zero NTSTATUS is
returned from the C function.  This way we can return the struct dcerpc_pipe
object instead of a tuple of (NTSTATUS, dcerpc_pipe) which is a bad
interface.
(This used to be commit a3a85bd419)
2007-10-10 12:58:33 -05:00
Tim Potter
779b89cfc8 r2228: Finally commit bits of old workareas together to get dcerpc python
bindings happening.  This commit lets python call dcerpc_pipe_connect()
and open the samr pipe.
(This used to be commit f5852bf3e2)
2007-10-10 12:58:33 -05:00
Tim Potter
5230295b6b r2227: Get rid of annoying compiler warning.
(This used to be commit 64f961f039)
2007-10-10 12:58:33 -05:00
Tim Potter
b575ce6b4b r2226: A bunch of fixes to get python tdb module building again. I'm not
sure how this can be integrated into the build system properly though.
Editing makefile.pl is the wrong way to do this.
(This used to be commit e6a42f7880)
2007-10-10 12:58:32 -05:00
Tim Potter
e0459c7f72 r2223: Include autogenerated header file for idl file we are processing with
--eparser.
(This used to be commit 68b10c4aee)
2007-10-10 12:58:32 -05:00
Tim Potter
eb84275718 r2222: Generate correct function prototypes for unions marked as public.
(This used to be commit 04de3edbab)
2007-10-10 12:58:32 -05:00
Tim Potter
7c583b2adb r2221: Experiment with extra properties for telling the ethereal parser what
to do.  There is a patch to the grammar and idl files for this but I
won't commit that just yet.
(This used to be commit 4e155b966c)
2007-10-10 12:58:32 -05:00
Andrew Bartlett
26abe13ff7 r2220: Updates to the NETLOGON torture test. This copes with 'long'
passwords - where the LM hash is invalid.

Also, we now drive all the logon levels and validation levels from the
outer loop, so we can check the expected return values (rather than
overwriting them).

Andrew Bartlett
(This used to be commit f7f7c3de23)
2007-10-10 12:58:32 -05:00
Jeremy Allison
f0ae80e18c r2217: Ad-hoc tests to allow me to work out the correct error code
for the bad path algorithm.
Jeremy.
(This used to be commit d2d32d8f2b)
2007-10-10 12:58:32 -05:00
Jeremy Allison
cecc2b38f1 r2212: Optimisation. Passes masktest against W2K3.
Jeremy.
(This used to be commit fb7a529c4c)
2007-10-10 12:58:32 -05:00
Andrew Tridgell
13f44bbacb r2209: patch from volker to add EnumPorts spoolss IDL and test code
the ndr->offset=0; stuff is ugly. We need a better way to handle this.
(This used to be commit e909bfa708)
2007-10-10 12:58:31 -05:00
Volker Lendecke
0b01bdf9a3 r2208: little attempt to (almost) fix spoolss relative
(This used to be commit ef5414676e)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
5f6c0b6c8c r2207: this bug caued valgrind to consume infinite memory till the kernel killed it :(
(This used to be commit 60a88595e2)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
54dd7bccd2 r2206: another (untested) attempt to make RELATIVE_CURRENT work for volker,
plus removed unused ndr_pull_relative() function

once volker commits a test for this I'll be able to ensure it really works as expected
(This used to be commit 8ffe136ad2)
2007-10-10 12:58:31 -05:00
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