summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-24 10:34:16 +0200
committerGünther Deschner <gd@samba.org>2008-06-24 23:45:09 +0200
commita8332b91ef461309121a909a59b1c1b46d8065c9 (patch)
tree961ec92d4fd4c6b199ceec265a530458d1e12826 /source3/utils/net_rpc.c
parent9a5fc5b5d3d9ec334a35cadb49bf69c36076dcea (diff)
downloadsamba-a8332b91ef461309121a909a59b1c1b46d8065c9.tar.gz
samba-a8332b91ef461309121a909a59b1c1b46d8065c9.tar.bz2
samba-a8332b91ef461309121a909a59b1c1b46d8065c9.zip
net: add basic support for sealed RPC connections (using NET_FLAGS_SEAL).
Guenther (This used to be commit 7541a0103ad22000e94ffc6d057ffd5d33d1a930)
Diffstat (limited to 'source3/utils/net_rpc.c')
-rw-r--r--source3/utils/net_rpc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 19566bdf09..08b68f012a 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -165,7 +165,16 @@ int run_rpc_command(struct net_context *c,
return -1;
}
} else {
- pipe_hnd = cli_rpc_pipe_open_noauth(cli, pipe_idx, &nt_status);
+ if (conn_flags & NET_FLAGS_SEAL) {
+ pipe_hnd = cli_rpc_pipe_open_ntlmssp(cli, pipe_idx,
+ PIPE_AUTH_LEVEL_PRIVACY,
+ lp_workgroup(),
+ c->opt_user_name,
+ c->opt_password,
+ &nt_status);
+ } else {
+ pipe_hnd = cli_rpc_pipe_open_noauth(cli, pipe_idx, &nt_status);
+ }
if (!pipe_hnd) {
DEBUG(0, ("Could not initialise pipe %s. Error was %s\n",
cli_get_pipe_name(pipe_idx),