1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

12172 Commits

Author SHA1 Message Date
Jelmer Vernooij
4c99e87f9b r21578: Use utility function for naming pull/push/print functions.
(This used to be commit e0f626b79c43eb59ad3c6e3fb6c267504764bfef)
2007-10-10 14:48:59 -05:00
Jelmer Vernooij
240b470f44 r21575: Fix handling of is_scalar() for declares.
(This used to be commit f0bc29df7297f8f91175091e5f4b14f4ae4b0591)
2007-10-10 14:48:59 -05:00
Jelmer Vernooij
a635df47da r21574: Fix handling of DECLARE.
(This used to be commit 6a4033464bf269176f928a5b3b7e63aad1bb1e7a)
2007-10-10 14:48:58 -05:00
Jelmer Vernooij
c1aef15fe7 r21573: Remove more code that assumed all types are typedefs.
(This used to be commit bbbfbfa870c44a6148c3d4d47ff409098e85fcc3)
2007-10-10 14:48:58 -05:00
Jelmer Vernooij
d7a7b7fb0c r21572: More work towards supporting tagged types.
(This used to be commit 4d28396f0928444406334888f4bc345e74a380df)
2007-10-10 14:48:58 -05:00
Andrew Tridgell
3d61a1bbdd r21571: added RPC-HANDLES test to make test
(This used to be commit 73da5e368ba2307051320cd8cb70b3bd8bd04089)
2007-10-10 14:48:58 -05:00
Andrew Tridgell
bedc59ca5c r21570: added a RPC-HANDLES test that tries to show that rpc policy handles
are not shared between connections. It tests three types of policy
handles, on lsa, samr and drsuapi. You need to run on ncacn_ip_tcp
with seal for drsuapi.

Metze, can you have a look and see how this tallies with what you've
seen?
(This used to be commit c1f41ac045f6023da06c3dbd0a37f39edd8a62f8)
2007-10-10 14:48:57 -05:00
Jelmer Vernooij
f5f0e502b3 r21568: More tests.
(This used to be commit c7bde9c1f537cbcf8e71177e6c3969699c046ecb)
2007-10-10 14:48:57 -05:00
Jelmer Vernooij
6f3c968e64 r21567: Add some more wireshark tests.
(This used to be commit 40e2956058fe4aaebf3f7269bce90339d7faf24f)
2007-10-10 14:48:57 -05:00
Jelmer Vernooij
7870652898 r21564: Move ndrdump to librpc/tools.
(This used to be commit e3cc94e7d175824abce16c377e5180b4756543cf)
2007-10-10 14:48:57 -05:00
Jelmer Vernooij
cdb18fd22d r21559: More tests.
(This used to be commit c68573392b0fbc7c6267ac4fe84f7916e3cec779)
2007-10-10 14:48:56 -05:00
Jelmer Vernooij
2916cc628a r21555: Some tests for TYPE in wireshark conformance files.
(This used to be commit 2a44c8c9c296462350fcae1960265a6ef0f317d8)
2007-10-10 14:48:56 -05:00
Andrew Bartlett
ad3b40d258 r21554: Use a snippet from tridge's junkcode to cause us to wait for smbd to
exit.

If we kill smbd right away, we can interrupt the gcov data file
writeout.  Instead, we now wait up to 20 seconds for the process to
exit, before sending it a kill -9.

Andrew Bartlett
(This used to be commit c547bce3d305f64d65961051e6462b8c83871f38)
2007-10-10 14:48:56 -05:00
Andrew Bartlett
e2aa39b024 r21553: Remove bogus comment.
(This used to be commit 7c5529729b95f170508b9fe4f04bd33d6f000b1e)
2007-10-10 14:48:55 -05:00
Jelmer Vernooij
43679c82f4 r21545: Fix pidl test.
(This used to be commit ed0a7f5091d99a012e366ed3bc877b5228aa62a8)
2007-10-10 14:48:55 -05:00
Jelmer Vernooij
e31197308c r21544: Fix duplicate names. The build system should be warning about this....
(This used to be commit 623026f67aac56c45e298ce5d7af7dbf91ec5df7)
2007-10-10 14:48:55 -05:00
Jelmer Vernooij
fd2d095048 r21541: Export mgmt, samr and atsvc for use in samba-gtk.
(This used to be commit 7f451cbb8da26cfe27861c402e06b3f34f7ac647)
2007-10-10 14:48:55 -05:00
Stefan Metzmacher
8c62b4c951 r21539: try to get rid of all valgrind warnings...
metze
(This used to be commit 21f0e8e16373662f5662957e80c1f26f489f6279)
2007-10-10 14:48:54 -05:00
Stefan Metzmacher
815d3f2e68 r21538: this looks better...
metze
(This used to be commit 8ddfbbcb93f7c94ab040984d460d6122f0ff6520)
2007-10-10 14:48:54 -05:00
Andrew Tridgell
60fd088c48 r21535: - fixed a crash in the RAW-ACLS test. When a dcerpc_pipe is created
using the pattern in the clilsa code, it didn't fill in the p->binding
structure. This affects nearly all users of dcerpc_pipe_open_smb(), so
the simplest fix is to ensure that dcerpc_pipe_open_smb() initialises
the binding if its not already there.

- re-enable the RAW-ACLS test
(This used to be commit d8875c286d2be49c01703d8fd58bbc1842054bd9)
2007-10-10 14:48:54 -05:00
Jelmer Vernooij
b8c219a270 r21534: Add some more tests for wireshark.
(This used to be commit b10432096181cf8e7d729e58a5ab54fac5eaa5fe)
2007-10-10 14:48:54 -05:00
Stefan Metzmacher
0e617102ef r21533: try to get rid of the valgrind warnings of uninitialized memory
passed to a socket

metze
(This used to be commit 18ce33844738179a5434b91b362606bc4bdfa6b5)
2007-10-10 14:48:53 -05:00
Jelmer Vernooij
cb8fceab28 r21532: Add tests for StripPrefixes utility function.
(This used to be commit 365052555e0e9224bdfda0c2a10f78cbeee5b06c)
2007-10-10 14:48:53 -05:00
Jelmer Vernooij
882c5a8b43 r21531: Use pidl-specific utility functions. Patch from Ronnie Sahlberg
(This used to be commit e6fdcdf95e984a254cebd197269cf3e911009f02)
2007-10-10 14:48:53 -05:00
Brad Henry
c7e06e88ae r21528: This file gets called by testit(), so it shouldn't call testit().
NET tests against Windows weren't getting run, testit() here just created a recipe.
(This used to be commit c71dee34025b152d1af209b06023e30d2539fbc0)
2007-10-10 14:48:52 -05:00
Stefan Metzmacher
8d569e174f r21524: don't send unitialized data to the socket
metze
(This used to be commit 50955aa669c11a2ba20e2ce335dcb4bc3a178109)
2007-10-10 14:48:51 -05:00
Stefan Metzmacher
3260b55188 r21523: fix a valgrind warning, we write the struct content to the file and should not leave
t2.out uninialized

metze
(This used to be commit 4723374d14e9c5648708a7fc5460e8ccda193d1e)
2007-10-10 14:48:50 -05:00
Brad Henry
59d5e6a1b0 r21522: Stop passing the VM config file path to wintest_2k3_dc.sh on the command line.
Forgot this one in the last commit.
(This used to be commit 2982d9e90c26a78fb4a38ecaa65c192f5f764bf3)
2007-10-10 14:48:50 -05:00
Brad Henry
74e23c7e7a r21521: Add missing quotes around shell variables which could have spaces.
Stop passing the VM config file path to wintest_2k3_dc.sh on the command line as it is now properly passed through the environment.

Windows tests, including the DC tests found in test_w2k3.sh should work properly with 'make wintest' and a configured VMware environment.
These tests are executed on build-farm host bnhtest.
(This used to be commit 7496a28b4388535a426ca753bc9000670f6e42e1)
2007-10-10 14:48:50 -05:00
Stefan Metzmacher
067d8fd44c r21520: fix the altercontext test... sorry
I'm only fixing the bug I introduced here,
not the rest of the mess in the pipe handling,
as we don't fill in pipe->binding and pipe->conn->binding_str
consistant...

