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

Günther Deschner gd at samba.org
Tue Apr 8 17:45:00 GMT 2008


The branch, v3-2-test has been updated
       via  9cfce2229508c2145c3527074ac76520544e5d25 (commit)
      from  0216e55fa87a14fc45c320268f0511eb6638460b (commit)

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


- Log -----------------------------------------------------------------
commit 9cfce2229508c2145c3527074ac76520544e5d25
Author: Günther Deschner <gd at samba.org>
Date:   Tue Apr 8 19:42:26 2008 +0200

    Try to use kerberos in libnetapi.
    
    Guenther

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

Summary of changes:
 source/lib/netapi/getdc.c      |   15 ++++++++++++---
 source/lib/netapi/joindomain.c |   16 ++++++++++++----
 source/lib/netapi/serverinfo.c |    8 ++++++--
 3 files changed, 30 insertions(+), 9 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/netapi/getdc.c b/source/lib/netapi/getdc.c
index 9ad935e..a865474 100644
--- a/source/lib/netapi/getdc.c
+++ b/source/lib/netapi/getdc.c
@@ -50,7 +50,10 @@ WERROR NetGetDCName_r(struct libnetapi_ctx *ctx,
 				     ctx->username,
 				     ctx->workgroup,
 				     ctx->password,
-				     0, Undefined, NULL);
+				     CLI_FULL_CONNECTION_USE_KERBEROS |
+				     CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS |
+				     CLI_FULL_CONNECTION_ANONYMOUS_FALLBACK,
+				     Undefined, NULL);
 
 	if (!NT_STATUS_IS_OK(status)) {
 		werr = ntstatus_to_werror(status);
@@ -103,7 +106,10 @@ WERROR NetGetAnyDCName_r(struct libnetapi_ctx *ctx,
 				     ctx->username,
 				     ctx->workgroup,
 				     ctx->password,
-				     0, Undefined, NULL);
+				     CLI_FULL_CONNECTION_USE_KERBEROS |
+				     CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS |
+				     CLI_FULL_CONNECTION_ANONYMOUS_FALLBACK,
+				     Undefined, NULL);
 
 	if (!NT_STATUS_IS_OK(status)) {
 		werr = ntstatus_to_werror(status);
@@ -174,7 +180,10 @@ WERROR DsGetDcName_r(struct libnetapi_ctx *ctx,
 				     ctx->username,
 				     ctx->workgroup,
 				     ctx->password,
-				     0, Undefined, NULL);
+				     CLI_FULL_CONNECTION_USE_KERBEROS |
+				     CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS |
+				     CLI_FULL_CONNECTION_ANONYMOUS_FALLBACK,
+				     Undefined, NULL);
 
 	if (!NT_STATUS_IS_OK(status)) {
 		werr = ntstatus_to_werror(status);
diff --git a/source/lib/netapi/joindomain.c b/source/lib/netapi/joindomain.c
index 468360f..48a6a91 100644
--- a/source/lib/netapi/joindomain.c
+++ b/source/lib/netapi/joindomain.c
@@ -108,7 +108,9 @@ WERROR NetJoinDomain_r(struct libnetapi_ctx *ctx,
 				     ctx->username,
 				     ctx->workgroup,
 				     ctx->password,
-				     0, Undefined, NULL);
+				     CLI_FULL_CONNECTION_USE_KERBEROS |
+				     CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+				     Undefined, NULL);
 
 	if (!NT_STATUS_IS_OK(status)) {
 		werr = ntstatus_to_werror(status);
@@ -248,7 +250,9 @@ WERROR NetUnjoinDomain_r(struct libnetapi_ctx *ctx,
 				     ctx->username,
 				     ctx->workgroup,
 				     ctx->password,
-				     0, Undefined, NULL);
+				     CLI_FULL_CONNECTION_USE_KERBEROS |
+				     CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+				     Undefined, NULL);
 
 	if (!NT_STATUS_IS_OK(status)) {
 		werr = ntstatus_to_werror(status);
@@ -308,7 +312,9 @@ WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx,
 				     ctx->username,
 				     ctx->workgroup,
 				     ctx->password,
-				     0, Undefined, NULL);
+				     CLI_FULL_CONNECTION_USE_KERBEROS |
+				     CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+				     Undefined, NULL);
 
 	if (!NT_STATUS_IS_OK(status)) {
 		werr = ntstatus_to_werror(status);
@@ -450,7 +456,9 @@ WERROR NetGetJoinableOUs_r(struct libnetapi_ctx *ctx,
 				     ctx->username,
 				     ctx->workgroup,
 				     ctx->password,
-				     0, Undefined, NULL);
+				     CLI_FULL_CONNECTION_USE_KERBEROS |
+				     CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+				     Undefined, NULL);
 
 	if (!NT_STATUS_IS_OK(status)) {
 		werr = ntstatus_to_werror(status);
diff --git a/source/lib/netapi/serverinfo.c b/source/lib/netapi/serverinfo.c
index e2a458c..7cc84f5 100644
--- a/source/lib/netapi/serverinfo.c
+++ b/source/lib/netapi/serverinfo.c
@@ -75,7 +75,9 @@ WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx,
 				     ctx->username,
 				     ctx->workgroup,
 				     ctx->password,
-				     0, Undefined, NULL);
+				     CLI_FULL_CONNECTION_USE_KERBEROS |
+				     CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+				     Undefined, NULL);
 
 	if (!NT_STATUS_IS_OK(status)) {
 		werr = ntstatus_to_werror(status);
@@ -189,7 +191,9 @@ WERROR NetServerSetInfo_r(struct libnetapi_ctx *ctx,
 				     ctx->username,
 				     ctx->workgroup,
 				     ctx->password,
-				     0, Undefined, NULL);
+				     CLI_FULL_CONNECTION_USE_KERBEROS |
+				     CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+				     Undefined, NULL);
 
 	if (!NT_STATUS_IS_OK(status)) {
 		werr = ntstatus_to_werror(status);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list