s3:winbindd: remove unused function idmap_backends_sid_to_unixid()
[kai/samba.git] / source3 / winbindd / idmap.c
index 5a690f15276f57c7709d83a085b3ead50c6c64ff..ae4fb2b246a5d76464da9499c9715b0f8e06a35f 100644 (file)
@@ -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);
-}