[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-2979-g7541a01
Günther Deschner
gd at samba.org
Tue Jun 24 21:48:12 GMT 2008
The branch, v3-3-test has been updated
via 7541a0103ad22000e94ffc6d057ffd5d33d1a930 (commit)
from 3b6352a60e6683963af1641786f9c230d49ebfb5 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit 7541a0103ad22000e94ffc6d057ffd5d33d1a930
Author: Günther Deschner <gd at samba.org>
Date: Tue Jun 24 10:34:16 2008 +0200
net: add basic support for sealed RPC connections (using NET_FLAGS_SEAL).
Guenther
-----------------------------------------------------------------------
Summary of changes:
source/utils/net.h | 2 ++
source/utils/net_rpc.c | 11 ++++++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/utils/net.h b/source/utils/net.h
index aa4f3db..941172a 100644
--- a/source/utils/net.h
+++ b/source/utils/net.h
@@ -141,6 +141,8 @@ enum netdom_domain_t { ND_TYPE_NT4, ND_TYPE_AD };
#define NET_FLAGS_PDC 0x00000008 /* PDC only */
#define NET_FLAGS_ANONYMOUS 0x00000010 /* use an anonymous connection */
#define NET_FLAGS_NO_PIPE 0x00000020 /* don't open an RPC pipe */
+#define NET_FLAGS_SIGN 0x00000040 /* sign RPC connection */
+#define NET_FLAGS_SEAL 0x00000080 /* seal RPC connection */
/* net share operation modes */
#define NET_MODE_SHARE_MIGRATE 1
diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c
index 19566bd..08b68f0 100644
--- a/source/utils/net_rpc.c
+++ b/source/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),
--
Samba Shared Repository
More information about the samba-cvs
mailing list