diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-04-28 11:40:58 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-04-28 11:40:58 +0000 |
commit | 84e479c4a39eac9d6247b5637d89e6f21f1d5c6a (patch) | |
tree | 0abd38f7069cec36d154cd9d0c36d68317a21ed5 /source3/passdb | |
parent | 9449d80f875cddd12626a0d40619989e6d6f7fa7 (diff) | |
download | samba-84e479c4a39eac9d6247b5637d89e6f21f1d5c6a.tar.gz samba-84e479c4a39eac9d6247b5637d89e6f21f1d5c6a.tar.bz2 samba-84e479c4a39eac9d6247b5637d89e6f21f1d5c6a.zip |
The RID must be 'SET', not 'DEFAULT' or we won't set it into LDAP, and try
to make it up from the algorithm...
Andrew Bartlett
(This used to be commit 0d8e4066a3bfbe89b464a90fc9f16a7dd1539573)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/passdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index b868d27065..9f91fb57f3 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -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 { |