From 7cc7fc51c6c1a99c55b6e7874c58bb9852f74085 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 4 Aug 2006 20:43:21 +0000 Subject: r17404: Is this XP (extreme programming)? :-) With lp_workgroup we end up with remote names again... Volker (This used to be commit 250b9f353118bee4c080655f57d09011679deaf7) --- source3/passdb/lookup_sid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c index f3103c0cc0..567ddac3db 100644 --- a/source3/passdb/lookup_sid.c +++ b/source3/passdb/lookup_sid.c @@ -383,7 +383,7 @@ BOOL lookup_name(TALLOC_CTX *mem_ctx, /************************************************************************ Names from smb.conf can be unqualified. eg. valid users = foo - These names should never map to a remote name. Try lp_workgroup()\foo, + These names should never map to a remote name. Try global_sam_name()\foo, and then "Unix Users"\foo (or "Unix Groups"\foo). ************************************************************************/ @@ -402,9 +402,9 @@ BOOL lookup_name_smbconf(TALLOC_CTX *mem_ctx, ret_sid, ret_type); } - /* Try with our own domain name. */ + /* Try with our own SAM name. */ qualified_name = talloc_asprintf(mem_ctx, "%s\\%s", - lp_workgroup(), + get_global_sam_name(), full_name ); if (!qualified_name) { return False; -- cgit