summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-04-29 05:31:06 +0000
committerGerald Carter <jerry@samba.org>2003-04-29 05:31:06 +0000
commite30c2e18f60c4a611b32706d3a18aa60991ce7e6 (patch)
treea3de98dee69c18be6307fca76a83043b711cf36f /source3/passdb
parent2aa8a05f336781d7cc7c8cdce9533f96ba9ca8d6 (diff)
downloadsamba-e30c2e18f60c4a611b32706d3a18aa60991ce7e6.tar.gz
samba-e30c2e18f60c4a611b32706d3a18aa60991ce7e6.tar.bz2
samba-e30c2e18f60c4a611b32706d3a18aa60991ce7e6.zip
don't implement any group mapping functions in the guest sam module
(This used to be commit a354bf4b7eadec3e6aa5f5547b58c7856fda3471)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_guest.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/passdb/pdb_guest.c b/source3/passdb/pdb_guest.c
index 999779b0c6..7ecfa7d4c3 100644
--- a/source3/passdb/pdb_guest.c
+++ b/source3/passdb/pdb_guest.c
@@ -100,6 +100,7 @@ static NTSTATUS guestsam_getsampwsid(struct pdb_methods *my_methods, SAM_ACCOUNT
return guestsam_getsampwrid(my_methods, user, rid);
}
+
NTSTATUS pdb_init_guestsam(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, const char *location)
{
NTSTATUS nt_status;
@@ -118,6 +119,16 @@ NTSTATUS pdb_init_guestsam(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, c
(*pdb_method)->getsampwnam = guestsam_getsampwnam;
(*pdb_method)->getsampwsid = guestsam_getsampwsid;
+ /* we should do no group mapping here */
+ (*pdb_method)->getgrsid = pdb_nop_getgrsid;
+ (*pdb_method)->getgrgid = pdb_nop_getgrgid;
+ (*pdb_method)->getgrnam = pdb_nop_getgrnam;
+ (*pdb_method)->add_group_mapping_entry = pdb_nop_add_group_mapping_entry;
+ (*pdb_method)->update_group_mapping_entry = pdb_nop_update_group_mapping_entry;
+ (*pdb_method)->delete_group_mapping_entry = pdb_nop_delete_group_mapping_entry;
+ (*pdb_method)->enum_group_mapping = pdb_nop_enum_group_mapping;
+
+
/* There's not very much to initialise here */
return NT_STATUS_OK;
}