1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-23 20:23:50 +03:00
Commit Graph

1657 Commits

Author SHA1 Message Date
Günther Deschner
9c2b964233 r23240: Fill in netr_DsrGetDcSiteCoverageW.
Guenther
2007-10-10 14:53:06 -05:00
Günther Deschner
cf953d0481 r23239: Fill in drsuapi_QuerySitesByCost.
Guenther
2007-10-10 14:53:06 -05:00
Andrew Bartlett
8b97ca2a87 r23134: Set the event context onto the cli_credentials.
Andrew Bartlett
2007-10-10 14:52:53 -05:00
Günther Deschner
9cdd6d9782 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
2007-10-10 14:52:52 -05:00
Andrew Tridgell
3db49c2ec9 r23030: finally fixed up our asn1 code to use better memory allocation. This
should allow us to fix some long standing memory leaks.
2007-10-10 14:52:42 -05:00
Stefan Metzmacher
58551f2f28 r22944: fix bug #4618:
rename private -> private_data

metze
2007-10-10 14:52:30 -05:00
Andrew Bartlett
dcb858d0c7 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
2007-10-10 14:52:23 -05:00
Stefan Metzmacher
00ccc217da r22683: fix the logic for skipping the pipe_dead()
code on the 2nd run.

thanks volker for finding this!

metze
2007-10-10 14:52:01 -05:00
Stefan Metzmacher
4105e3db31 r22619: fix pidl warnings
metze
2007-10-10 14:51:53 -05:00
Andrew Bartlett
bd26e4ffaf 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
2007-10-10 14:51:47 -05:00
Stefan Metzmacher
a26db7e694 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
2007-10-10 14:51:38 -05:00
Stefan Metzmacher
738b2c7411 r22528: remember that the connection was marked dead and don't
allow sending packet over the broken connection,
as we would segfault...

metze
2007-10-10 14:51:38 -05:00
Stefan Metzmacher
acfaba06f5 r22515: only steal pipe on success
metze
2007-10-10 14:51:35 -05:00
Stefan Metzmacher
6b23ab1fd2 r22486: add a flag to ignore timeouts of a request and don't close
the connection on timeout

metze
2007-10-10 14:51:32 -05:00
Stefan Metzmacher
0a8b4c328d r22485: don't crash when the main dcerpc code haven't setup
transport.recv_data yet

also return always a usefull error

metze
2007-10-10 14:51:32 -05:00
Stefan Metzmacher
3403c0cb15 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
2007-10-10 14:51:29 -05:00
Stefan Metzmacher
7f07895cac r22406: this dependencies should also be private
metze
2007-10-10 14:51:15 -05:00
Stefan Metzmacher
3561258866 r22386: another unused include
metze
2007-10-10 14:51:12 -05:00
Jelmer Vernooij
1b73e6a776 r22339: Run some more tests. 2007-10-10 14:51:06 -05:00
Stefan Metzmacher
8bc1316741 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
2007-10-10 14:49:38 -05:00
Jelmer Vernooij
dc4428553e r21837: Make dcerpc_mgmt a separate library again, as the linker leaves it out when it's part of dcerpc. 2007-10-10 14:49:35 -05:00
Jelmer Vernooij
b0d05727b4 r21829: Integrate mgmt in libdcerpc. We have enough libraries as it is and mgmt is part of the DCE/RPC standard. 2007-10-10 14:49:33 -05:00
Stefan Metzmacher
521355b57b r21817: give fields a meaning
metze
2007-10-10 14:49:31 -05:00
Andrew Tridgell
37aa32e2fe r21814: use ndr_push_error in the ndr layer, not just a NTSTATUS failure 2007-10-10 14:49:31 -05:00
Andrew Tridgell
4766175ff2 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
2007-10-10 14:49:31 -05:00
Andrew Tridgell
f51a129b52 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().
2007-10-10 14:49:31 -05:00
Andrew Bartlett
6fb3b4be10 r21805: Add PAC_TYPE_CONSTRAINED_DELEGATION to the PAC_TYPE enum. 2007-10-10 14:49:29 -05:00
Stefan Metzmacher
c543ee5745 r21773: fix typo orginating -> originating
and use the struct member names in all cases

metze
2007-10-10 14:49:24 -05:00
Jelmer Vernooij
2eae55819e r21662: More samr tests 2007-10-10 14:49:06 -05:00
Jelmer Vernooij
0b1e793ed5 r21660: Add another test 2007-10-10 14:49:06 -05:00
Jelmer Vernooij
4d755fb5d7 r21656: Move tests a bit closer to the things they test, should make syncing with samba3 easier. 2007-10-10 14:49:05 -05:00
Jelmer Vernooij
cc40e3acd9 r21653: Add two more tdr tests. 2007-10-10 14:49:04 -05:00
Jelmer Vernooij
10295d9bdd r21650: Update ndrdump to work in samba3 2007-10-10 14:49:04 -05:00
Stefan Metzmacher
b8af925da9 r21595: add a constant and some comments
metze
2007-10-10 14:49:03 -05:00
Jelmer Vernooij
3ac68e858d 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.
2007-10-10 14:49:00 -05:00
Jelmer Vernooij
e3cc94e7d1 r21564: Move ndrdump to librpc/tools. 2007-10-10 14:48:57 -05:00
Jelmer Vernooij
7f451cbb8d r21541: Export mgmt, samr and atsvc for use in samba-gtk. 2007-10-10 14:48:55 -05:00
Andrew Tridgell
d8875c286d 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
2007-10-10 14:48:54 -05:00
Stefan Metzmacher
cec74f3528 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
2007-10-10 14:48:49 -05:00
Stefan Metzmacher
2d8c85397d 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
2007-10-10 14:48:48 -05:00
Jelmer Vernooij
268915961d r21489: Remove accidently committed test idl. 2007-10-10 14:48:43 -05:00
Jelmer Vernooij
a396c5de12 r21487: Fix warning when using anonymous types, initial work on nested type support in ejs. 2007-10-10 14:48:42 -05:00
Jelmer Vernooij
17d1da1947 r21477: Remove unnecessary properties. 2007-10-10 14:48:41 -05:00
Stefan Metzmacher
f764941af6 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
2007-10-10 14:48:39 -05:00
Stefan Metzmacher
91f7a094cf 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
2007-10-10 14:48:35 -05:00
Jelmer Vernooij
1ad0f99a43 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.
2007-10-10 14:48:33 -05:00
Jelmer Vernooij
88fbf9af24 r21429: Fix the build. 2007-10-10 14:48:32 -05:00
Jelmer Vernooij
8b31fba826 r21426: Add more spoolss tests. 2007-10-10 14:48:31 -05:00
Jelmer Vernooij
745d0eae1a r21425: Add ReplyClosePrinter. 2007-10-10 14:48:31 -05:00
Jelmer Vernooij
0ed195f45f r21424: Add FindClosePrinterNotify. 2007-10-10 14:48:31 -05:00