diff -r -U 7 samba-3.5.6.orig/source3/winbindd/winbindd_lookuprids.c samba-3.5.6/source3/winbindd/winbindd_lookuprids.c --- samba-3.5.6.orig/source3/winbindd/winbindd_lookuprids.c 2010-10-07 19:41:16.000000000 +0300 +++ samba-3.5.6/source3/winbindd/winbindd_lookuprids.c 2010-11-29 10:57:07.319026719 +0200 @@ -64,14 +64,15 @@ domain = find_domain_from_sid_noinit(&sid); if (domain == NULL) { DEBUG(5, ("Domain for sid %s not found\n", sid_string_dbg(&sid))); tevent_req_nterror(req, NT_STATUS_NO_SUCH_DOMAIN); return tevent_req_post(req, ev); } + state->domain_name = domain->name; if (request->extra_data.data[request->extra_len-1] != '\0') { DEBUG(5, ("extra_data not 0-terminated\n")); tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER); return tevent_req_post(req, ev); }