]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
don't allow setting of the guest account
authorGerald Carter <jerry@samba.org>
Fri, 7 Nov 2003 14:32:55 +0000 (14:32 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 7 Nov 2003 14:32:55 +0000 (14:32 +0000)
source/passdb/pdb_guest.c

index e2b38b1e767aa685d6fcafa8614d23b702b2107d..7e9c2a9e1bc22c8595c0b00a3b6e27fb92cace4a 100644 (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)