Refreshing the krb5.ini file for Active Directory

Source: Internet
Author: User
Tags hmac ad server

The information in this article applies:
Product: Knowledge Exchange
Version: 6.1.x

Issue
  • How do I configureKrb5.ini
    ?
Resolution
  • The following file is used as a sample:

    [libdefaults]

    default_realm=TESTSERVER.COM

    default_tkt_enctypes=rc4-hmac des-cbc-md5 des-cbc-crc des3-cbc-sha1

    default_tgs_enctypes=rc4-hmac des-cbc-md5 des-cbc-crc des3-cbc-sha1

    permitted_enctypes=rc4-hmac des-cbc-md5 des-cbc-crc des3-cbc-sha1

    kdc_req_checksum_type=2

    ccache_type=2

    ticket_lifetime=600

    [realms]

    TESTSERVER.COM = {

    kdc = AD01.TESTSERVER.COM

    admin_server = AD01.TESTSERVER.COM

    default_domain = TESTSERVER.COM

    }

    CHILD1.TESTSERVER.COM = {

    kdc = PROLDAP01.CHILD1.TESTSERVER.COM

    admin_server = PROLDAP01.CHILD1.TESTSERVER.COM

    default_domain = CHILD1.TESTSERVER.COM

    }

    [domain_realm]

    .testserver.com = TESTSERVER.COM

    testserver.com = TESTSERVER.COM

    .child1.testserver.com = CHILD1.TESTSERVER.COM

    child1.testserver.com = CHILD1.TESTSERVER.COM

    [appdefaults]

    autologin=true

    forward=true

    forwardable=true

    encrypt=true
  1. In the first section, [libdefaults], replace testserver. com with your Active Directory Server domain. This must be in caps.

    [libdefaults]

    default_realm=TESTSERVER.COM

    default_tkt_enctypes=rc4-hmac des-cbc-md5 des-cbc-crc des3-cbc-sha1

    default_tgs_enctypes=rc4-hmac des-cbc-md5 des-cbc-crc des3-cbc-sha1

    permitted_enctypes=rc4-hmac des-cbc-md5 des-cbc-crc des3-cbc-sha1

    kdc_req_checksum_type=2

    ccache_type=2

    ticket_lifetime=600
  2. Next, modify the [realms] section. start the section with the same ad server domain you specified above. on then next line (KDC =), specify any domain controller in that ad server domain. if there are no child realms, ignore the child1.testserver. COM = {} section or remove it.
    [realms]

    TESTSERVER.COM = {

    kdc = AD01.TESTSERVER.COM

    admin_server = AD01.TESTSERVER.COM

    default_domain = TESTSERVER.COM

    }

    CHILD1.TESTSERVER.COM = {

    kdc = PROLDAP01.CHILD1.TESTSERVER.COM

    admin_server = PROLDAP01.CHILD1.TESTSERVER.COM

    default_domain = CHILD1.TESTSERVER.COM

    }
  3. In the [domain_realm] section, continue to use the same server domain (and child domains, if you have any .) follow the formatting shown exactly (spaces between equal signs, the right-hand side capitalized, and initial periods as shown .)
    [domain_realm]

    .testserver.com = TESTSERVER.COM

    testserver.com = TESTSERVER.COM

    .child1.testserver.com = CHILD1.TESTSERVER.COM

    child1.testserver.com = CHILD1.TESTSERVER.COM
  4. In the last section, [appdefaults], no changes shoshould be made.
    [Appdefaults]

    Autologin = true

    Forward = true

    Forwardable = true

    Encrypt = true

    Source of the original article (Click here)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.