The RID must be 'SET', not 'DEFAULT' or we won't set it into LDAP, and try
authorAndrew Bartlett <abartlet@samba.org>
Mon, 28 Apr 2003 11:40:58 +0000 (11:40 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 28 Apr 2003 11:40:58 +0000 (11:40 +0000)
to make it up from the algorithm...

Andrew Bartlett
(This used to be commit 0d8e4066a3bfbe89b464a90fc9f16a7dd1539573)

source3/passdb/passdb.c

index b868d27065e52c2abeef9b01fd00bf70aa839183..9f91fb57f3e18615593b2aae02c49846e56bdd85 100644 (file)
@@ -200,10 +200,10 @@ NTSTATUS pdb_fill_sam_pw(SAM_ACCOUNT *sam_account, const struct passwd *pwd)
 
        /* Ensure this *must* be set right */
        if (strcmp(pwd->pw_name, guest_account) == 0) {
-               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)) {
+               if (!pdb_set_group_sid_from_rid(sam_account, DOMAIN_GROUP_RID_GUESTS, PDB_SET)) {
                        return NT_STATUS_UNSUCCESSFUL;
                }
        } else {