summaryrefslogtreecommitdiff
path: root/source4/ntp_signd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-08-11 18:20:39 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-08-11 18:22:12 +1000
commite13c14e7e440f56069aac6c6568b56e48e7ea825 (patch)
tree07a8233b67e57aa221aefdda252b3bbfac919e6f /source4/ntp_signd
parent40017a2143c97c622a3f237f347d2fd3f4039bcc (diff)
downloadsamba-e13c14e7e440f56069aac6c6568b56e48e7ea825.tar.gz
samba-e13c14e7e440f56069aac6c6568b56e48e7ea825.tar.bz2
samba-e13c14e7e440f56069aac6c6568b56e48e7ea825.zip
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
Diffstat (limited to 'source4/ntp_signd')
-rw-r--r--source4/ntp_signd/ntp_signd.c7
1 files changed, 7 insertions, 0 deletions
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);