diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-30 09:23:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:04 -0500 |
commit | c2cf02c116e07553d0c5bc2eb66be2e1e0135efc (patch) | |
tree | 864c41118f7d5b78da24ac802c32ea1d819366ca /source4/librpc/rpc/dcerpc_util.c | |
parent | d93636c29e4e0930e91c53b367145a0c88db7de1 (diff) | |
download | samba-c2cf02c116e07553d0c5bc2eb66be2e1e0135efc.tar.gz samba-c2cf02c116e07553d0c5bc2eb66be2e1e0135efc.tar.bz2 samba-c2cf02c116e07553d0c5bc2eb66be2e1e0135efc.zip |
r3388: when doing schannel use a anonymous session setup (as the machine acct
isn't allowed to login on a share)
(This used to be commit 8c0be60d8d59863f0bcdd17012dce923c139ce09)
Diffstat (limited to 'source4/librpc/rpc/dcerpc_util.c')
-rw-r--r-- | source4/librpc/rpc/dcerpc_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index fc09382430..960fe7aea8 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -778,7 +778,8 @@ static NTSTATUS dcerpc_pipe_connect_ncacn_np(struct dcerpc_pipe **p, pipe_name = talloc_asprintf(mem_ctx, "\\%s", pipe_name); } - if (!username || !username[0]) { + if (!username || !username[0] || + (binding->flags & DCERPC_SCHANNEL_ANY)) { status = smbcli_full_connection(NULL, &cli, lp_netbios_name(), binding->host, NULL, "ipc$", "?????", |