summaryrefslogtreecommitdiff
path: root/source3/passdb/util_sam_sid.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-21 04:01:04 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-21 04:01:04 +0000
commitceb73e9b3e6695a8efc4c2815fa1448be3239dbc (patch)
tree2101fb811b89c51ec10ccc705e165516926588c7 /source3/passdb/util_sam_sid.c
parent6e47dc89a336af2ed779c81e8a18948a2aa71b6c (diff)
downloadsamba-ceb73e9b3e6695a8efc4c2815fa1448be3239dbc.tar.gz
samba-ceb73e9b3e6695a8efc4c2815fa1448be3239dbc.tar.bz2
samba-ceb73e9b3e6695a8efc4c2815fa1448be3239dbc.zip
More cleanups, and add a comment/hint not to clean somthing up in future :-)
Andrew Bartlett (This used to be commit 21b0e8f560849be77bde463cf006ea0de54211e9)
Diffstat (limited to 'source3/passdb/util_sam_sid.c')
-rw-r--r--source3/passdb/util_sam_sid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/passdb/util_sam_sid.c b/source3/passdb/util_sam_sid.c
index 2c574f4a61..6ec1e48ab3 100644
--- a/source3/passdb/util_sam_sid.c
+++ b/source3/passdb/util_sam_sid.c
@@ -95,6 +95,9 @@ static void init_sid_name_map (void)
if ((lp_security() == SEC_USER) && lp_domain_logons()) {
sid_name_map[i].sid = get_global_sam_sid();
+ /* This is not lp_workgroup() for good reason:
+ it must stay around longer than the lp_*()
+ strings do */
sid_name_map[i].name = global_myworkgroup;
sid_name_map[i].known_users = NULL;
i++;