From 497234c1cbded9855b817114a6517c58daa25805 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 22 Aug 2009 11:09:30 +1000 Subject: s4:ntp_signd Fix bug 6656 - Set protocol version to 0, as used by ntpd The change to protocol version 1 was not intentional, and broke the protocol established with the ntp.org project. Andrew Bartlett --- source4/librpc/idl/ntp_signd.idl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/librpc/idl') diff --git a/source4/librpc/idl/ntp_signd.idl b/source4/librpc/idl/ntp_signd.idl index 2b2fbc7662..b784205698 100644 --- a/source4/librpc/idl/ntp_signd.idl +++ b/source4/librpc/idl/ntp_signd.idl @@ -12,6 +12,8 @@ interface ntp_signd { + const int NTP_SIGND_PROTOCOL_VERSION_0 = 0; + typedef [v1_enum] enum { SIGN_TO_CLIENT = 0, ASK_SERVER_TO_SIGN = 1, @@ -21,7 +23,7 @@ interface ntp_signd } ntp_signd_op; typedef [flag(NDR_BIG_ENDIAN),public] struct { - uint32 version; + [value(NTP_SIGND_PROTOCOL_VERSION_0)] uint32 version; ntp_signd_op op; uint16 packet_id; [flag(NDR_LITTLE_ENDIAN)] uint32 key_id; @@ -30,7 +32,7 @@ interface ntp_signd } sign_request; typedef [flag(NDR_BIG_ENDIAN),public] struct samba_key_out { - uint32 version; + [value(NTP_SIGND_PROTOCOL_VERSION_0)] uint32 version; ntp_signd_op op; uint32 packet_id; [flag(NDR_REMAINING)] DATA_BLOB signed_packet; -- cgit