git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
027b913
)
s4-libnet: Skip calling lsarpc functions over a wrong pipe.
author
Andreas Schneider
<asn@samba.org>
Thu, 5 Jul 2012 22:01:41 +0000
(
00:01
+0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Fri, 6 Jul 2012 08:00:58 +0000
(10:00 +0200)
source4/libnet/libnet_rpc.c
patch
|
blob
|
history
diff --git
a/source4/libnet/libnet_rpc.c
b/source4/libnet/libnet_rpc.c
index 8aacfc398a1d9c7be7f89d3f5ec59931b9bb5a67..349e1f86642042948e96e93361ea87072611754e 100644
(file)
--- a/
source4/libnet/libnet_rpc.c
+++ b/
source4/libnet/libnet_rpc.c
@@
-573,6
+573,15
@@
static void continue_dci_rpc_connect(struct composite_context *ctx)
s->attr.sec_qos = &s->qos;
+ if (s->lsa_pipe->binding->transport == NCACN_IP_TCP) {
+ /*
+ * Skip to creating the actual connection. We can't open a
+ * policy handle over tcpip.
+ */
+ continue_epm_map_binding_send(c);
+ return;
+ }
+
s->lsa_open_policy.in.attr = &s->attr;
s->lsa_open_policy.in.system_name = talloc_asprintf(c, "\\");
if (composite_nomem(s->lsa_open_policy.in.system_name, c)) return;