diff options
author | Gerald Carter <jerry@samba.org> | 2003-11-07 14:32:25 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-11-07 14:32:25 +0000 |
commit | 9db332645b81dc34bcb043c2401b3c56cf7a38a0 (patch) | |
tree | 6b4e80b094f7831e8a73a329a95d4b17d96557a6 /source3/passdb | |
parent | 88b0120e5668bc2092563bbaa35928e5cabe29d9 (diff) | |
download | samba-9db332645b81dc34bcb043c2401b3c56cf7a38a0.tar.gz samba-9db332645b81dc34bcb043c2401b3c56cf7a38a0.tar.bz2 samba-9db332645b81dc34bcb043c2401b3c56cf7a38a0.zip |
don't allow setting of the guest account
(This used to be commit e0eea3639425aa6f4b621cce6b33df9e9c67ba6d)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_guest.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/passdb/pdb_guest.c b/source3/passdb/pdb_guest.c index 5b0237e37c..3b9e17075e 100644 --- a/source3/passdb/pdb_guest.c +++ b/source3/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) |