[SCM] Samba Shared Repository - branch master updated

Günther Deschner gd at samba.org
Tue Oct 20 18:59:04 MDT 2009


The branch, master has been updated
       via  32f2cc4... s3-lsa: make s3 pass against RPC-LSA-LOOKUPNAMES again.
      from  b9d9353... nsswitch: fix the build of the winbind krb5 locator plugin.

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


- Log -----------------------------------------------------------------
commit 32f2cc448778ec6eeab8bbd42d459f7e57b188ac
Author: Günther Deschner <gd at samba.org>
Date:   Wed Oct 21 02:45:21 2009 +0200

    s3-lsa: make s3 pass against RPC-LSA-LOOKUPNAMES again.
    
    Do what W2k8 does and return the builtin domain for a NULL name.
    
    Guenther

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

Summary of changes:
 source3/rpc_server/srv_lsa_nt.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index eafbd51..23ea045 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -159,12 +159,13 @@ static NTSTATUS lookup_lsa_rids(TALLOC_CTX *mem_ctx,
 
 		/* Split name into domain and user component */
 
-		full_name = name[i].string;
-		if (full_name == NULL) {
-			prid[i].sid_type	= type;
-			prid[i].rid		= 0;
-			prid[i].sid_index	= (uint32_t)-1;
-			continue;
+		/* follow w2k8 behavior and return the builtin domain when no
+		 * input has been passed in */
+
+		if (name[i].string) {
+			full_name = name[i].string;
+		} else {
+			full_name = "BUILTIN";
 		}
 
 		DEBUG(5, ("lookup_lsa_rids: looking up name %s\n", full_name));


-- 
Samba Shared Repository


More information about the samba-cvs mailing list