<div dir="ltr"><div>the client picks Realm based on the domain name of the host.<br>you can control the behavior on the client via the KRB5.conf but the assumption is you have 1 realm per domain or host.<br><br>From man krb5.conf<br>
<br><br>"<br>DOMAIN_REALM SECTION<br>       The [domain_realm] section provides a translation from a hostname to the Kerberos realm name for the services provided by that host.<br><br>       The tag name can be a hostname, or a domain name, where domain names are indicated by a prefix of a period (ā.ā) character.  The value<br>
       of the relation is the Kerberos realm name for that particular host or domain.  Host names and domain names should be in lower case.<br><br>       If no translation entry applies, the hostās realm is considered to be the hostnameās domain portion  converted  to  upper  case.   For<br>
       example, the following [domain_realm] section:<br><br>                 [domain_realm]<br>                      .<a href="http://mit.edu">mit.edu</a> = <a href="http://ATHENA.MIT.EDU">ATHENA.MIT.EDU</a><br>                      <a href="http://mit.edu">mit.edu</a> = <a href="http://ATHENA.MIT.EDU">ATHENA.MIT.EDU</a><br>
                      <a href="http://dodo.mit.edu">dodo.mit.edu</a> = <a href="http://SMS_TEST.MIT.EDU">SMS_TEST.MIT.EDU</a><br>                      .<a href="http://ucsc.edu">ucsc.edu</a> = <a href="http://CATS.UCSC.EDU">CATS.UCSC.EDU</a><br>
<br>       maps <a href="http://dodo.mit.edu">dodo.mit.edu</a> into the <a href="http://SMS_TEST.MIT.EDU">SMS_TEST.MIT.EDU</a> realm, all other hosts in the <a href="http://MIT.EDU">MIT.EDU</a> domain to the <a href="http://ATHENA.MIT.EDU">ATHENA.MIT.EDU</a> realm, and all hosts in<br>
       the <a href="http://UCSC.EDU">UCSC.EDU</a> domain into the <a href="http://CATS.UCSC.EDU">CATS.UCSC.EDU</a> realm.  <a href="http://ucbvax.berkeley.edu">ucbvax.berkeley.edu</a> would be mapped by the default rules to the <a href="http://BERKELEY.EDU">BERKELEY.EDU</a> realm,<br>
       while <a href="http://sage.lcs.mit.edu">sage.lcs.mit.edu</a> would be mapped to the <a href="http://LCS.MIT.EDU">LCS.MIT.EDU</a> realm.<br>"<br><br><br></div>Also the question of trusts is really an issue with cpaths but there is also a compatibility issue betwean the AD Kerberos server and MIT's. its doable with Heimdal kerberos Servers but FreeIPA is not compatible with Heimdal<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 8, 2013 at 3:38 PM, Dmitri Pal <span dir="ltr"><<a href="mailto:dpal@redhat.com" target="_blank">dpal@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 05/08/2013 03:21 PM, Johnny Westerlund wrote:<br>
> I was guessing as much,<br>
> I'ts just that all the existing servers are allready in an existing domain.<br>
> And changing hostnames / fqdn's for all those hosts would hurt.<br>
><br>
><br>
> The DNS "discover" process of the REALM is that based on the fqdn of the principal or is it based on the kerberos realm name?<br>
><br>
> example principal: host/<a href="mailto:host1.foo.bar@EXAMPLE.COM">host1.foo.bar@EXAMPLE.COM</a><br>
><br>
> When trying to discover a KDC by DNS, does it look for the various SRV/TXT like _kerberos._tcp in the foo.bar domain or in the <a href="http://EXAMPLE.COM" target="_blank">EXAMPLE.COM</a> domain?<br>
<br>
<br>
</div>It is based on the DNS name. It does to the DNS server and asks for SRV<br>
records that provide a particular type of service (LDAP, Kerberos ,etc.)<br>
It has nothing to do with the Kerberos realm and principal.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> ________________________________________<br>
> From: Simo Sorce [<a href="mailto:simo@redhat.com">simo@redhat.com</a>]<br>
> Sent: Wednesday, May 08, 2013 9:06 PM<br>
> To: Johnny Westerlund<br>
> Cc: <a href="mailto:freeipa-users@redhat.com">freeipa-users@redhat.com</a><br>
> Subject: Re: [Freeipa-users] Two kerberos realms for same domainname?<br>
><br>
> On Wed, 2013-05-08 at 16:41 +0000, Johnny Westerlund wrote:<br>
>> Hi all<br>
>><br>
>> I'm planning implementing a IPA server at a site where there is<br>
>> allready a working Active directory domain.<br>
>> I would still like the machines from AD and IPA live in the same DNS<br>
>> domain.<br>
>><br>
>><br>
>> Example.<br>
>> AD Domainname = foo.bar<br>
>> AD KERBEROS realm = FOO.BAR<br>
>> a Host principal would look like: host/host1.foo.bar@FOO.BAR<br>
>><br>
>><br>
>> Now i would like to introduce the IPA server under a different realm<br>
>> name but for the same DNS name.<br>
>><br>
>><br>
>> IPA domainname = foo.bar<br>
>> IPA KERBEROS realm = LINUX.FOO.BAR (or what ever)<br>
>> a Host principal would look like: host/host2.foo.bar@LINUX.FOO.BAR<br>
>><br>
>><br>
>> So basicly i would register the hostnames / PTR records in the<br>
>> microsoft DNS and use the IPA kerberos REALM for authentication.<br>
>><br>
>><br>
>> Am i making any sense? is this asking for a world of hurt?<br>
> It is possible, and it will hurt.<br>
><br>
> You will not be able to use trusts between AD and IPA.<br>
> You will not be able to use Kerberos between Windows client and Linux<br>
> Servers and vice-versa.<br>
><br>
> I personally discourage people from doing this if they can and instead<br>
> delegate (or just forward on both sides) a subdomain (like ipa.foo.bar)<br>
> to ipa for all the ipa hosts (server.ipa.foo.bar,<br>
> clientX.ipa.foo.bar ...)<br>
><br>
> Simo.<br>
><br>
> --<br>
> Simo Sorce * Red Hat, Inc * New York<br>
><br>
><br>
> _______________________________________________<br>
> Freeipa-users mailing list<br>
> <a href="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
<br>
<br>
</div></div><div class="im HOEnZb">--<br>
Thank you,<br>
Dmitri Pal<br>
<br>
Sr. Engineering Manager for IdM portfolio<br>
Red Hat Inc.<br>
<br>
<br>
-------------------------------<br>
Looking to carve out IT costs?<br>
<a href="http://www.redhat.com/carveoutcosts/" target="_blank">www.redhat.com/carveoutcosts/</a><br>
<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Freeipa-users mailing list<br>
<a href="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
</div></div></blockquote></div><br></div>