1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:idmap: remove unused idmap_set_mapping().

Michael
This commit is contained in:
Michael Adam 2009-01-22 14:31:55 +01:00
parent 74da3163f6
commit 6740c180e6
2 changed files with 0 additions and 18 deletions

View File

@ -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 */

View File

@ -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;