summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-22 14:31:55 +0100
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:34 +0200
commit6740c180e668307f1ee16084f5d6531508bb1cbf (patch)
treebb7515d6da71e9c226d646ef1f47fc0dd1e9203f
parent74da3163f6ef7ec8c8e5d52d926dbc3e02be0c2d (diff)
downloadsamba-6740c180e668307f1ee16084f5d6531508bb1cbf.tar.gz
samba-6740c180e668307f1ee16084f5d6531508bb1cbf.tar.bz2
samba-6740c180e668307f1ee16084f5d6531508bb1cbf.zip
s3:idmap: remove unused idmap_set_mapping().
Michael
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/winbindd/idmap.c17
2 files changed, 0 insertions, 18 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 51bd95838f..5b6e5bdb8a 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -6022,7 +6022,6 @@ NTSTATUS idmap_backends_sid_to_unixid(const char *domname,
struct id_map *id);
NTSTATUS idmap_new_mapping(const struct dom_sid *psid, enum id_type type,
struct unixid *pxid);
-NTSTATUS idmap_set_mapping(const struct id_map *map);
NTSTATUS idmap_remove_mapping(const struct id_map *map);
/* The following definitions come from winbindd/idmap_cache.c */
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;