summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-01-22 14:38:21 +0100
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:34 +0200
commitd888e726a9b1e1e1603211821a71fd88aea566c7 (patch)
tree346062b903b177bad06bda1ea8f69765b8f9a548 /source3/winbindd
parentc03fa64a2c05672f4b4d5a05263a449c0c7e85e1 (diff)
downloadsamba-d888e726a9b1e1e1603211821a71fd88aea566c7.tar.gz
samba-d888e726a9b1e1e1603211821a71fd88aea566c7.tar.bz2
samba-d888e726a9b1e1e1603211821a71fd88aea566c7.zip
s3:idmap: remove unused idmap_remove_mapping().
Michael
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c
index d6757a5639..d6f37b80b9 100644
--- a/source3/winbindd/idmap.c
+++ b/source3/winbindd/idmap.c
@@ -773,20 +773,3 @@ NTSTATUS idmap_backends_sid_to_unixid(const char *domain, struct id_map *id)
return dom->methods->sids_to_unixids(dom, maps);
}
-
-NTSTATUS idmap_remove_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->remove_mapping == NULL) {
- DEBUG(3, ("default domain not writable\n"));
- return NT_STATUS_MEDIA_WRITE_PROTECTED;
- }
-
- return dom->methods->remove_mapping(dom, map);
-}