directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiajia Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRKRB-615) Can not connect to simplekdc server
Date Thu, 15 Jun 2017 06:57:00 GMT

    [ https://issues.apache.org/jira/browse/DIRKRB-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16050076#comment-16050076
] 

Jiajia Li commented on DIRKRB-615:
----------------------------------

Hi @John Zhuge ,
I want to reproduce this issue, can you help me?
My krb5.conf is:
[libdefaults]
    kdc_realm = EXAMPLE.COM
    default_realm = EXAMPLE.COM
    kdc_tcp_port = 88

[realms]
     EXAMPLE.COM = {
         kdc = localhost:88
      }

And kdc.conf is:
[kdcdefaults]
    kdc_host = localhost
    kdc_allow_udp = false
    kdc_tcp_port = 88
   kdc_realm = EXAMPLE.COM




> 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 {{<service>/}} 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.4.14#64029)

Mime
View raw message