LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-15-2012, 02:03 PM   #16
kennymadsen
LQ Newbie
 
Registered: Aug 2011
Location: Vermont
Distribution: Ubuntu
Posts: 3

Rep: Reputation: Disabled
Smile KDC reply did not match expectations while getting initial credentials = agaom


I came upon this thread after 2 days of frustration. CASE SeNsITive! THank you thank you. I know this is an old thread but it may be just the one to prevent you much headache. This in my opinion is poorly documented in ever Linux Distro I could find. Did I say thank you?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-11-2013, 12:09 PM   #17
miguelangeljma
LQ Newbie
 
Registered: Sep 2012
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by logicalfuzz View Post
I had similar problems. I figured out that krb5.conf requires the realm names to be in upper case. I have converted the domain names (wherever it appears in krb5.conf) to uppercase. Now my krb5.conf looks something like this:
Code:
<..SNIP..>
[libdefaults]
 default_realm = CORP.EXAMPLE.COM
 dns_lookup_realm = true
 dns_lookup_kdc = true

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

<../SNIP..>
Additionally, i involke the kinit command as follows:

Code:
[root@LinuxLS logicalfuzz]# kinit myaccount@corp.example.com
Password for myaccount@corp.example.com:
kinit(v5): KDC reply did not match expectations while getting initial credentials
[root@LinuxLS logicalfuzz]# kinit myaccount@CORP.EXAMPLE.COM
Password for myaccount@CORP.EXAMPLE.COM:
[root@LinuxLS logicalfuzz]#
see? the way you invoke kinit also make a diference.


Regards,
LF.
DUDE! thanks a lot. I took the time to recover my password and login just to thank you. Be good and keep the good job! thank you again.
 
Old 12-06-2018, 04:54 AM   #18
zchege
LQ Newbie
 
Registered: Dec 2018
Posts: 2

Rep: Reputation: Disabled
Thumbs up Complete solution

Thanks very much for the solution.mine worked

Quote:
Originally Posted by logicalfuzz View Post
I had similar problems. I figured out that krb5.conf requires the realm names to be in upper case. I have converted the domain names (wherever it appears in krb5.conf) to uppercase. Now my krb5.conf looks something like this:
Code:
<..SNIP..>
[libdefaults]
 default_realm = CORP.EXAMPLE.COM
 dns_lookup_realm = true
 dns_lookup_kdc = true

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

<../SNIP..>
Additionally, i involke the kinit command as follows:

Code:
[root@LinuxLS logicalfuzz]# kinit myaccount@corp.example.com
Password for myaccount@corp.example.com:
kinit(v5): KDC reply did not match expectations while getting initial credentials
[root@LinuxLS logicalfuzz]# kinit myaccount@CORP.EXAMPLE.COM
Password for myaccount@CORP.EXAMPLE.COM:
[root@LinuxLS logicalfuzz]#
see? the way you invoke kinit also make a diference.


Regards,
LF.
 
Old 04-15-2019, 09:43 AM   #19
daniziz
LQ Newbie
 
Registered: Apr 2019
Posts: 1

Rep: Reputation: Disabled
Hi all,

This is my first post, and I don't want to duplicate threads...

I have a problem with my Kerberos configuration. I've googled about 30 pages and all refer to the same problem (UPPERCASE).

This is my .conf file:

Code:
[libdefaults]
        default_realm = IBYSTECH
        dns_lookup_realm = true
        dns_lookup_kdc = true

[realms]
        IBYSTECH = {
                kdc = NAVISION:88
        }
When I try to kinit as administrator, it always gives me this:

Code:
root@DIZQUIERDO-PC:~# kinit administrator@IBYSTECH
Password for administrator@IBYSTECH: 
kinit: KDC reply did not match expectations while getting initial credentials
root@DIZQUIERDO-PC:~# kinit administrator
Password for administrator@IBYSTECH: 
kinit: KDC reply did not match expectations while getting initial credentials
It's not a problem of passwd because it gives me a wrong passwd message if I write a wrong...

Is there anythig more I can check?

If I ping to kdc Server its ok:

Code:
root@DIZQUIERDO-PC:~# ping NAVISION
PING NAVISION (192.168.0.60) 56(84) bytes of data.
64 bytes from NAVISION (192.168.0.60): icmp_seq=1 ttl=128 time=0.310 ms
64 bytes from NAVISION (192.168.0.60): icmp_seq=2 ttl=128 time=0.147 ms
Regards!
 
Old 07-24-2019, 08:29 AM   #20
gwe'l
LQ Newbie
 
Registered: Jul 2019
Posts: 1

Rep: Reputation: Disabled
If the "UPPERCASE trick" doesn't work like for me, try to invert realm and domain. That's was my problem and kinit was complaining with the same dumb/nonsense error message : "kinit: KDC reply did not match expectations while getting initial credentials".

Or try to view kerberos messages with wireshark if you can, to see what you send, and what kerberos server respond to you that "doesn't match expectations"

Last edited by gwe'l; 07-24-2019 at 08:31 AM.
 
  


Reply

Tags
kerberos



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Reply "post reply" button. IsaacKuo LQ Suggestions & Feedback 16 07-01-2018 02:52 PM
Adding a "Subscribe" button next to "Reply"? pnellesen LQ Suggestions & Feedback 2 06-21-2005 09:12 PM
Take all posts from "Website Suggestions & Feedback" out of the "0 Reply Thread&q t3gah LQ Suggestions & Feedback 7 03-21-2005 07:27 PM
whys is that "df" and "du" dont match? jaredth Linux - Software 2 07-29-2004 01:23 AM
kinit missing from kerberos 5 installation aschmidt Linux - Newbie 1 06-17-2004 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration