1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

1654 Commits

Author SHA1 Message Date
Günther Deschner
d875b7d620 r23129: Merge from 3_0:
* netr_DsRGetDCName_flags, netr_DsRGetDCNameInfo_AddressType and netr_DsR_DcFlags
* the mask in netr_DsRGetDCNameEx2 turns out to be samr_AcctFlags

Guenther
(This used to be commit 9cdd6d9782a7a70f01d748228beb80c454d1468b)
2007-10-10 14:52:52 -05:00
Andrew Tridgell
7bb939b1cb r23030: finally fixed up our asn1 code to use better memory allocation. This
should allow us to fix some long standing memory leaks.
(This used to be commit 3db49c2ec9968221c1361785b94061046ecd159d)
2007-10-10 14:52:42 -05:00
Stefan Metzmacher
40cd2d7780 r22944: fix bug #4618:
rename private -> private_data

metze
(This used to be commit 58551f2f28fce8f1fcd04736c47ecd7458f32ea2)
2007-10-10 14:52:30 -05:00
Andrew Bartlett
8861c4a68e r22838: Add in an explority test for what QFSINFO operations are valid on IPC$
It seems most opertaions are supported, but that the values are not
consistant.  I think these are very much hand-hacked stubs, which is
what they will be on Samba4 too.

I'll need to add some more 'don't fail for...' hacks before this
passes against Win2k3.

Andrew Bartlett
(This used to be commit dcb858d0c716b23be6c5d36b4aa6f155582ada63)
2007-10-10 14:52:23 -05:00
Stefan Metzmacher
9644ced731 r22683: fix the logic for skipping the pipe_dead()
code on the 2nd run.

thanks volker for finding this!

metze
(This used to be commit 00ccc217da62a7f4125f28e77030ae526d573f3a)
2007-10-10 14:52:01 -05:00
Stefan Metzmacher
2c78837e34 r22619: fix pidl warnings
metze
(This used to be commit 4105e3db317b124bb9c708d508895756c9c0c5a3)
2007-10-10 14:51:53 -05:00
Andrew Bartlett
fcdb99f7ce r22582: Cleanups towards making winbind work again. We still have a long way to go, as this has bitrotted over the past months.
This change in particular catches winbind up with the next
composite_create() function.

We also needed to remove an unused flags field, and fill in the lm
response.

Andrew Bartlett
(This used to be commit bd26e4ffaf1c060fdc3aae28fd4393e83c5a83ea)
2007-10-10 14:51:47 -05:00
Stefan Metzmacher
9c6c917571 r22534: don't remove socket and fd_event before we told the
packet layer.

also fix double free (left over from cut-n-paste)

metze
(This used to be commit a26db7e694def6206345222a240d160fac17dd7d)
2007-10-10 14:51:38 -05:00
Stefan Metzmacher
42b133748f r22528: remember that the connection was marked dead and don't
allow sending packet over the broken connection,
as we would segfault...

metze
(This used to be commit 738b2c74117bdbef3b314c37f01f2f73b7a80685)
2007-10-10 14:51:38 -05:00
Stefan Metzmacher
7236bcf39d r22515: only steal pipe on success
metze
(This used to be commit acfaba06f51184df5f1e99f0acd6fd0bd5f34afc)
2007-10-10 14:51:35 -05:00
Stefan Metzmacher
f66bd1ae54 r22486: add a flag to ignore timeouts of a request and don't close
the connection on timeout

metze
(This used to be commit 6b23ab1fd265e2a92456701fb02bd1838c098874)
2007-10-10 14:51:32 -05:00
Stefan Metzmacher
d7b0175249 r22485: don't crash when the main dcerpc code haven't setup
transport.recv_data yet

also return always a usefull error

metze
(This used to be commit 0a8b4c328dfac972186564d2a4e1757d5135ec47)
2007-10-10 14:51:32 -05:00
Stefan Metzmacher
1912124dbf r22470: merge handling of broken connections from wins replication client code
to the rpc client code

we need to always ask for read events on the socket otherwise we never
get the connection error reported.

shutdown the transport when a request timeout.

metze
(This used to be commit 3403c0cb15e08ec838b0bc834f941051fb94d124)
2007-10-10 14:51:29 -05:00
Stefan Metzmacher
344cde462e r22406: this dependencies should also be private
metze
(This used to be commit 7f07895cac3e933b39f81bf67812834352184af0)
2007-10-10 14:51:15 -05:00
Stefan Metzmacher
4d9a158089 r22386: another unused include
metze
(This used to be commit 3561258866c4844b0223cd28a5073953e48aa7e5)
2007-10-10 14:51:12 -05:00
Jelmer Vernooij
a60ab76694 r22339: Run some more tests.
(This used to be commit 1b73e6a776a3ef478718f656523d125d28589f5c)
2007-10-10 14:51:06 -05:00
Stefan Metzmacher
ffcf96b46d r21928: fix the interface uuid of wzcsvc.
see http://www.hsc.fr/ressources/articles/win_net_srv/msrpc_wzcsvc.html
and http://www.hsc.fr/ressources/articles/win_net_srv/msrpc_scheduler.html

thanks to jbm for the report!

metze
(This used to be commit 8bc1316741e59da100aee434617136136fdedb3f)
2007-10-10 14:49:38 -05:00
Jelmer Vernooij
00d74b84e9 r21837: Make dcerpc_mgmt a separate library again, as the linker leaves it out when it's part of dcerpc.
(This used to be commit dc4428553ec2749ef1ba24fbffeaabf0af6bf364)
2007-10-10 14:49:35 -05:00
Jelmer Vernooij
6bcbdc2757 r21829: Integrate mgmt in libdcerpc. We have enough libraries as it is and mgmt is part of the DCE/RPC standard.
(This used to be commit b0d05727b4e2688f182ae3427e3215b22562ae6c)
2007-10-10 14:49:33 -05:00
Stefan Metzmacher
d0f989628a r21817: give fields a meaning
metze
(This used to be commit 521355b57b74dbdccc6ae15738345e1d989ce262)
2007-10-10 14:49:31 -05:00
Andrew Tridgell
c8cfbfdc8b r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure
(This used to be commit 37aa32e2fe4829ec467c606cfcc7485508a2682c)
2007-10-10 14:49:31 -05:00
Andrew Tridgell
dd0b2572eb r21812: fixed an integer overflow error in the ndr push code.
This needs to be fixed in Samba3 as well. It might be exploitable (I
haven't confirmed one way or the other), so I think this should be
fixed for 3.0.25
(This used to be commit 4766175ff2d0de8af92046e29280c7893ac8fe1f)
2007-10-10 14:49:31 -05:00
Andrew Tridgell
f85bb4c1c3 r21811: fixed a queueing error in the dcerpc client code. WHen the
dcerpc_ship_next_request() logic was added the penidng queue was split
in two, but we also needed to update the code which removes requests
from the queue to know about the two queues. Following the pattern
used in other client libs, I based which queue to remove from on
req->state, and added a new state RPC_REQUEST_QUEUED. This fixes a
crash that happens when rpc requests time out.

This patch also fixes the handling of timed out bind requests, and the
talloc_reference handling in dcerpc_ndr_request_recv().
(This used to be commit f51a129b52d53059cc1567538f986400c0ea5602)
2007-10-10 14:49:31 -05:00
Andrew Bartlett
b6b98f6300 r21805: Add PAC_TYPE_CONSTRAINED_DELEGATION to the PAC_TYPE enum.
(This used to be commit 6fb3b4be10d204bec61a1fddd1c50c1c24d52ebf)
2007-10-10 14:49:29 -05:00
Stefan Metzmacher
3e697d5110 r21773: fix typo orginating -> originating
and use the struct member names in all cases

metze
(This used to be commit c543ee57454d006c545e3e9e20c9ac0114081d3d)
2007-10-10 14:49:24 -05:00
Jelmer Vernooij
9ca1a3c186 r21662: More samr tests
(This used to be commit 2eae55819ec51dc53aa8bdea7b777cb2e8444cea)
2007-10-10 14:49:06 -05:00
Jelmer Vernooij
648fe6610e r21660: Add another test
(This used to be commit 0b1e793ed56e3c4c592d8baaf3139e42b01b942b)
2007-10-10 14:49:06 -05:00
Jelmer Vernooij
1afda7bdde r21656: Move tests a bit closer to the things they test, should make syncing with samba3 easier.
(This used to be commit 4d755fb5d7adedd1dd8bad917b921324411bfd59)
2007-10-10 14:49:05 -05:00
Jelmer Vernooij
04fed31e1a r21653: Add two more tdr tests.
(This used to be commit cc40e3acd95aecea481a65e936d311b815c6e9ae)
2007-10-10 14:49:04 -05:00
Jelmer Vernooij
678c401d3e r21650: Update ndrdump to work in samba3
(This used to be commit 10295d9bdd035c008fa7dafef0426c1e86250ac9)
2007-10-10 14:49:04 -05:00
Stefan Metzmacher
9c9ec64518 r21595: add a constant and some comments
metze
(This used to be commit b8af925da9c515f3803aa813ef5e4cded892a525)
2007-10-10 14:49:03 -05:00
Jelmer Vernooij
5ba8169109 r21584: Support for tagged types has landed!
It's now possible to use "struct foo" without a typedef in IDL files.

echo_info4 is the first type that's been converted.
(This used to be commit 3ac68e858df9b53cf5e0a84741916214a53b3121)
2007-10-10 14:49:00 -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
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
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
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
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
Jelmer Vernooij
19afd52444 r21489: Remove accidently committed test idl.
(This used to be commit 268915961d0b2766eb9a4e106fdf5cfdf68de07e)
2007-10-10 14:48:43 -05:00
Jelmer Vernooij
a074602362 r21487: Fix warning when using anonymous types, initial work on nested type support in ejs.
(This used to be commit a396c5de12cd958fe0457fa5372e539132ad7ed9)
2007-10-10 14:48:42 -05:00
Jelmer Vernooij
9f420a6c6d r21477: Remove unnecessary properties.
(This used to be commit 17d1da19474de3c501b532aec74b1fb93ed3ae3f)
2007-10-10 14:48:41 -05:00
Stefan Metzmacher
c005b91adb r21464: add parsing code for the Primary:WDigest blob
the hashes are

MD5("user:realm:password") which a lot of user and realm combinations

see:
http://fresh.t-systems-sfr.com/unix/src/www/httpauth-0.6.tar.gz:a/httpauth-0.6/tools/mkha1.c

metze
(This used to be commit f764941af6a13b59ea604b4b5c275da802b3e061)
2007-10-10 14:48:39 -05:00
Stefan Metzmacher
ad7e7249b6 r21441: create a union for the PrimaryKerberosBlob content
so that ndr_pull will fail if version isn't 3 and we notice
if the format changes...

metze
(This used to be commit 91f7a094cfd04405c224b9579146d814cba507b3)
2007-10-10 14:48:35 -05:00
Jelmer Vernooij
0515f728e6 r21433: Get rid of the COM support code - it's not used and unmaintained. We can
always bring it back if we need to. This code was getting in the way while
refactoring.

Add some tests for TDR.

Get rid of typedef in lib/registry/tdr_regf.idl and fix the
TDR code to be able to deal with it.
(This used to be commit 1ad0f99a439f0d52a735b391bf9900d50171aca5)
2007-10-10 14:48:33 -05:00
Jelmer Vernooij
069f0cc15b r21429: Fix the build.
(This used to be commit 88fbf9af24a346d3d99af32b8574507b0590846a)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
ab975d9d7f r21426: Add more spoolss tests.
(This used to be commit 8b31fba826e5e76031979755f9682a8da5c59148)
2007-10-10 14:48:31 -05:00
Jelmer Vernooij
3e208b3f80 r21425: Add ReplyClosePrinter.
(This used to be commit 745d0eae1a0f681f6a08a7cc259834ddbb5fa023)
2007-10-10 14:48:31 -05:00
Jelmer Vernooij
2503fe2273 r21424: Add FindClosePrinterNotify.
(This used to be commit 0ed195f45fed12905278ba60eabe02a11b59eb90)
2007-10-10 14:48:31 -05:00
Jelmer Vernooij
4b3f75f3a7 r21422: Add IDL for EnumPrinterKey and RemoteFindNextPrinterChangeNotifyEx.
(This used to be commit 883df28d6ebb1993add95174fe2694154995354b)
2007-10-10 14:48:30 -05:00
Jelmer Vernooij
34659685e1 r21415: Add tests for spoolss and drsuapi. Still need to add validators.
(This used to be commit 61cb52b65b9be2fd09a5c5a02536600c0ac500f7)
2007-10-10 14:48:29 -05:00
Jelmer Vernooij
5d6ed2b367 r21414: Fill in IDL for ReplyOpenPrinter.
(This used to be commit 9e6d43c45cec24a391d8134a9c177461aabb3e6c)
2007-10-10 14:48:28 -05:00