summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-17 10:02:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:01 -0500
commit0320233d15a21eff92c10824d5c4baa785e1579a (patch)
tree35b9f07beca19076bec57f1517b5b4aa415dc91c /source4/librpc
parentb47f9985ceca8589f0bf5d28565dd6079454258d (diff)
downloadsamba-0320233d15a21eff92c10824d5c4baa785e1579a.tar.gz
samba-0320233d15a21eff92c10824d5c4baa785e1579a.tar.bz2
samba-0320233d15a21eff92c10824d5c4baa785e1579a.zip
r1850: when we have a username and use sign or seal on a dcerpc over np
use dcerpc auth instead off smb auth metze (This used to be commit 6b429234968da7e51de95b6ede2afe3c1605debb)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index 242067fe78..21325659f7 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -457,7 +457,8 @@ static NTSTATUS dcerpc_pipe_connect_ncacn_np(struct dcerpc_pipe **p,
pipe_name += 6;
}
- if ((binding->flags & DCERPC_SCHANNEL_ANY) || !username || !username[0]) {
+ if ((binding->flags & (DCERPC_SCHANNEL_ANY | DCERPC_SIGN | DCERPC_SEAL))
+ || !username || !username[0]) {
status = smbcli_full_connection(&cli, lp_netbios_name(),
binding->host, NULL,
"ipc$", "?????",