diff options
author | Simo Sorce <idra@samba.org> | 2003-05-18 09:06:09 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2003-05-18 09:06:09 +0000 |
commit | a670285dedfaa07707518a778fb87bcd6fadcc48 (patch) | |
tree | f0b1b71eefb553860db1c366882425c534ec5f53 /source3/passdb/pdb_smbpasswd.c | |
parent | 79338d85cd08433b439e79d53c6b3abdb725be62 (diff) | |
download | samba-a670285dedfaa07707518a778fb87bcd6fadcc48.tar.gz samba-a670285dedfaa07707518a778fb87bcd6fadcc48.tar.bz2 samba-a670285dedfaa07707518a778fb87bcd6fadcc48.zip |
port fixes from 3.0
(This used to be commit 0d098df8b5db02c73b859aea136d01c9ca42b17a)
Diffstat (limited to 'source3/passdb/pdb_smbpasswd.c')
-rw-r--r-- | source3/passdb/pdb_smbpasswd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c index 91fc7bc8e0..c9e66a4715 100644 --- a/source3/passdb/pdb_smbpasswd.c +++ b/source3/passdb/pdb_smbpasswd.c @@ -1210,7 +1210,7 @@ static BOOL build_sam_account(struct smbpasswd_privates *smbpasswd_state, */ pdb_set_group_sid_from_rid (sam_pass, DOMAIN_GROUP_RID_USERS, PDB_SET); pdb_set_username (sam_pass, pw_buf->smb_name, PDB_SET); - pdb_set_domain (sam_pass, lp_workgroup(), PDB_DEFAULT); + pdb_set_domain (sam_pass, get_global_sam_name(), PDB_DEFAULT); } else { DEBUG(0,("build_sam_account: smbpasswd database is corrupt! username %s with uid %u is not in unix passwd database!\n", pw_buf->smb_name, pw_buf->smb_userid)); |