1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-07 00:58:40 +03:00

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 79969dc8daf5fdaacd26135a200ecec0b4d7663c)
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 e1a368050d3abb6a6ca6529315dc4228e8590c7f)
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 a3a85bd419e38f0dce138e67174517e23a361010)
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 f5852bf3e2064f03aa9b63af4aa1b4f9e39bdb24)
2007-10-10 12:58:33 -05:00
Tim Potter
5230295b6b r2227: Get rid of annoying compiler warning.
(This used to be commit 64f961f039545c9948eb7d7652b7494be2443174)
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 e6a42f7880993271f2610584182f7d47538b6747)
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 68b10c4aeebc4aa1225aab3c8a9fc0a4d28d6455)
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 04de3edbab106eec040c442eedb5bb3cfcfec778)
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 4e155b966c6027daa34166c7daf30cbff96ff679)
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 f7f7c3de23ffb042f7cf7b4fa42b6b18c205719d)
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 d2d32d8f2b7a4a3e62f505adae787b42f80309bb)
2007-10-10 12:58:32 -05:00
Jeremy Allison
cecc2b38f1 r2212: Optimisation. Passes masktest against W2K3.
Jeremy.
(This used to be commit fb7a529c4c65788c307c1043cf2b664059ed8c2a)
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 e909bfa708aeceeaa37faa6f6dff0274f8ac7920)
2007-10-10 12:58:31 -05:00
Volker Lendecke
0b01bdf9a3 r2208: little attempt to (almost) fix spoolss relative
(This used to be commit ef5414676ea07004aaa78d5f4c1746b3c8669d16)
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 60a88595e23eb2953edfacf9dfc9fe3f08ec5eeb)
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 8ffe136ad2be52f3504d73ead0785c9c5f5d8770)
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 d2d3433de1c1e1bc757381e9736147cc24fe8cf0)
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 bd45329a3fb55a5d9f006ad601ae26a80b9a563f)
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 d98ed1fbe52b547c461f1b6a859504e96e0e3ee7)
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 591ee2308c95982caf5453d35ebf6530208037fd)
2007-10-10 12:58:31 -05:00
Andrew Tridgell
b702a07f0b r2201: removed an exit I accidentially left in
(This used to be commit e1d13631f0163b69401a07c51e449ea1e32239bf)
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 05fd38f3cfd9476bc1cf7fed838a942a75569c0a)
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 e99d88915fbfcfb50b04330cd1a32b90222fbca3)
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 c80d686f59a8b6c53305af1233137c22a26f6750)
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 2d8f4005926e15dcb56a6501091a56475a99712d)
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 f2a0438c66b999189c1a2ad726e91efd0748eb90)
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 7256945b526a1ee68d18eb579e592f7389740c22)
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 a6f830cfecee9ec256924aa9df0cb1503b2072ab)
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 ad8d54fd7dd93cb984d23acecfc1c611b63a5d58)
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 4c370c3c917f399497f936a2037ea2868b2196d2)
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 7fdb778f81f14aaab75ab204431e4342a462957a)
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 25f85efd75bd54ff142027a8741edaa94725ca9a)
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 53f58c053b643c8b45d2f9394faf8cfdd5005f6d)
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 5cf9333f6021479d62cc99475f4fb9a19588f928)
2007-10-10 12:58:28 -05:00
Andrew Tridgell
f4dbe1865e r2169: switch core iconv code to use talloc
(This used to be commit 117796c19ba9615113ae549068fd0b5ad5d3aa97)
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 604fc603daf27ed02b5992c7ce2da10133bce649)
2007-10-10 12:58:28 -05:00
Tim Potter
f469c8982b r2167: Implement some stubbed out functions.
(This used to be commit ed48d13e4dc346a8af1e8aeaa7387122cc8d89d2)
2007-10-10 12:58:28 -05:00
Stefan Metzmacher
deb288d82e r2166: sync the asn1 stuff with trunk
metze
(This used to be commit 46762c9ee011e5c37f3d94a1b80ed7d679c55434)
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 e754d0cbcab7cb5a65322e5bbbd1d2a8bcdf5375)
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 62a0cfd865d6ad4c05e2461dbf0b81988683a219)
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 756f28ac95feaa84b42402723d5f7286865c78db)
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 9e120bff7af076bbc541a88cefb3ba400fb91caa)
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 17a53eaac2d0d76413c8bb27a6f1c80536ccf3a7)
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 fe6506e190ed5e1987894d43caa51b33d80d5193)
2007-10-10 12:58:27 -05:00
Andrew Tridgell
468fe3e5db r2128: netlogon DELTA_POLICY fix from rrenard
(This used to be commit 5ab362cede5b6b91af42247d7b0981f3e4b4d093)
2007-10-10 12:58:27 -05:00
Andrew Tridgell
5be4fe1737 r2127: more lsa IDL updates from Richard Renard
(This used to be commit 5be1b54d15e65008f0dc06a005fb205180817a6d)
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 253203f58f7fe6d1b7aea50822d191a8377b47da)
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 dbe786f61e3de0758f95f2abd1b15a4c320432ca)
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 bc4c188362901423cc900fd4bdfa4a9ed6838f2b)
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 79bee828fbb70e71ad3fbd45758bcc7775ea977b)
2007-10-10 12:58:26 -05:00