metze
(This used to be commit cec74f352822a767770e9e00e87a94d0e37d80c9)
2007-10-10 14:48:49 -05:00
Stefan Metzmacher
a626e5a274 r21519: when we want to send non initialized data, then
generate a random buffer explicit to make valgrind happy

found by valgrind in the build-farm on fort, there are some more places
like this...

metze
(This used to be commit 2654f595cae046924be33a3f8f758a20565156ee)
2007-10-10 14:48:49 -05:00
Stefan Metzmacher
041b0cfa97 r21518: fix panic, sorry...
metze
(This used to be commit 3c786eb6bdb3289a237d231e75092a8b3ca56197)
2007-10-10 14:48:49 -05:00
Stefan Metzmacher
d92bc6db36 r21516: - use the same assoc_group_id, for all 3 drsuapi connection
- use the PFC_CONC_MPX flag for the 3rd connection
- to DsGetNCChanges requests on the 3rd connection with the bind handle
  from the 2nd connection to match w2k3

metze
(This used to be commit 5071af332c2c079fd94c577e58ee6e8ccf157ffa)
2007-10-10 14:48:48 -05:00
Stefan Metzmacher
1b17d9a587 r21515: add some more PFC_FLAGS from the DCERPC spec, and fix some names
also make it possible to pass and get the assoc_group_id for
a pipe.

also make it possible to pass the DCERPC_PFC_FLAG_CONC_MPX flag
in bind requests. From the spec it triggers support for
concurrent multiplexing on a single connection.

w2k3 uses the assoc_group_id feature when it becomes a domain controller
of an existing domain. Know the ugly part, with this it's possible to
use a policy handle from one connection on a different one...

typically the DsBind() call is on the 1st connection while DsGetNCChanges()
call using the first connections bind handle are on the 2nd connection.

The second connection also has the DCERPC_PFC_FLAG_CONC_MPX flag attached,
but that doesn't seem to be related to the cross connection handle usage

Can anyone think of a nice way to implement the assoc_group_id stuff in our server?

metze
(This used to be commit 2d8c85397d9027485ed6dbdcca87cc1ec84c7b76)
2007-10-10 14:48:48 -05:00
Stefan Metzmacher
deea925853 r21514: move away from a hardcoded "smbtorturedc"
--option="become dc:smbtorture dc=mydcname"
--option="become dc:do not unjoin=yes"

joins as mydcname and creates mydcname_*.ldb files under lp_private_dir()

metze
(This used to be commit 22bc6d541e9de2dc494cda154d6fabbc3c907da8)
2007-10-10 14:48:48 -05:00
Andrew Bartlett
28884a1cab r21513: I don't know how long this has been wrong, but fix this up so we can
re-provision (as is required for the TEST_LDAP=yes version of make
test).

Andrew Bartlett
(This used to be commit ea4c2ea22fb3975d80130f52edecaf6d1790adde)
2007-10-10 14:48:48 -05:00
Stefan Metzmacher
89e28a0ec8 r21512: finish DsBind() in the DRSUAPI server:
- fill in our on bind_info struct correctly
- remember the local and remote DsBindInfo28 struct
- remember the remote bind_buid

w2k3 now tries replicate using DsGetNCChanges() from us,
after the NET-API-BECOME-DC test created the domain controller
and replicated all data.

(But we still give a DCERPC fault in DsGetNCChanges()...)

metze
(This used to be commit 33550c063d4e206fce63fdd99dc93a56995db580)
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
bf772399bf r21511: this seems to be the nicer fix for the problem with
the windows 2000 LDAP client

