From 6740c180e668307f1ee16084f5d6531508bb1cbf Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 22 Jan 2009 14:31:55 +0100 Subject: s3:idmap: remove unused idmap_set_mapping(). Michael --- source3/winbindd/idmap.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index 431f9bc005..d6757a5639 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -774,23 +774,6 @@ NTSTATUS idmap_backends_sid_to_unixid(const char *domain, struct id_map *id) return dom->methods->sids_to_unixids(dom, maps); } -NTSTATUS idmap_set_mapping(const struct id_map *map) -{ - struct idmap_domain *dom; - - dom = idmap_find_domain(NULL); - if (dom == NULL) { - DEBUG(3, ("no default domain, no place to write\n")); - return NT_STATUS_ACCESS_DENIED; - } - if (dom->methods->set_mapping == NULL) { - DEBUG(3, ("default domain not writable\n")); - return NT_STATUS_MEDIA_WRITE_PROTECTED; - } - - return dom->methods->set_mapping(dom, map); -} - NTSTATUS idmap_remove_mapping(const struct id_map *map) { struct idmap_domain *dom; -- cgit