summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-11-06 05:46:06 +0000
committerGerald Carter <jerry@samba.org>2003-11-06 05:46:06 +0000
commit2c1d659020b04f5ade111c6d06a7ce47955d40e0 (patch)
tree1eeb5d4d7820a78d00e4e382c296d0d2762cfc62
parenta999e7c1b9b428de851e8ed978fd9ffb8ed64b94 (diff)
downloadsamba-2c1d659020b04f5ade111c6d06a7ce47955d40e0.tar.gz
samba-2c1d659020b04f5ade111c6d06a7ce47955d40e0.tar.bz2
samba-2c1d659020b04f5ade111c6d06a7ce47955d40e0.zip
bug 624; make sure to set the GUEST SID rather than using the PDB_DEFAULT flag
(This used to be commit ccc7634b1c4b7813a1d09af93572b1209e72dffb)
-rw-r--r--source3/passdb/pdb_guest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_guest.c b/source3/passdb/pdb_guest.c
index fa29657edc..5b0237e37c 100644
--- a/source3/passdb/pdb_guest.c
+++ b/source3/passdb/pdb_guest.c
@@ -60,7 +60,7 @@ static NTSTATUS guestsam_getsampwnam (struct pdb_methods *methods, SAM_ACCOUNT *
if (!pdb_set_acct_ctrl(sam_account, ACB_NORMAL, PDB_DEFAULT))
return NT_STATUS_UNSUCCESSFUL;
- if (!pdb_set_user_sid_from_rid(sam_account, DOMAIN_USER_RID_GUEST, PDB_DEFAULT))
+ if (!pdb_set_user_sid_from_rid(sam_account, DOMAIN_USER_RID_GUEST, PDB_SET))
return NT_STATUS_UNSUCCESSFUL;
if (!pdb_set_group_sid_from_rid(sam_account, DOMAIN_GROUP_RID_GUESTS, PDB_DEFAULT))