[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cifs-protocol
Subject:    [cifs-protocol] [MS-GSSA] DDNS TSIG MAC calculation vs DNS name compression
From:       Ralph Boehme <slow () samba ! org>
Date:       2016-05-24 15:53:18
Message-ID: 20160524155318.GA6726 () kazak ! sernet ! private
[Download RAW message or body]

Hello Dochelp!

I'm seeking clarification about an interop issue we ran into in the
area of DNS TSIG MAC verification.

We observed the following (trace secure-updates-fail2-4.3.1.pcapng
attached):

1. Samba 4 DC

2. Windows 7 client attempts unauthenticated DDNS (p.7)

3. server rejects this (p.8)

4. Windows 7 client attemping DDNS update with TKEY/TSIG:

   - Windows 7 client sends DNS request with TKEY record (p.14)

   - server DNS response packet contains TKEY and TSIG records (p.16)

5. client does *not* send DNS update with TSIG, instead it goes back
   to step 2

Looking closely at the TSIG server response, we noticed that Samba
uses DNS name compression [1] in the TSIG record (p.16, answer record,
name field).

Comparing against DDNS updates between a Windows DC and a Windows
client, we found that server and client avoid name compression in TKEY
and TSIG records.

Changing the Samba DNS response marshalling routines to not use name
compression fixed the interop issue and the tested Windows clients now
happily do TSIG protected DDNS updates (after fixing two related bugs
in our code [2]).

Neither RFC 2845, nor RFC 3645 or MS-GSSA cover this and mention how
names in TSIG and TKEY records should be marshalled.

Questions:

Can you please confirm, that by sticking to the rule of "don't use
name compression in TSIG and TKEY records" we can avoid all interop
issues with Windows clients in this area?

Should this be added to MS-GSSA?

Thanks!
-Ralph

[1] RFC 1035, 4.1.4. Message compression
[2] <https://git.samba.org/?p=slow/samba.git;a=log;h=refs/heads/dns-tkey>

["secure-updates-fail2-4.3.1.pcapng" (application/octet-stream)]

_______________________________________________
cifs-protocol mailing list
cifs-protocol@lists.samba.org
https://lists.samba.org/mailman/listinfo/cifs-protocol


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic