mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
winbind: Remove unused idmap_backends_unixid_to_sid
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Mar 30 17:58:48 CEST 2016 on sn-devel-144
This commit is contained in:
parent
fa8f09766e
commit
3cc3406220
@ -62,11 +62,6 @@ bool idmap_is_online(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
NTSTATUS idmap_backends_unixid_to_sid(struct id_map *id)
|
||||
{
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
static bool open_db(struct idmap_tdb_common_context *ctx)
|
||||
{
|
||||
NTSTATUS status;
|
||||
|
@ -617,49 +617,3 @@ NTSTATUS idmap_backend_unixids_to_sids(struct id_map **maps,
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
NTSTATUS idmap_backends_unixid_to_sid(struct id_map *id)
|
||||
{
|
||||
struct idmap_domain *dom;
|
||||
struct id_map *maps[2];
|
||||
bool ok;
|
||||
int i;
|
||||
|
||||
ok = idmap_init();
|
||||
if (!ok) {
|
||||
return NT_STATUS_NONE_MAPPED;
|
||||
}
|
||||
|
||||
DEBUG(10, ("idmap_backend_unixid_to_sid: xid = %d (type %d)\n",
|
||||
id->xid.id, id->xid.type));
|
||||
|
||||
maps[0] = id;
|
||||
maps[1] = NULL;
|
||||
|
||||
/*
|
||||
* Always give passdb a chance first
|
||||
*/
|
||||
|
||||
dom = passdb_idmap_domain;
|
||||
if ((dom != NULL)
|
||||
&& NT_STATUS_IS_OK(dom->methods->unixids_to_sids(dom, maps))
|
||||
&& id->status == ID_MAPPED) {
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
dom = default_idmap_domain;
|
||||
|
||||
for (i=0; i<num_domains; i++) {
|
||||
if ((id->xid.id >= idmap_domains[i]->low_id) &&
|
||||
(id->xid.id <= idmap_domains[i]->high_id)) {
|
||||
dom = idmap_domains[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (dom == NULL) {
|
||||
return NT_STATUS_NONE_MAPPED;
|
||||
}
|
||||
|
||||
return dom->methods->unixids_to_sids(dom, maps);
|
||||
}
|
||||
|
@ -34,7 +34,6 @@ NTSTATUS smb_register_idmap(int version, const char *name,
|
||||
void idmap_close(void);
|
||||
NTSTATUS idmap_allocate_uid(struct unixid *id);
|
||||
NTSTATUS idmap_allocate_gid(struct unixid *id);
|
||||
NTSTATUS idmap_backends_unixid_to_sid(struct id_map *id);
|
||||
NTSTATUS idmap_backend_unixids_to_sids(struct id_map **maps,
|
||||
const char *domain_name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user