From 0ff0b37f43d6a3ad52b1c954bc8f921222424c0d Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 26 Sep 2011 11:26:52 -0400 Subject: s3-group-mapping: Remove unused functions. Signed-off-by: Andreas Schneider --- source3/groupdb/mapping.c | 34 ---------------------------------- source3/groupdb/proto.h | 2 -- 2 files changed, 36 deletions(-) (limited to 'source3/groupdb') diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index 70c96f186c..638c06a8f1 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -699,40 +699,6 @@ NTSTATUS pdb_nop_enum_group_mapping(struct pdb_methods *methods, return NT_STATUS_UNSUCCESSFUL; } -/**************************************************************************** - These need to be redirected through pdb_interface.c -****************************************************************************/ -bool pdb_get_dom_grp_info(const struct dom_sid *sid, struct acct_info *info) -{ - GROUP_MAP map; - bool res; - - become_root(); - res = get_domain_group_from_sid(*sid, &map); - unbecome_root(); - - if (!res) - return False; - - fstrcpy(info->acct_name, map.nt_name); - fstrcpy(info->acct_desc, map.comment); - sid_peek_rid(sid, &info->rid); - return True; -} - -bool pdb_set_dom_grp_info(const struct dom_sid *sid, const struct acct_info *info) -{ - GROUP_MAP map; - - if (!get_domain_group_from_sid(*sid, &map)) - return False; - - fstrcpy(map.nt_name, info->acct_name); - fstrcpy(map.comment, info->acct_desc); - - return NT_STATUS_IS_OK(pdb_update_group_mapping_entry(&map)); -} - /******************************************************************** Really just intended to be called by smbd ********************************************************************/ diff --git a/source3/groupdb/proto.h b/source3/groupdb/proto.h index db07d4d64f..f30584cc8f 100644 --- a/source3/groupdb/proto.h +++ b/source3/groupdb/proto.h @@ -91,8 +91,6 @@ NTSTATUS pdb_nop_enum_group_mapping(struct pdb_methods *methods, enum lsa_SidType sid_name_use, GROUP_MAP **rmap, size_t *num_entries, bool unix_only); -bool pdb_get_dom_grp_info(const struct dom_sid *sid, struct acct_info *info); -bool pdb_set_dom_grp_info(const struct dom_sid *sid, const struct acct_info *info); NTSTATUS pdb_create_builtin_alias(uint32 rid); /* The following definitions come from groupdb/mapping_tdb.c */ -- cgit