mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
bug 624; make sure to set the GUEST SID rather than using the PDB_DEFAULT flag
(This used to be commit ccc7634b1c
)
This commit is contained in:
parent
a999e7c1b9
commit
2c1d659020
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user