1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

don't allow setting of the guest account

(This used to be commit e0eea3639425aa6f4b621cce6b33df9e9c67ba6d)
This commit is contained in:
Gerald Carter 2003-11-07 14:32:25 +00:00
parent 88b0120e56
commit 9db332645b

View File

@ -110,7 +110,15 @@ static NTSTATUS guestsam_getsampwsid(struct pdb_methods *my_methods, SAM_ACCOUNT
static NTSTATUS guestsam_update_sam_account (struct pdb_methods *methods, SAM_ACCOUNT *newpwd)
{
#if 0 /* JERRY */
return methods->parent->pdb_add_sam_account(methods->parent, newpwd);
#else
/* I don't think we should allow any modification of
the guest account as SID will could messed up with
the smbpasswd backend --jerry */
return NT_STATUS_NOT_IMPLEMENTED;
#endif
}
NTSTATUS pdb_init_guestsam(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, const char *location)