bug 624; make sure to set the GUEST SID rather than using the PDB_DEFAULT flag
authorGerald Carter <jerry@samba.org>
Thu, 6 Nov 2003 05:46:23 +0000 (05:46 +0000)
committerGerald Carter <jerry@samba.org>
Thu, 6 Nov 2003 05:46:23 +0000 (05:46 +0000)
(This used to be commit 7a60693a47823c2a174886ad44e7af102440ba4d)

source3/passdb/pdb_guest.c

index 3cd6efb38a1fc7462cc0c99f5c67840d15829cd4..e2b38b1e767aa685d6fcafa8614d23b702b2107d 100644 (file)
@@ -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))