From: Volker Lendecke Date: Tue, 25 Aug 2009 10:29:25 +0000 (+0200) Subject: s3:winbind: Make wb_seqnums.c update the winbind cache seqnums X-Git-Tag: tevent-0.9.8~108 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=ae6a6690d5ed55935c1fa0ad2800d83455c94382;hp=99cf696150a1b8e24a9d87981b710b703045a2a5 s3:winbind: Make wb_seqnums.c update the winbind cache seqnums --- diff --git a/source3/winbindd/wb_seqnums.c b/source3/winbindd/wb_seqnums.c index f4044338a19..e6efb9b99ab 100644 --- a/source3/winbindd/wb_seqnums.c +++ b/source3/winbindd/wb_seqnums.c @@ -1,6 +1,8 @@ /* Unix SMB/CIFS implementation. - async seqnums + + async seqnums, update the seqnums in winbindd_cache.c + Copyright (C) Volker Lendecke 2009 This program is free software; you can redistribute it and/or modify @@ -100,7 +102,16 @@ static void wb_seqnums_done(struct tevent_req *subreq) state->stati[i] = status; if (NT_STATUS_IS_OK(status)) { state->seqnums[i] = seqnum; + + /* + * This first assignment might be removed + * later + */ state->domains[i]->sequence_number = seqnum; + + wcache_store_seqnum(state->domains[i]->name, + state->seqnums[i], + time(NULL)); } break; }