Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 15FF4200BDA for ; Tue, 13 Dec 2016 21:39:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 147C7160B23; Tue, 13 Dec 2016 20:39:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5F29D160B07 for ; Tue, 13 Dec 2016 21:38:59 +0100 (CET) Received: (qmail 53672 invoked by uid 500); 13 Dec 2016 20:38:58 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 53655 invoked by uid 99); 13 Dec 2016 20:38:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2016 20:38:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 67FD42C03E0 for ; Tue, 13 Dec 2016 20:38:58 +0000 (UTC) Date: Tue, 13 Dec 2016 20:38:58 +0000 (UTC) From: "Marc de Lignie (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRKRB-615) Can not connect to simplekdc server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 13 Dec 2016 20:39:00 -0000 [ https://issues.apache.org/jira/browse/DIRKRB-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15746204#comment-15746204 ] Marc de Lignie commented on DIRKRB-615: --------------------------------------- I worked on tests for Apache TinkerPop based on LoginTestBase and found that setting System.setProperty("javax.security.sasl.qop", "auth-conf"); was enough to disturb UDP communication. There is something fragile there. Have set allowUdp() to false. > Can not connect to simplekdc server > ----------------------------------- > > Key: DIRKRB-615 > URL: https://issues.apache.org/jira/browse/DIRKRB-615 > Project: Directory Kerberos > Issue Type: Bug > Affects Versions: 1.0.0-RC2 > Reporter: John Zhuge > > Started a simplekdc server which generated the following krb5.conf: > {code} > [libdefaults] > kdc_realm = EXAMPLE.COM > default_realm = EXAMPLE.COM > udp_preference_limit = 1 > kdc_tcp_port = 10088 > #_KDC_UDP_PORT_ > [realms] > EXAMPLE.COM = { > kdc = localhost:10088 > } > {code} > But kinit failed to connect to simplekdc server on Mac: > {noformat} > $ kinit jzhuge > jzhuge@EXAMPLE.COM's password: > kinit: krb5_get_init_creds: unable to reach any KDC in realm EXAMPLE.COM, tried 1 KDC > {noformat} > Wireshark showed kinit used UDP, while simplekdc was configured with TCP. Replaced the {{kdc}} option in krb5.conf with {{kdc = tcp/localhost:10088}}, kinit was able to connect. > Suggested fix: > Add {{/}} prefix to option {{kdc}} in the template https://github.com/apache/directory-kerby/blob/trunk/kerby-kerb/kerb-simplekdc/src/main/resources/krb5-template.conf and https://github.com/apache/directory-kerby/blob/trunk/kerby-kerb/kerb-simplekdc/src/main/resources/krb5_udp-template.conf. -- This message was sent by Atlassian JIRA (v6.3.4#6332)