summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-09-26 11:26:52 -0400
committerAndreas Schneider <asn@cryptomilk.org>2011-09-26 18:25:26 +0200
commit0ff0b37f43d6a3ad52b1c954bc8f921222424c0d (patch)
treecdc856b1015fcf8d91f5fe9e65eab714c7ba8314 /source3/groupdb
parent94b0f8f7feceb8f1119ffdb46ebe62c4afcd5403 (diff)
downloadsamba-0ff0b37f43d6a3ad52b1c954bc8f921222424c0d.tar.gz
s3-group-mapping: Remove unused functions.
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping.c34
-rw-r--r--source3/groupdb/proto.h2
2 files changed, 0 insertions, 36 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index 70c96f186ce..638c06a8f1e 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 db07d4d64f5..f30584cc8fe 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 */