[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-2719-gf88910c

Günther Deschner gd at samba.org
Tue Mar 4 18:09:25 GMT 2008


The branch, v3-2-test has been updated
       via  f88910c1e5186737da4eda5a7a396c3238fc6775 (commit)
      from  8e601e2365f50e582de442daa1559f828bda3e89 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit f88910c1e5186737da4eda5a7a396c3238fc6775
Author: Günther Deschner <gd at samba.org>
Date:   Tue Mar 4 19:04:54 2008 +0100

    Add secure_channel_type to libnetjoin.
    
    Guenther

-----------------------------------------------------------------------

Summary of changes:
 source/libnet/libnet_join.c             |    4 +++-
 source/librpc/gen_ndr/libnet_join.h     |    3 +++
 source/librpc/gen_ndr/ndr_libnet_join.c |    1 +
 source/librpc/idl/libnet_join.idl       |    2 ++
 4 files changed, 9 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libnet/libnet_join.c b/source/libnet/libnet_join.c
index 4f9e4c1..9bed346 100644
--- a/source/libnet/libnet_join.c
+++ b/source/libnet/libnet_join.c
@@ -630,7 +630,7 @@ static bool libnet_join_joindomain_store_secrets(TALLOC_CTX *mem_ctx,
 
 	if (!secrets_store_machine_password(r->in.machine_password,
 					    r->out.netbios_domain_name,
-					    SEC_CHAN_WKSTA))
+					    r->in.secure_channel_type))
 	{
 		DEBUG(1,("Failed to save machine password\n"));
 		return false;
@@ -1412,6 +1412,8 @@ WERROR libnet_init_JoinCtx(TALLOC_CTX *mem_ctx,
 	ctx->in.machine_name = talloc_strdup(mem_ctx, global_myname());
 	W_ERROR_HAVE_NO_MEMORY(ctx->in.machine_name);
 
+	ctx->in.secure_channel_type = SEC_CHAN_WKSTA;
+
 	*r = ctx;
 
 	return WERR_OK;
diff --git a/source/librpc/gen_ndr/libnet_join.h b/source/librpc/gen_ndr/libnet_join.h
index 8dbadcf..0415f03 100644
--- a/source/librpc/gen_ndr/libnet_join.h
+++ b/source/librpc/gen_ndr/libnet_join.h
@@ -7,6 +7,8 @@
 #ifndef _HEADER_libnetjoin
 #define _HEADER_libnetjoin
 
+enum netr_SchannelType;
+
 
 struct libnet_JoinCtx {
 	struct {
@@ -25,6 +27,7 @@ struct libnet_JoinCtx {
 		uint8_t modify_config;
 		struct ads_struct *ads;/* [ref] */
 		uint8_t debug;
+		enum netr_SchannelType secure_channel_type;
 	} in;
 
 	struct {
diff --git a/source/librpc/gen_ndr/ndr_libnet_join.c b/source/librpc/gen_ndr/ndr_libnet_join.c
index 6e65d03..ac8f7ee 100644
--- a/source/librpc/gen_ndr/ndr_libnet_join.c
+++ b/source/librpc/gen_ndr/ndr_libnet_join.c
@@ -36,6 +36,7 @@ _PUBLIC_ void ndr_print_libnet_JoinCtx(struct ndr_print *ndr, const char *name,
 		ndr_print_ads_struct(ndr, "ads", r->in.ads);
 		ndr->depth--;
 		ndr_print_uint8(ndr, "debug", r->in.debug);
+		ndr_print_netr_SchannelType(ndr, "secure_channel_type", r->in.secure_channel_type);
 		ndr->depth--;
 	}
 	if (flags & NDR_OUT) {
diff --git a/source/librpc/idl/libnet_join.idl b/source/librpc/idl/libnet_join.idl
index 65d17c9..3975d83 100644
--- a/source/librpc/idl/libnet_join.idl
+++ b/source/librpc/idl/libnet_join.idl
@@ -12,6 +12,7 @@ import "wkssvc.idl", "security.idl";
 interface libnetjoin
 {
 	typedef bitmap wkssvc_joinflags wkssvc_joinflags;
+	typedef enum netr_SchannelType netr_SchannelType;
 
 	[nopush,nopull,noopnum] WERROR libnet_JoinCtx(
 		[in] string dc_name,
@@ -29,6 +30,7 @@ interface libnetjoin
 		[in] boolean8 modify_config,
 		[in] ads_struct *ads,
 		[in] boolean8 debug,
+		[in] netr_SchannelType secure_channel_type,
 		[out] string account_name,
 		[out] string netbios_domain_name,
 		[out] string dns_domain_name,


-- 
Samba Shared Repository


More information about the samba-cvs mailing list