diff options
author | Simo Sorce <idra@samba.org> | 2011-09-26 11:26:52 -0400 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-09-26 18:25:26 +0200 |
commit | 0ff0b37f43d6a3ad52b1c954bc8f921222424c0d (patch) | |
tree | cdc856b1015fcf8d91f5fe9e65eab714c7ba8314 | |
parent | 94b0f8f7feceb8f1119ffdb46ebe62c4afcd5403 (diff) | |
download | samba-0ff0b37f43d6a3ad52b1c954bc8f921222424c0d.tar.gz samba-0ff0b37f43d6a3ad52b1c954bc8f921222424c0d.tar.bz2 samba-0ff0b37f43d6a3ad52b1c954bc8f921222424c0d.zip |
s3-group-mapping: Remove unused functions.
Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source3/groupdb/mapping.c | 34 | ||||
-rw-r--r-- | source3/groupdb/proto.h | 2 |
2 files changed, 0 insertions, 36 deletions
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 */ |