Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Installing, Configuring and Administering the Kerberos Server V 2.0 on HP-UX 11i: HP 9000 Networking > Chapter 8 Inter-realm

Hierarchical Inter-realm Trust

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Hierarchical inter-realm authentication is used when one realm does not have a direct path to its destination realm, but has a path to an intermediate realms.

A Hierarchical Chain of Trust

Inter-realm trust can be transitive, for example if realm A trusts B and B trusts C, then a client in A can get a ticket from C by following the trust path from A to B to C.

For example, realm 1 could be X.Y.A and realm 2 could be X.Y.C, and realm 3 could be X.Y.B with the following direct trust relationships established between them.

  • Realm X.Y.A has a direct trust link to realm X.Y.B.

  • Realm X.Y.B has a direct trust link to realm X.Y.C.

In such a configuration, the client "walks" the realm tree from node X.Y.A to X.Y.C by requesting an inter-realm TGT from each intermediate realm, X.Y.B, until it obtains the service ticket from X.Y.C.

Although creating such hierarchical trusts is more efficient than attempting to configure each server with knowledge of all possible inter-realm trust relationships, the client must still perform the realm tree computation, map each realm to a security server hostname, and request an inter-realm TGT from each realm in the path.

In addition, the Kerberos protocol requires the client to know the exact realm of each service it wishes to authenticate to. In the last example, the client in X.Y.A must know that the service it wants to access belongs to realm X.Y.C.

Hierarchical Inter-realm Example

Let us assume that a client in the realm RED.BLUE.COM needs to authenticate to a service located in the realm GREEN.YELLOW.COM, but realm RED.BLUE.COM does not have a direct trust relationship established with the realm GREEN.YELLOW.COM.

Now VIBGYOR.INDIGO.COM has a direct trust relationship established with both RED.BLUE.COM and GREEN.YELLOW.COM. Hence, RED.BLUE.COM can obtain an inter-realm ticket through the intermediate realm, VIBGYOR.INDIGO.COM. The client in RED.BLUE.COM requests for an inter-realm ticket from VIBGYOR.INDIGO.COM, and can then use this inter-realm ticket, that was obtained, to contact GREEN.YELLOW.COM for a ticket to use a service in its realm.

Hierarchical Inter-realm Configuration

To configure realms to perform hierarchical inter-realm authentication, the following steps are necessary in each realm - local realm, intermediate realm(s), and target realm.

  • Add an inter-realm principal (krbtgt/REALM2@REALM1) to the principal database to allow the local realm to authenticate with the intermediate realm and the intermediate realm to authenticate with another intermediate or the target realm.

  • If you also want the intermediate or target realm to authenticate with the local realm or another intermediate realm, two-way, you must add a second inter-realm principal (krbtgt/REALM1@REALM2) to the database

These actions are described in detail in the following sections. The example configuration in this section uses the inter-realm authentication principals shown in the figure below. The relationships are defined as follows:

  • krbtgt/BAMBI.COM@FINANCE.JUNGLE.COM allows the server in BAMBI.COM to accept tickets from FINANCE.JUNGLE.COM

  • krbtgt/IT.JUNGLE.COM@BAMBI.COM allows the server in IT.JUNGLE.COM to accept tickets from BAMBI.COM

    Figure 8-1 Hierarchical Inter-realm Configuration

    Hierarchical Inter-realm Configuration

