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 24829200C70 for ; Thu, 20 Apr 2017 04:57:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 229D7160BAA; Thu, 20 Apr 2017 02:57:09 +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 6A323160B9C for ; Thu, 20 Apr 2017 04:57:08 +0200 (CEST) Received: (qmail 5701 invoked by uid 500); 20 Apr 2017 02:57:07 -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 5689 invoked by uid 99); 20 Apr 2017 02:57:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2017 02:57:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D1217CA956 for ; Thu, 20 Apr 2017 02:57:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5fF-5-5xqWOv for ; Thu, 20 Apr 2017 02:57:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 02A045FB64 for ; Thu, 20 Apr 2017 02:57:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 63891E0BDD for ; Thu, 20 Apr 2017 02:57:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1557C21B56 for ; Thu, 20 Apr 2017 02:57:04 +0000 (UTC) Date: Thu, 20 Apr 2017 02:57:04 +0000 (UTC) From: "Jiajia Li (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (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: Thu, 20 Apr 2017 02:57:09 -0000 [ https://issues.apache.org/jira/browse/DIRKRB-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jiajia Li reassigned DIRKRB-615: -------------------------------- Assignee: Jiajia Li > 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 > Assignee: Jiajia Li > > 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.15#6346)