Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8274243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:40:43+00:00 2026-06-08T07:40:43+00:00

I am struggling for a while to put things head to head and solve

  • 0

I am struggling for a while to put things head to head and solve this issue but with no luck.
I am trying to authenticate my java application users through AD using Kerberos.
I have created the KDC as below:

[libdefaults]
default_realm = X.LOCAL
default_tkt_enctypes = des-cbc-md5 des-cbc-crc des3-cbc-sha1 rc4-hmac arcfour-hmac arcfour-hmac-md5 aes128-cts-hmac-sha1-96 
default_tgs_enctypes = des-cbc-md5 des-cbc-crc des3-cbc-sha1 rc4-hmac arcfour-hmac arcfour-hmac-md5 aes128-cts-hmac-sha1-96 
permitted_enctypes = des-cbc-md5 des-cbc-crc des3-cbc-sha1 rc4-hmac arcfour-hmac arcfour-hmac-md5 aes128-cts-hmac-sha1-96 

[realms]
X.LOCAL = {
kdc = machine_name.X.LOCAL 
default_domain = X.LOCAL 
}

[domain_realm]
.X.LOCAL = X.LOCAL

I have defined a new realm as follows:
• Global security>JAAS – Application logins
• Created a new login named “client” and allocated the com.ibm.ws.security.auth.kerberos.Krb5LoginModuleWrapperClient resource.

At code level I am setting the path for the KDC: System.setProperty(java.security.krb5.conf, “KDC” path);

Trying to login:

loginContext = new LoginContext(moduleName, getUsernamePasswordHandler(userName, secret));
loginContext.login();

I am getting:

Login error: com.ibm.security.krb5.KrbException, status code: 14 message: KDC has no support for encryption type

You will say that the encryption type is not supported 🙂 I know.

Q:
1)What am I missing?(stuck here for over 1 week)
2)What am I doing wrong?

Thank you for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T07:40:46+00:00Added an answer on June 8, 2026 at 7:40 am

    Before I will answer to your question, you have to clean up your config an retry again:

    1. Omit *_enctypes and let both negotiate the best enctype.
    2. Do not set the property from inside the app. Pass the krb5.conf location and a env property. This gives you full flexibity.
    3. You should rather work with a ticket cache or a keytab. There is no point to request the credentials over again from the client. This would make Kerberos superfluous. You log in into the OS just once and use the ticket cache.
    4. Do not use DES encryption, it is unsafe and is deprecated.
    5. Make sure that the TGT you have has at least RC4 (Arcfour) encryption.

    Your problem is probably this:

    AD is Windows Server 2008 which has DES disabled but you allow to use DES. This won’t work. DES is disabled in 2008 for a good reason OR your client sends the initial request with AES in the enctypes list on top. A Windows Server 2003 is not capable to deal with that. The most common denominator is RC4-HMAC.

    Use Wireshark to inspect the traffic. This will help you to understand the issue and Kerberos in general tremendously. Write an isolated test program which will help you as a proof of concept.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been struggling with this for quite a while My application contains a list
I've been struggling for this for a while now. I'm trying to gear up
I have been struggling a while with this problem and read a lot but
So i've been struggling with this issue for a while... I want to verify
I'm trying out Plastic SCM but I'm struggling with one particular issue. I would
I know this is very simple, but i've been struggling for a while and
OK so after struggling for a while trying to get cURL to fetch a
I've been struggling for a while with this one; I'll try to explain it
I've been struggling with this for a while. Basically, I want to have two
I have been struggling with this for a while now. given a set of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.