summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-11-30 15:27:15 +0100
committerStefan Metzmacher <metze@samba.org>2012-12-03 08:48:28 +0100
commite3ee3971403c7dac4e8e3578a60973b97451af68 (patch)
tree436ea6ca1ed6a8baf446ce41ea8d2614622072a5
parent7f2f29647a5d5906db5a267f614f30607d9162e3 (diff)
downloadsamba-e3ee3971403c7dac4e8e3578a60973b97451af68.tar.gz
samba-e3ee3971403c7dac4e8e3578a60973b97451af68.tar.bz2
samba-e3ee3971403c7dac4e8e3578a60973b97451af68.zip
s3:winbindd: remove unused function idmap_backends_sid_to_unixid()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--source3/winbindd/idmap.c41
-rw-r--r--source3/winbindd/idmap_proto.h2
2 files changed, 0 insertions, 43 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c
index 5a690f1527..ae4fb2b246 100644
--- a/source3/winbindd/idmap.c
+++ b/source3/winbindd/idmap.c
@@ -513,44 +513,3 @@ NTSTATUS idmap_backends_unixid_to_sid(const char *domname, struct id_map *id)
return dom->methods->unixids_to_sids(dom, maps);
}
-
-NTSTATUS idmap_backends_sid_to_unixid(const char *domain, struct id_map *id)
-{
- struct idmap_domain *dom;
- struct id_map *maps[2];
-
- DEBUG(10, ("idmap_backends_sid_to_unixid: domain = '%s', sid = [%s]\n",
- domain?domain:"NULL", sid_string_dbg(id->sid)));
-
- maps[0] = id;
- maps[1] = NULL;
-
- if (sid_check_is_in_builtin(id->sid)
- || (sid_check_is_in_our_sam(id->sid)))
- {
- NTSTATUS status;
-
- DEBUG(10, ("asking passdb...\n"));
-
- dom = idmap_passdb_domain(NULL);
- if (dom == NULL) {
- return NT_STATUS_NONE_MAPPED;
- }
- status = dom->methods->sids_to_unixids(dom, maps);
-
- if (NT_STATUS_IS_OK(status) && id->status == ID_MAPPED) {
- return status;
- }
-
- DEBUG(10, ("passdb could not map.\n"));
-
- return NT_STATUS_NONE_MAPPED;
- }
-
- dom = idmap_find_domain(domain);
- if (dom == NULL) {
- return NT_STATUS_NONE_MAPPED;
- }
-
- return dom->methods->sids_to_unixids(dom, maps);
-}
diff --git a/source3/winbindd/idmap_proto.h b/source3/winbindd/idmap_proto.h
index 6b3d8cfc9f..892b258d6a 100644
--- a/source3/winbindd/idmap_proto.h
+++ b/source3/winbindd/idmap_proto.h
@@ -36,8 +36,6 @@ NTSTATUS idmap_allocate_uid(struct unixid *id);
NTSTATUS idmap_allocate_gid(struct unixid *id);
NTSTATUS idmap_backends_unixid_to_sid(const char *domname,
struct id_map *id);
-NTSTATUS idmap_backends_sid_to_unixid(const char *domname,
- struct id_map *id);
/* The following definitions come from winbindd/idmap_nss.c */