From e13c14e7e440f56069aac6c6568b56e48e7ea825 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 11 Aug 2009 18:20:39 +1000 Subject: s4:torture Add test for the NTP signd server This is used by at patch to the NTP project to supply authenticated time as required by MS-SNTP. (ie, to keep windows clients in time sync in the domain) Andrew Bartlett --- source4/ntp_signd/ntp_signd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/ntp_signd') diff --git a/source4/ntp_signd/ntp_signd.c b/source4/ntp_signd/ntp_signd.c index 4306e5a938..6c6416dea0 100644 --- a/source4/ntp_signd/ntp_signd.c +++ b/source4/ntp_signd/ntp_signd.c @@ -153,6 +153,13 @@ static NTSTATUS ntp_signd_recv(void *private_data, DATA_BLOB wrapped_input) return signing_failure(ntp_signdconn, sign_request.packet_id); } + /* We need to implement 'check signature' and 'request server + * to sign' operations at some point */ + if (sign_request.version != 1) { + talloc_free(tmp_ctx); + return signing_failure(ntp_signdconn, sign_request.packet_id); + } + domain_sid = samdb_domain_sid(ntp_signdconn->ntp_signd->samdb); if (!domain_sid) { talloc_free(tmp_ctx); -- cgit