summaryrefslogtreecommitdiff
path: root/source3/nsswitch/idmap_nss.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-12-20 19:05:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:39 -0500
commitc127486a84605fa9df22d790b9f41e7d883d6c21 (patch)
tree803c41b149efa8ab3d64e40961ccdba4d8418c06 /source3/nsswitch/idmap_nss.c
parentced5c1f9aa525addf4c0a4649fdbeb36128157e7 (diff)
downloadsamba-c127486a84605fa9df22d790b9f41e7d883d6c21.tar.gz
samba-c127486a84605fa9df22d790b9f41e7d883d6c21.tar.bz2
samba-c127486a84605fa9df22d790b9f41e7d883d6c21.zip
r20290: Remove unused call
(This used to be commit 4920265c31e073cbc0fdbfbe42dc8e47dbadca54)
Diffstat (limited to 'source3/nsswitch/idmap_nss.c')
-rw-r--r--source3/nsswitch/idmap_nss.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/nsswitch/idmap_nss.c b/source3/nsswitch/idmap_nss.c
index 6c513fd120..014a193c6a 100644
--- a/source3/nsswitch/idmap_nss.c
+++ b/source3/nsswitch/idmap_nss.c
@@ -42,16 +42,8 @@ static NTSTATUS idmap_nss_int_init(struct idmap_domain *dom, const char *compat_
static NTSTATUS idmap_nss_unixids_to_sids(struct idmap_domain *dom, struct id_map **ids)
{
TALLOC_CTX *ctx;
- struct winbindd_domain *wdom;
int i;
- wdom = find_lookup_domain_from_name(dom->name);
- if (!wdom) {
- DEBUG(2, ("Can't lookup domain %s\n", dom->name));
- return NT_STATUS_NO_SUCH_DOMAIN;
- }
- wdom->initialized = False;
-
ctx = talloc_new(dom);
if ( ! ctx) {
DEBUG(0, ("Out of memory!\n"));
@@ -155,7 +147,7 @@ static NTSTATUS idmap_nss_sids_to_unixids(struct idmap_domain *dom, struct id_ma
/* by default calls to winbindd are disabled
the following call will not recurse so this is safe */
winbind_on();
- ret =winbind_lookup_sid(ctx, ids[i]->sid, &dom_name, &name, &type);
+ ret = winbind_lookup_sid(ctx, ids[i]->sid, &dom_name, &name, &type);
winbind_off();
if (!ret) {