metze
(This used to be commit d40465470fa09827ea529e1f2c80bca9efc152a8)
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
7f9d949bd3 r21510: make it possible to push tags with length > 0xFFFFFF
metze
(This used to be commit 8e604107da4a8a1bf6ccab45e85e147daab29519)
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
5d15ba663a r21504: for simo...
metze
(This used to be commit f773b1dc6fc39e59a2d71d7d017a63512a95cfa8)
2007-10-10 14:48:46 -05:00
Stefan Metzmacher
6cb8ac851c r21503: add usefull function to get the site dn for the local server
metze
(This used to be commit 08b8e9acff6779ecc2e568ae0a875013d93838b7)
2007-10-10 14:48:46 -05:00
Stefan Metzmacher
6c32f44f24 r21502: add a very useful option "become dc:donnot leave=yes"
with this you can join a domain as dc for testing:-)

You still need to setup some dns entries...

and add the ldap/.... servicePrincipalName's

abartlet: it's wrong to include ldap/ in the list of host=, we should change this...

metze
(This used to be commit 12f610d747fe827ed402984fa63680b576ed7b03)
2007-10-10 14:48:46 -05:00
Stefan Metzmacher
31d6d8c457 r21501: ugly but the windows 2000 mmc deturns decoding error without this
metze
(This used to be commit f17da75754f8cc79b60e04b54a4bc99191e71ff3)
2007-10-10 14:48:45 -05:00
Stefan Metzmacher
3d8e7f9cf4 r21499: fill in the correct forest dns name
metze
(This used to be commit c736543b15571a7c0080ba09e51b9bcf76ecda52)
2007-10-10 14:48:45 -05:00
Brad Henry
f3ec806997 r21498: Putting the second parameter in quotes so that we accept spaces in the config file path.
(This used to be commit 7facfe9247e98421e998092482f52db05228ace6)
2007-10-10 14:48:45 -05:00
Andrew Bartlett
e4ca378b63 r21497: Pass more of the RPC-CRACKNAMES test by using the new search_options control.
Andrew Bartlett
(This used to be commit 47c8a059c4d90b7befde390d2d050f0d1934ecc1)
2007-10-10 14:48:45 -05:00
Andrew Bartlett
7dc7156bd7 r21496: A number of ldb control and LDAP changes, surrounding the
'phantom_root' flag in the search_options control

- Add in support for LDB controls to the js layer
- Test the behaviour
- Implement support for the 'phantom_root' flag in the partitions module
- Make the LDAP server set the 'phantom_root' flag in the search_options control
  - This replaces the global_catalog flag passed down as an opaque pointer
- Rework the string-format control parsing function into
  ldb_parse_control_strings(), returning errors by ldb_errorstring()
  method, rather than with printf to stderr
- Rework some of the ldb_control handling logic

Andrew Bartlett
(This used to be commit 2b3df7f38d7790358dbb4de1b8609bf794a351fb)
2007-10-10 14:48:44 -05:00
Brad Henry
81adf162a8 r21495: Pass the VM .vmx file path to wintest_2k3_dc.sh on the command line.
(This used to be commit 06bf94781e688c57f625161722e0a25af5a8d2e3)
2007-10-10 14:48:44 -05:00
Brad Henry
48b0dabdba r21494: Fix 'make wintest' to support command-line changes to 'vm-get-ip.pl' and the revertsnapshot() shell function.
Restructure existing tests to work with the recent build farm changes.
Added windows DC testing to 'make wintest'.
Some improvements and generalization to the way errors are handled.
(This used to be commit de9687404e802d7e7629c9d03f496d3c5bd30397)
2007-10-10 14:48:44 -05:00
Jelmer Vernooij
f487c24a79 r21493: Patch from Ronnie Sahlberg. From his email:
This patch changes the function name and signature that pidl generate
a call for when dissecting a policy handle to a new, more
PIDL-friendly function.

It also stores the procedure name in a new pinfo-> field so that
helpers that want to know the procedure name can finbd out easily.

The new PIDL helper function for policy handles use this new field and will show
   OpenHKU(<...>)
       opened in frame X
	   closed in frame Y
for the policy handle.
(This used to be commit 0c4fb484f0e515eb4055c58cd73ca798a8c46d69)
2007-10-10 14:48:44 -05:00