Content-Language: en-US Message-ID: X-Scanned-BY: MIMEDefang 2.79 on 10.5.11.13 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Delivered-To: bind9-confidential@bugs.isc.org Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=pemensik@redhat.com X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.0 Content-Transfer-Encoding: 8bit From: "Petr Menšík" Date: Thu, 24 Aug 2017 17:02:00 +0200 Return-Path: Subject: nsupdate: GSSAPI fails to authenticate against AD in bind 9.11 X-Original-To: bind9-confidential@bugs.isc.org From pemensik@redhat.com Thu Aug 24 15:02:35 2017 To: bind9-bugs@isc.org Dmarc-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 01B4A7F7B9 X-RT-Incoming-Encryption: Not encrypted Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.pao1.isc.org", Issuer "COMODO RSA Organization Validation Secure Server CA" (not verified)) by bugs.isc.org (Postfix) with ESMTPS id 26903D78AF0 for ; Thu, 24 Aug 2017 15:02:35 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id 0F2CB34A0C5 for ; Thu, 24 Aug 2017 15:02:04 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 01B4A7F7B9 for ; Thu, 24 Aug 2017 15:02:03 +0000 (UTC) Received: from menpad.brq.redhat.com (unknown [10.43.2.33]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9104C7F39A for ; Thu, 24 Aug 2017 15:02:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx.pao1.isc.org MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 24 Aug 2017 15:02:03 +0000 (UTC) content-type: text/plain; charset="utf-8" X-RT-Original-Encoding: iso-8859-2 X-RT-Interface: Email Content-Length: 1871 Hello. Bug was reported on Fedora 26, that nsupdate authenticated by GSSAPI against Active Directory 2012-r2 server is getting refused. It affects all 9.11.x versions I have tried. But works well with 9.10.5. OpenSSL 1.1 and 1.0 gives the same results. Original bug is at [1]. First attachment [2] shows output of 9.11.2 nsupdate, which always fail on update request, that follows successful GSS-TSIG query. However previous version in second attachment [3] made by nsupdate 9.10.5 is successful. New versions report this with -L 10: 24-Aug-2017 10:56:13.904 GSS verify error: GSSAPI error: Major = A token had an invalid Message Integrity Check (MIC), Minor = Packet was replayed in wrong direction. 24-Aug-2017 10:56:13.904 tsig key '1729469141.sig-jetfire.sssdad2012r2.com' (): signature failed to verify(1) I have to admit I could not see anything wrong with authentication at first glance. I tried to find something in source code changes unsucessfully. Then used git bisect to find the failure. According to my bisecting, first commit that broke authentication was change 4079 [RT #37442] [4]. Surprising was it works again in master branch. If my bisecting was correct again, it was fixed (by some unintentional change I think) in commit RT #44029 [5]. I would be grateful if some small fix could be backported into 9.11 branch(es) Regards, Petr [1] https://bugzilla.redhat.com/show_bug.cgi?id=1484451 [2] https://bugzilla.redhat.com/attachment.cgi?id=1317147 [3] https://bugzilla.redhat.com/attachment.cgi?id=1317148 [4] https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commit;h=a8da00ef95ba37b9d071c2b8db1a0c967e060106 [5] https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commit;h=03be5a6b4e6311b14a12dec5b15a62f55586aaf4 -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemensik@redhat.com PGP: 65C6C973