r20290: Remove unused call
authorSimo Sorce <idra@samba.org>
Wed, 20 Dec 2006 19:05:07 +0000 (19:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:39 +0000 (12:16 -0500)
(This used to be commit 4920265c31e073cbc0fdbfbe42dc8e47dbadca54)

source3/nsswitch/idmap_nss.c

index 6c513fd120ef010f0bc1d906ab0ff1b77ba401ff..014a193c6a016dd01ada287b918e8d24746a03cd 100644 (file)
@@ -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) {