[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3473-gd46f648

Günther Deschner gd at samba.org
Thu Jul 31 13:26:36 GMT 2008


The branch, v3-3-test has been updated
       via  d46f648d2e25ad712138f02e5060288278f4c1b1 (commit)
      from  2ed4ce0bf1723e35a6c5dfa7f8fa58fb9c7ab469 (commit)

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


- Log -----------------------------------------------------------------
commit d46f648d2e25ad712138f02e5060288278f4c1b1
Author: Günther Deschner <gd at samba.org>
Date:   Thu Jul 31 15:14:14 2008 +0200

    netapi: when using NetApi functions forward net's kerberos setting.
    
    Guenther

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

Summary of changes:
 source/utils/net_dom.c |    3 +++
 source/utils/net_rpc.c |    6 ++++++
 2 files changed, 9 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/utils/net_dom.c b/source/utils/net_dom.c
index 6b8185a..f13b9c2 100644
--- a/source/utils/net_dom.c
+++ b/source/utils/net_dom.c
@@ -257,6 +257,9 @@ int net_dom(struct net_context *c, int argc, const char **argv)
 
 	libnetapi_set_username(c->netapi_ctx, c->opt_user_name);
 	libnetapi_set_password(c->netapi_ctx, c->opt_password);
+	if (c->opt_kerberos) {
+		libnetapi_set_use_kerberos(c->netapi_ctx);
+	}
 
 	return net_run_function(c, argc, argv, "net dom", func);
 }
diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c
index 730681c..347ddd0 100644
--- a/source/utils/net_rpc.c
+++ b/source/utils/net_rpc.c
@@ -1243,6 +1243,9 @@ int net_rpc_user(struct net_context *c, int argc, const char **argv)
 	}
 	libnetapi_set_username(c->netapi_ctx, c->opt_user_name);
 	libnetapi_set_password(c->netapi_ctx, c->opt_password);
+	if (c->opt_kerberos) {
+		libnetapi_set_use_kerberos(c->netapi_ctx);
+	}
 
 	if (argc == 0) {
 		if (c->display_usage) {
@@ -3062,6 +3065,9 @@ int net_rpc_group(struct net_context *c, int argc, const char **argv)
 	}
 	libnetapi_set_username(c->netapi_ctx, c->opt_user_name);
 	libnetapi_set_password(c->netapi_ctx, c->opt_password);
+	if (c->opt_kerberos) {
+		libnetapi_set_use_kerberos(c->netapi_ctx);
+	}
 
 	if (argc == 0) {
 		if (c->display_usage) {


-- 
Samba Shared Repository


More information about the samba-cvs mailing list