r22677: One line fix to make net idmap restore work again
authorSimo Sorce <idra@samba.org>
Fri, 4 May 2007 22:41:35 +0000 (22:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:54 +0000 (12:19 -0500)
Jerry, please add this for 3.0.25 final
(This used to be commit e04ca2d7f8ea2d4c70c2a35201a98c5ecd672d59)

source3/nsswitch/winbindd_async.c

index 393479c63d3ec3fd0a5943a8220703b509ea281e..eb8631ab8689fb3878331e821af136bed2ebde1a 100644 (file)
@@ -163,6 +163,7 @@ enum winbindd_result winbindd_dual_set_mapping(struct winbindd_domain *domain,
        map.sid = &sid;
        map.xid.id = state->request.data.dual_idmapset.id;
        map.xid.type = state->request.data.dual_idmapset.type;
+       map.status = ID_MAPPED;
 
        result = idmap_set_mapping(&map);
        return NT_STATUS_IS_OK(result) ? WINBINDD_OK : WINBINDD_ERROR;