summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-04 20:43:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:32 -0500
commit7cc7fc51c6c1a99c55b6e7874c58bb9852f74085 (patch)
tree9f2424313d015e8c859d5fd041f38c30c76575d6 /source3/passdb
parentf8aa6abb6835200cd6f7f9f7ebd355c4e29a231c (diff)
downloadsamba-7cc7fc51c6c1a99c55b6e7874c58bb9852f74085.tar.gz
samba-7cc7fc51c6c1a99c55b6e7874c58bb9852f74085.tar.bz2
samba-7cc7fc51c6c1a99c55b6e7874c58bb9852f74085.zip
r17404: Is this XP (extreme programming)? :-)
With lp_workgroup we end up with remote names again... Volker (This used to be commit 250b9f353118bee4c080655f57d09011679deaf7)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/lookup_sid.c6
1 files changed, 3 insertions, 3 deletions
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;