[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-854-g857140a

Bo Yang boyang at samba.org
Thu Aug 6 07:48:16 MDT 2009


The branch, master has been updated
       via  857140a79fb9cd186ed7f33aaf92934080256a3c (commit)
      from  915b789c874e661dbd240e1fe3ba35f67746fdd0 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 857140a79fb9cd186ed7f33aaf92934080256a3c
Author: Bo Yang <boyang at samba.org>
Date:   Fri Aug 7 13:42:51 2009 +0800

    Unable to browse DFS when using kerberos
    
    Signed-off-by: Bo Yang <boyang at samba.org>

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

Summary of changes:
 source3/libsmb/libsmb_context.c |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/libsmb_context.c b/source3/libsmb/libsmb_context.c
index 8b22ee5..78c9a55 100644
--- a/source3/libsmb/libsmb_context.c
+++ b/source3/libsmb/libsmb_context.c
@@ -692,22 +692,28 @@ void smbc_set_credentials_with_fallback(SMBCCTX *context,
 {
 	smbc_bool use_kerberos = false;
 	const char *signing_state = "off";
-	struct user_auth_info *auth_info = user_auth_info_init(NULL);
+	struct user_auth_info *auth_info = NULL;
 
-	if (auth_info) {
+	if (! context) {
+
+		return;
+	}
+
+	if (! workgroup || ! *workgroup) {
+		workgroup = smbc_getWorkgroup(context);
 	}
 
-	if (! context ||
-	    ! workgroup || ! *workgroup ||
-	    ! user || ! *user ||
-	    ! password || ! *password) {
+	if (! user) {
+		user = smbc_getUser(context);
+	}
 
-		return;
+	if (! password) {
+		password = "";
 	}
 
 	auth_info = user_auth_info_init(NULL);
 
-	if (auth_info) {
+	if (! auth_info) {
 		DEBUG(0, ("smbc_set_credentials_with_fallback: allocation fail\n"));
 		return;
 	}


-- 
Samba Shared Repository


More information about the samba-cvs mailing list