summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r21811: fixed a queueing error in the dcerpc client code. WHen theAndrew Tridgell2-19/+37
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-10r21535: - fixed a crash in the RAW-ACLS test. When a dcerpc_pipe is createdAndrew Tridgell4-9/+24
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-10r21520: fix the altercontext test... sorryStefan Metzmacher1-0/+2
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-10r21515: add some more PFC_FLAGS from the DCERPC spec, and fix some namesStefan Metzmacher3-6/+24
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-10r20326: always set the binding->target_hostname!Stefan Metzmacher1-5/+9
we crashed before trying ncacn_np: for frsrpc as frsrpc doesn't have a ncacn_np endpoint listed in the idl header and the endpoint mapping code was trying our smbcli lib with a NULL target_hostname -> called_name metze (This used to be commit ed49e4b1f87db483768dec36732b0c9765d1d4bc)
2007-10-10r20323: allow empty dcerpc reqeusts, this fixes the RPC-COUNTCALLS testStefan Metzmacher1-1/+1
metze (This used to be commit bbd086f2edf81028f2370be8ce0739144cd64b02)
2007-10-10r20094: this should be non-constStefan Metzmacher1-1/+1
metze (This used to be commit 1b6621814ba83724e05c0c2bea28d6eb295a3655)
2007-10-10r19844: Fix warnings and errors in epmapper IDL.Jelmer Vernooij1-1/+3
(This used to be commit 0221d5b6c4250a3a2c86c623c534996d7decb1f6)
2007-10-10r19676: Fix some more dependencies.Jelmer Vernooij1-1/+1
(This used to be commit 8768bec81f57131a0c9754e8121b345c0be4a5d0)
2007-10-10r19661: - add resolve stage to dcerpc connects over tcpStefan Metzmacher1-19/+44
- remove ipv6 support untill the resolve layer can give ipv6 addresses metze (This used to be commit 1e518c3e675e6952044bc0fdf2537be432c0c56f)
2007-10-10r19598: Ahead of a merge to current lorikeet-heimdal:Andrew Bartlett2-1/+2
Break up auth/auth.h not to include the world. Add credentials_krb5.h with the kerberos dependent prototypes. Andrew Bartlett (This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)
2007-10-10r19502: fixed the RPC-SECRETS test with kerberos. Andrew, can you look at thisAndrew Tridgell1-1/+14
as well? The server side change is needed to fix a valgrind error, which was possibly exploitable if the client sent deliberately bad data (This used to be commit e3c04cf165fe15739197b2713e78046399aa7653)
2007-10-10r19501: fix the hangs in the build farm in RPC-SECRETSAndrew Tridgell1-20/+6
a RPC-SECRETS on kerberos test still fails, but I'll let andrew take a look at that later :) (This used to be commit c260b175682c1cd95eaba958bfd9f054cb2547ea)
2007-10-10r19479: Remove more unused functions. These are handled via authenticationAndrew Bartlett2-52/+16
abstractions now. Andrew Bartlett (This used to be commit df31237c0cac0213c4f32fc491bcec2ea9f885c3)
2007-10-10r19478: Remove unused functions, and make static functions used only in thisAndrew Bartlett1-74/+16
file. Everybody calls this via the dcerpc_pipe_connect() or dcerpc_pipe_connect_b() functions. Andrew Bartlett (This used to be commit 5ee0fc035179c76f1362547ccc500f8677c8fa1f)
2007-10-10r19465: Rather than use the non-standard API for determining the signatureAndrew Bartlett1-2/+33
length, use the amount the wapped message expanded by. This works, because GSSAPI doesn't do AEAD (signing of headers), and so changing the signature length after the fact is valid. Andrew Bartlett (This used to be commit bd1e0f679c8f2b9755051b8d34114fa127a7cf26)
2007-10-10r19266: Add a target_hostname element to the binding struct. This allows usAndrew Bartlett4-31/+52
to perform a lookup once, resolve the name to an IP, while still communicating the full name to the lower layers, for kerberos etc. This fixes 'net samdump', which was failing due to the schannel target name being *smbserver. Andrew Bartlett (This used to be commit 0546f487f4cc99b5549dc1e457ea243d4bd66333)
2007-10-10r18716: put in a commented out useful hack for some RPC serversAndrew Tridgell1-0/+8
(This used to be commit fcf6d827199eac83fa424f2eb87a72ed8463e150)
2007-10-10r17993: as metze pointed out, the composite_error() already calls the asyncAndrew Tridgell1-2/+0
handler, so don't call composite_done() (This used to be commit d70ec77b00e542cc4b8c2bd7d27fe5940623abc5)
2007-10-10r17990: added timeout checking on dcerpc connection establishment. This shouldAndrew Tridgell1-2/+17
fix the problem on some build farm hosts where we were waiting forever for a connection to DRSUAPI to be made, so the next test will start. Next is to try and work out why the connection is timing out on some hosts. That is probably a server bug, but at least with this change we can see it. (This used to be commit 45fccc6d229168058a2a02fe5fe6f0bc259d6afe)
2007-10-10r17930: Merge noinclude branch:Jelmer Vernooij3-3/+2
* Move dlinklist.h, smb.h to subsystem-specific directories * Clean up ads.h and move what is left of it to dsdb/ (only place where it's used) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10r17337: make better usage of the composite apiStefan Metzmacher1-26/+28
and create an event context explicit metze (This used to be commit 02ec14e55390d7e21073d2c41a0c76b128b8b4e9)
2007-10-10r17336: make the logic a bit more easier to understand...Stefan Metzmacher1-55/+51
metze (This used to be commit 60afb466831da7a6946079ef0683cb6bff5edeb9)
2007-10-10r17329: - after a composite_continue() we need to call return;Stefan Metzmacher1-12/+11
- add some comments metze (This used to be commit adb4ba9db2d22277e24fa56bdd781f9628f1a076)
2007-10-10r17328: make better usage of the composite apiStefan Metzmacher1-111/+32
metze (This used to be commit ae0834c8ca6d7049261eb9843dfd519594235d59)
2007-10-10r17327: when the connect with the ipv6 socket was ok,Stefan Metzmacher1-1/+4
we need to inform the caller... metze (This used to be commit 40f10dfd60a6d572539c85cb2637ca920e5f1bca)
2007-10-10r17326: make better usage of the composite apiStefan Metzmacher2-23/+8
metze (This used to be commit 097c9f09f3b9b45f7b0386dfb02173c1515ed45c)
2007-10-10r17325: make better usage of the composite apiStefan Metzmacher1-90/+38
metze (This used to be commit 26a62458cd9da2579c1f607dc13189769b4724da)
2007-10-10r17324: make better usage of the composite apiStefan Metzmacher1-20/+19
metze (This used to be commit 0fa97777107f5f65f8b48976b90f1ae52f1fe2a5)
2007-10-10r17323: make better use of the composite api and fix the memoryStefan Metzmacher1-52/+24
hierachy metze (This used to be commit a0aa61a8d583ef626d082c47377c87008874e235)
2007-10-10r17322: make better use of the composite apiStefan Metzmacher1-47/+22
metze (This used to be commit 5e66bf463b0998b2981380f1250b60b723595ac4)
2007-10-10r17321: give better error codesStefan Metzmacher1-2/+2
metze (This used to be commit 8e87b79ce73931376b5852bc734f982f57aad4f3)
2007-10-10r17320: - print the debug message before the composite context get received ↵Stefan Metzmacher1-7/+6
by the caller - steal pipe2 to the state structure so we don't need to take about freeing is later metze (This used to be commit 4ba50fc29ec1949bb1b035ae3f2dc5f877ce581f)
2007-10-10r15854: more talloc_set_destructor() typesafe fixesAndrew Tridgell1-4/+2
(This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
2007-10-10r15812: Explicitly cast to unsigned int.Jelmer Vernooij1-3/+3
(This used to be commit c910a3f9c8c657b290bc03a47a6b4cba20f02a55)
2007-10-10r15741: move smb2 request structures into the main smb request structsStefan Metzmacher1-11/+11
as new levels metze (This used to be commit 91806353174704857dfcc15a730af7232cfde660)
2007-10-10r15524: fix a problem with rpc faults from bind and alter contextAndrew Tridgell2-91/+96
requests. The fix involves using the same packet queue mechanism for these requests as normal requests, which also simplifies the code somewhat (This used to be commit 2e7f5add13da3061d2f2e2869d10df06b3a98f40)
2007-10-10r15504: Revert -r 15500 and -r 15503 until I'm awake, and can get my headAndrew Bartlett3-83/+113
around the mess that is composite functions... Async might be all the rage, but it's bloody painful to debug. Andrew Bartlett (This used to be commit 756e1dad7ce54b83f8170db3434bfcfc4afe7e65)
2007-10-10r15503: I may shortly have to revert all of this, but be clearer about how weAndrew Bartlett1-14/+13
handle the NTLMSSP and wrong password fallbacks. Andrew Bartlett (This used to be commit dbf51ea985e0b300631e2070e91d4d901c784c44)
2007-10-10r15500: Add support for interactive prompting on bad passwords to the RPC ↵Andrew Bartlett3-107/+78
libraries. This support requires that the bind_ack and alter_ack recv functions also be send the DCE/RPC fault. This would be best done by having the ack run as a normal RPC reply callback, but this isn't easily possible for now. Andrew Bartlett (This used to be commit be6dde22fe728d64d47875699d3421c6d8d872a4)
2007-10-10r15482: Don't shadow the global function pipe() with a local variable name.Andrew Bartlett1-10/+8
Andrew Bartlett (This used to be commit ed4ab63c2dd811d07594ba397ed22f9d02eeb63a)
2007-10-10r15440: Formatting.Rafal Szczesniak1-3/+2
rafal (This used to be commit b4c378302bd56e7bbdce6a20b5623d8949d3ecef)
2007-10-10r15426: Implement SPNEGO as the default RPC authentication mechanism. WhereAndrew Bartlett3-38/+178
this isn't supported, fallback to NTLM. Also, where we get a failure as 'logon failure', try and do a '3 tries' for the password, like we already do for CIFS. (Incomplete: needs a mapping between RPC errors and the logon failure NTSTATUS). Because we don't yet support Kerberos sign/seal to win2k3 SP1 for DCE/RPC, disable this (causing SPNEGO to negotiate NTLM) when kerberos isn't demanded. Andrew Bartlett (This used to be commit b3212d1fb91b26c1d326a289560106dffe1d2e80)
2007-10-10r15021: Couple more comments and fixes in spirit of utility functionsRafal Szczesniak1-32/+49
for composite interface. rafal (This used to be commit 905ca5a3ecd1c4ed5b9f206cdc855d0ddb92a07a)
2007-10-10r14962: fixed a valgrind errorAndrew Tridgell1-2/+4
(This used to be commit 5a8d13c4e67974d198d71823774950483ec42088)
2007-10-10r14735: Use dcerpc_syntax_id rather then seperate GUID + if_version everywhereJelmer Vernooij4-38/+32
(This used to be commit a316b33057f3ec8532677980e093cd327d33f257)
2007-10-10r14715: Correct the definition of the DCE/RPC bind_nak, per the OpenGroup spec.Andrew Bartlett1-0/+7
This allows us to correctly parse the bind_nak from NT4, when we use an invalid auth type (the unsupported SPNEGO).. Andrew Bartlett (This used to be commit ce0c7f86fd5eeeacad885d732b66c65ac9103ace)
2007-10-10r14714: On DCE/RPC, we need the name of the remote server used on the socket,Andrew Bartlett5-18/+51
for Kerberos. It must be the full name contacted, not the 'called name' we might want to use for \\server things, so add another function. Andrew Bartlett (This used to be commit 6d57d1dbb76e7d1ca2fd4f1a6c0bacfa7a189e2b)
2007-10-10r14542: Remove librpc, libndr and libnbt from includes.hJelmer Vernooij9-1/+10
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10r14488: Install more headers.Jelmer Vernooij1-0/+1
Generate different #include lines in pidl depending on whether we're building inside or outside of the Samba tree (useful for 3rd-party projects). (This used to be commit 0c188833154c1fe565cb1735909e408a4a1a6049)