[SCM] Samba Shared Repository - branch v3-5-test updated

Karolin Seeger kseeger at samba.org
Mon May 28 13:38:02 MDT 2012


The branch, v3-5-test has been updated
       via  0529cf9 Fix bug #8882 - Broken processing of %U with vfs_full_audit when force user is set.
      from  76c570f s3-utils: Use ads_do_search_retry in net ads search

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


- Log -----------------------------------------------------------------
commit 0529cf9d039d0ae449f4b167952b42b2039238be
Author: Jeremy Allison <jra at samba.org>
Date:   Mon Apr 23 16:19:50 2012 -0700

    Fix bug #8882 - Broken processing of %U with vfs_full_audit when force user is set.
    
    When doing a "force user" we need to remember what the "sanitized_username"
    was from the original connect.

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

Summary of changes:
 source3/smbd/service.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index bc2cdaf..2de9384 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -746,6 +746,14 @@ connection_struct *make_connection_snum(struct smbd_server_connection *sconn,
 			return NULL;
 		}
 
+		/* We don't want to replace the original sanitized_username
+		   as it is the original user given in the connect attempt.
+		   This is used in '%U' substitutions. */
+		TALLOC_FREE(forced_serverinfo->sanitized_username);
+		forced_serverinfo->sanitized_username =
+			talloc_move(forced_serverinfo,
+					&conn->server_info->sanitized_username);
+
 		TALLOC_FREE(conn->server_info);
 		conn->server_info = forced_serverinfo;
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list