<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 4:55 AM, Sumit Bose <span dir="ltr"><<a href="mailto:sbose@redhat.com" target="_blank">sbose@redhat.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>On Fri, May 30, 2014 at 09:23:58PM -0300, tizo wrote:<br>
> On Fri, May 30, 2014 at 6:40 PM, Dmitri Pal <<a href="mailto:dpal@redhat.com" target="_blank">dpal@redhat.com</a>> wrote:<br>
><br>
> >  On 05/30/2014 05:00 PM, tizo wrote:<br>
> ><br>
> ><br>
> >     From: Alexander Bokovoy <abokovoy redhat com><br>
> >     To: Sumit Bose <sbose redhat com><br>
> >     Cc: freeipa-users redhat com<br>
> >     Subject: Re: [Freeipa-users] Trust services<br>
> >     Date: Thu, 29 May 2014 02:47:38 -0400 (EDT)<br>
> ><br>
> > ----- Original Message -----<br>
> > > On Wed, May 28, 2014 at 10:47:13AM -0300, tizo wrote:<br>
> > > > I would like to know, if having configured trusts services between<br>
> > FreeIPA<br>
> > > > and Active Directory, allow AD users to authenticate in services that<br>
> > are<br>
> > > > only configured to authenticate against FreeIPA.<br>
> > > ><br>
> > > > For example, having configured the trusts, if I have a mail server<br>
> > that is<br>
> > > > using FreeIPA as its authentication method, can a user A from Active<br>
> > > > Directory, who does not exist in FreeIPA, authenticate in the mail<br>
> > server?.<br>
> > ><br>
> > > It depends a bit on how the users authenticate exactly because IPA<br>
> > > offers Kerberos and LDAP authentication.<br>
> > ><br>
> > > Kerberos should work out of the box because thats one of the trusts<br>
> > > components, trusting Kerberos tickets from the other domain/realm.<br>
> > ><br>
> > > For LDAP authentication you should be able to find the users from the<br>
> > > trusted domain in the compat tree below<br>
> > > cn=compat,dc=your,dc=ipa,dc=domain . To authenticate the user you can<br>
> > > do a LDAP bind with the DN form the compat tree and the password used in<br>
> > > AD.<br>
> > Please note that the latter is valid only for FreeIPA 3.3 and later.<br>
> > FreeIPA 3.0 does not support authentication over LDAP in the compat tree.<br>
> > --<br>
> > / Alexander Bokovoy<br>
> ><br>
> >  Ok. I will definitively use Kerberos. But looking at the diagram of page<br>
> > 22 in<br>
> > <a href="http://www.freeipa.org/images/1/1e/Devconf2013-linux-ad-integration-options.pdf" target="_blank">http://www.freeipa.org/images/1/1e/Devconf2013-linux-ad-integration-options.pdf</a><br>
> > I see that SSSD in the GNU/Linux host is authenticating against both Active<br>
> > Directory and FreeIPA. Does the email server that I mentioned before, have<br>
> > to be configured in a similar way that SSSD in the GNU/Linux host of the<br>
> > example? Or is just enough that it is configured against the FreeIPA<br>
> > Kerberos and nothing else?.<br>
> ><br>
> ><br>
> > You configure client (SSSD) to point to IPA but it will discover that IPA<br>
> > is in trust relations and would know how to deal with tickets coming from<br>
> > AD side.<br>
> > This is why there are two arrows. They show communication.<br>
> ><br>
><br>
> Ok. And what about a mail server?. We are planning to use Zimbra, and we<br>
> want that users from both FreeIPA and AD use it. Could we just configure it<br>
> to authenticate against FreeIPA Kerberos?. Or do we have to make something<br>
> else?.<br>
<br>
</div></div>If your question is about which domain the mail server shall join  then<br>
in general you can choose either AD or IPA because of the trust<br>
relationship. Nevertheless I would recommend to join the IPA domain<br>
because currently the support for IPA users accessing services in the<br>
Active Directory domain is quite limited.<br>
<br>
If you question is about authentication users with their Kerberos<br>
password via SSSD you just have to configure the IPA domain in<br>
sssd.conf. As Dmitri said SSSD will figure out that there is a trust<br>
relationship and will direct authentication request of AD users to a AD<br>
DC. In general no additional configuration is needed. If you are seeing<br>
issues please note the following. AD user are authenticate directly<br>
against AD DC, the IPA server is not involved at all in the<br>
authentication process because AD is the only authoritative source to<br>
authenticate AD users. To be able find find an appropriate AD DC SSSD<br>
uses DNS SRV records, i.e. DNS on the client running SSSD must be<br>
configured to resolve records from the AD domains. By default SSSD on an<br>
IPA client use the IPA server as DNS server and hence the IPA server was<br>
able to create the trust it can be assumed that DNS on the IPA server is<br>
configured correctly.<br>
<br>
To just check DNS you can call<br>
<br>
dig SRV _ldap._tcp.AD.DOMAIN<br>
<br>
(where you replace AD.DOMAIN with your AD DNS domain name) on the IPA<br>
client.<br>
<br>
HTH<br>
<br></blockquote></div><br></div><div class="gmail_extra">Yes, it does helps. Thanks you Sumit, Alexander and Dmitri.<br><br></div><div class="gmail_extra">As for now, I just wanted to know about if there was possible for users from both systems to use the mail server. AFAICS from your responses, it can be possible. I will shortly start to test FreeIPA and to make some proofs of concept to demonstrate that our goals can be reached. At that time, I will probably come back here to ask some technical details.<br>
<br>Again, thanks very much.<br></div></div>