For inter-realm authentication in the other direction, two-way hierarchical inter-realm authentication, these principals must also be added:

  • krbtgt/FINANCE.JUNGLE.COM@BAMBI.COM allows the server in FINANCE.JUNGLE.COM to accept tickets from BAMBI.COM

  • krbtgt/BAMBI.COM@IT.JUNGLE.COM allows the server in BAMBI.COM to accept tickets from IT.JUNGLE.COM

  1. Steps for configuring the Local Realm

    For these steps, the local realm is FINANCE.JUNGLE.COM and the intermediate realm is BAMBI.COM.

    In the FINANCE.JUNGLE.COM realm:

    1. Using the Kerberos Server's Administrator in the FINANCE.JUNGLE.COM realm, add the krbtgt/BAMBI.COM@FINANCE.JUNGLE.COM principal, which allows users in the FINANCE.JUNGLE.COM realm to authenticate with the server in the BAMBI.COM realm.

      Enable the following settings for this principal:

      • Select all Allow attributes.

      • Clear all Require attributes.

      • Provide a password rather than a random key. Remember the password.

      • Record the primary key type and salt type.

      • Record the password key version number.

    2. If the FINANCE.JUNGLE.COM realm also trusts the BAMBI.COM realm, add the krbtgt/FINANCE.JUNGLE.COM@BAMBI.COM principal, which allows users in the BAMBI.COM realm to authenticate to the services in the FINANCE.JUNGLE.COM realm.

    3. Enable the same settings for this principal as for the inter-realm principal, krbtgt/BAMBI.COM@FINANCE.JUNGLE.COM, as mentioned in Step 2.1.

    4. Exit Administrator.

  2. Steps for configuring the Intermediate Realm(s)

    For these steps, the name of the local realm is FINANCE.JUNGLE.COM, the name of the intermediate realm is BAMBI.COM, and the name of the target realm is IT.JUNGLE.COM.

    NOTE: Each intermediate realm has four keys if you are performing two-way inter-realm authentication.

    In the BAMBI.COM realm:

    1. Using the Kerberos Server's Administrator, add the krbtgt/BAMBI.COM@FINANCE.JUNGLE.COM principal, which allows users in the FINANCE.JUNGLE.COM realm to authenticate with the server in the BAMBI.COM realm.

      Enable the same settings for the principal, krbtgt/BAMBI.COM@FINANCE.JUNGLE.COM, as used for the principal, krbtgt/BAMBI.COM@FINANCE.JUNGLE.COM, in the local realm. Refer to Step 1.1.

    2. If the FINANCE.JUNGLE.COM realm also trusts the BAMBI.COM realm, add the krbtgt/FINANCE.JUNGLE.COM@BAMBI.COM principal, which allows users in the BAMBI.COM realm to authenticate with the server in the FINANCE.JUNGLE.COM realm.

    3. Enable the same settings for this principal as for the first krbtgt/FINANCE.JUNGLE.COM@BAMBI.COM, with the same settings enabled as used for the principal in the local realm. Refer to Step 1.3.

    4. Add the krbtgt/IT.JUNGLE.COM@BAMBI.COM principal, which allows users in the BAMBI.COM realm to authenticate with the server in the IT.JUNGLE.COM realm.

    5. Enable the same settings for this principal as for the first krbtgt/IT.JUNGLE.COM@BAMBI.COM, with the same settings enabled as used for the principal in the local realm. Refer to Step 3.1.

    6. If the BAMBI.COM realm also trusts the IT.JUNGLE.COM realm, add the krbtgt/BAMBI.COM@IT.JUNGLE.COM principal, which allows users in the IT.JUNGLE.COM realm to authenticate with the Server in the BAMBI.COM realm.

    7. Enable the same settings for this principal as for the first krbtgt/BAMBI.COM@IT.JUNGLE.COM, with the same settings enabled as used for the principal in the local realm. Refer to Step 3.2.

    8. Exit Administrator.

  3. Steps for configuring the Target Realm

    For these steps, the name of the intermediate realm is BAMBI.COM and the name of the target realm is IT.JUNGLE.COM.

    In the IT.JUNGLE.COM realm:

    1. Using HP's Kerberos Server Administrator, add the krbtgt/IT.JUNGLE.COM@BAMBI.COM principal, which allows users in the BAMBI.COM realm to authenticate with the server in the IT.JUNGLE.COM realm.

      Enable the following settings for this principal:

      • Provide the same password used for the krbtgt/IT.JUNGLE.COM@BAMBI.COM in the intermediate realm as mentioned in Step 2.4 and 2.5.

      • Select all Allow attributes.

      • Clear all Require attributes.

      • Record the primary key type and salt type.

      • Record the password key version number.

    2. If the BAMBI.COM realm also trusts the IT.JUNGLE.COM realm, add the krbtgt/BAMBI.COM@IT.JUNGLE.COM principal, which allows users in the IT.JUNGLE.COM realm to authenticate with the server in the BAMBI.COM realm.

    3. Exit Administrator.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2002 Hewlett-Packard Development Company, L.P.