diff options
author | Gerald Carter <jerry@samba.org> | 2003-11-07 14:32:55 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-11-07 14:32:55 +0000 |
commit | 1e461f06ec492dc3f139165932c3518a6dd416f9 (patch) | |
tree | e3dfb11e1bf9906ae343be3920e64e5625845af0 | |
parent | 3a5130f231a0fd6f7490d3b028361ff0458bfae1 (diff) | |
download | samba-1e461f06ec492dc3f139165932c3518a6dd416f9.tar.gz samba-1e461f06ec492dc3f139165932c3518a6dd416f9.tar.xz samba-1e461f06ec492dc3f139165932c3518a6dd416f9.zip |
don't allow setting of the guest account
-rw-r--r-- | source/passdb/pdb_guest.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/passdb/pdb_guest.c b/source/passdb/pdb_guest.c index e2b38b1e767..7e9c2a9e1bc 100644 --- a/source/passdb/pdb_guest.c +++ b/source/passdb/pdb_guest.c @@ -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) |