<p dir=ltr>Ok, friends, you helped me to understand one thing. My test scenario with 2 VMs and no DNS server introduces problems with DNS resolution, which seems to be almost necessary. So now I have 2 tasks:<br>
1) properly configure IPA server to work with DNS;<br>
2) make a FreeBSD host (which is a "non-native" client for FreeIPA) join an IPA domain.<br>
As problems of the first task can be errantly considered to be problems of the second task, I'll change my approach. First I'll try to set up a Fedora FreeIPA server with DNS and add a "native" Fedora FreeIPA client to it. (I guess a Fedora client:<br>
1) should be easier to set up;<br>
2) is guaranteed to work if configured properly.)<br>
Then I'll try to add a FreeBSD client to my working setup and see if the post at FreeBSD forums leads to a working solution. I'll share the results with you, however it may take some time before I set up a working Fedora IPA server - Fedora IPA client setup. If you have any links to proved-to-work tutorials (either in text or video format), please share.<br></p>
<p dir=ltr>Отправлено от <a href="http://r.bluemailapp.com">Blue Mail</a></p>
<head><head><style type="text/css"> pre.blue {white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif; margin-top: 0px} div, p { -ms-word-break: break-all; word-break: break-all; word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; -ms-hyphens: auto;hyphens: auto;} a {color: #226EF9 ;}</style></head><body style="zoom: 100%; "><div class="gmail_quote" >На 14.10.2014, в 23:47, Petr Spacek <<a href="mailto:pspacek@redhat.com" target="_blank">pspacek@redhat.com</a>> написал:п<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">On 14.10.2014 15:06, Alexander Bokovoy wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> On Tue, 14 Oct 2014, Orkhan Gasimov wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> So which way do I go?<br> 1) Change the server VM`s hostname from "<a href="http://ipa1.eurosel.az">ipa1.eurosel.az</a>" to<br> "<a href="http://ipa1.ipa.eurosel.az">ipa1.ipa.eurosel.az</a>" prior to issuing IPA installation command<br> 2) or leave my hostname and contents of /etc/hosts file intact and specify a<br> different FQDN and domain part of the IPA server after issuing IPA<br> installation command?<br> Yes, I know - this is a question Homer Simpson would ask.<br></blockquote> Allocate <a href="http://ipa.eurosel.az">ipa.eurosel.az</a> domain zone to FreeIPA and install FreeIPA with<br> integrated DNS. Essentially, (1), wi!
 th
domain=<a href="http://ipa.eurosel.az">ipa.eurosel.az</a>, realm<br><span> <a class="linkifyplus" href="http://IPA.EUROSEL.AZ" title="Linkified from plain text using Linkify Plus (0): IPA.EUROSEL.AZ">IPA.EUROSEL.AZ</a>.</span><br><br> If you want later to see how this setup scales, all you would need to do<br> is to make sure the other clients would use <a href="http://ipa1.ipa.eurosel.az">ipa1.ipa.eurosel.az</a> as a<br> resolver.<br></blockquote><br>Again - in production it is unnecessary to change resolv.conf if you have <br>proper NS records in place.<br><br>Petr^2 Spacek<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> 14-Oct-14 17:43, Petr Spacek пишет:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #8ae234; padding-left: 1ex;">!
  On
14.10.2014 13:48, Orkhan Gasimov wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"> I need further assistance with this moment:<br> "specify IPA domain name which is sub-domain of you existing domain (e.g.<br> <a href="http://ipa.eurosel.az">ipa.eurosel.az</a>) ".<br><br> Currently my FreeIPA server's hostname is <a href="http://ipa1.eurosel.az">ipa1.eurosel.az</a>, and client's<br> hostname is <a href="http://bsd1.eurosel.az">bsd1.eurosel.az</a>.<br> So when running this command:<br><br> "ipa-server-install --setup-dns --forwarder <ip address="" of="" your="" *existing*<br=""> DNS<br> server>",<br><br> the installation program detects the hostname of the VM (<a href="http://ipa1.eurosel.az">ipa1.eurosel.az</a>) and<br> offers it as IPA server FQDN;<br> then it offers "<a href="http://eurosel.az">eurosel.az</a>" as the domain name. I can make changes right<br> during the installation process (FQ!
 DN = <a
href="http://ipa1.ipa.eurosel.az">ipa1.ipa.eurosel.az</a> & domain =<br> <a href="http://ipa.eurosel.az">ipa.eurosel.az</a>), but then there will be a conflict with the real hostname and<br> records in the /etc/hosts file.<br><br> On the other hand, if I change the hostname of the server VM to<br> "<a href="http://ipa1.ipa.eurosel.az">ipa1.ipa.eurosel.az</a>" prior to running the IPA installation program, then the<br> installation program will offer my server an FQDN of "<a href="http://ipa1.ipa.eurosel.az">ipa1.ipa.eurosel.az</a>"<br> and<br> a domain name of "<a href="http://ipa.eurosel.az">ipa.eurosel.az</a>". But doesn`t it mean that my client`s<br> hostname should also be changed to <a href="http://bsd1.ipa.eurosel.az">bsd1.ipa.eurosel.az</a>? I`d like to avoid<br> this, because in production I won`t be able to change the domain part of FQDN<br> for hundreds of clients.<br></ip></blockquote><br> Clients don't need to be in the same domain as IPA. The IPA domain in D!
 NS<br>
is necessary to store 'metadata' like SRV and TXT records etc.<br><br> You can even experiment with IPA servers which are not in the IPA domain<br> but I'm not sure how much it was tested.<br><br> Alexander can add more details about records required for AD integration<br> and how it should work with clients which are not in the IPA domain.<br><br> Petr^2 Spacek<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #fcaf3e; padding-left: 1ex;"><br> 14-Oct-14 16:29, Petr Spacek пишет:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #e9b96e; padding-left: 1ex;"> On 14.10.2014 11:49, Orkhan Gasimov wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"> I suspected that problems could arise with DNS, and here they are...<br><br> In fact, this entire string: "ipa_server = _srv_ #our FreeIPA server has<br> DNS<br> SRV ent!
 ries"
was taken as-is from the how-to on FreeBSD forums. First I<br> commented it out, because was unsure sure if it was appropriate for my<br> simple<br> setup with just 2 VMs and and a bunch of records in /etc/hosts file. After<br> starting sssd, I could get no IPA data with"getent passwd" or "getent<br> group"<br> commands. They I uncommented it and restarted sssd, but things remained the<br> same.<br><br> Now your advice is:  "...add IP address or hostname to the option<br> ipa_server",<br> but you use an arbitrary name like "<a href="http://vm-120.eurosel.az">vm-120.eurosel.az</a>". Could you please<br> explain which host`s FQDN I should put there? If I use<br> "<a href="http://ipa1.eurosel.az">ipa1.eurosel.az</a>", then<br> sssd won`t start (complains about "...Looping detected inside<br> krb5_get_in_tkt...").<br><br> If it MUST be a DNS server, then everything changes. And the question then<br> becomes: is it possible to set up a test FreeIPA client-server interaction<br> u!
 sing
only 2 VMs and proper records in /etc/hosts instead of a DNS<br> server? Or<br> one MUST add a third VM and make it a DNS server to facilitate<br> client-server<br> interaction?<br></blockquote><br> IPA theoretically can work without DNS records but it requires very careful<br> configuration on clients and is strongly discouraged.<br><br> If you want to do quick & dirty test, do this:<br> $ ipa-server-install --setup-dns --forwarder <ip address="" of="" your="" *existing*<br=""> DNS server><br> + specify IPA domain name which is sub-domain of you existing domain (e.g.<br> <a href="http://ipa.eurosel.az">ipa.eurosel.az</a>)<br> + change /etc/resolv.conf on *all* clients to point to IPA server<br><br> *This is a dirty trick* and it will not work unless all your clients has the<br> IPA server in resolv.conf. It will most likely break when you try to use AD<br> trust with AD clients etc.<br><br><br> *In production environment* you should add NS records for <a
href="http://ipa.eurosel.az">ipa.eurosel.az</a><br> domain to the parent DNS zone to create proper delegation. In that case you<br> don't need to fiddle with resolv.conf on all clients.<br><br> Let me know if you need further assistance.<br><br> Petr^2 Spacek<br><br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"> 14-Oct-14 12:58, Lukas Slebodnik пишет:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"> On (14/10/14 10:23), Orkhan Gasimov wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ccc; padding-left: 1ex;"> Thanks to both of you for the interest.<br> Here`s the info you asked:<br><br> 1. Putting "debug_level = 7" either in [domain] or/and [nss] section<br> of the<br> /usr/local/etc/sssd/sssd.conf file gives nothing in the log. The log file<br> located at /var/log/sssd/sssd.log i!
 s only
populated with data when I make<br> some errors in sssd.conf & sssd process fails to start. But that`s the<br> case<br> only if I deliberately introduce some errors; with current configuration<br> sssd<br> starts successfully.<br><br> 2. My original sssd.conf (without debugs) is as follows (exact copy of<br> what<br> was shown in the post at FreeBSD forums):<br><br><hr><br> [domain/<a href="http://mydomain.com">mydomain.com</a>]<br> cache_credentials = True<br> krb5_store_password_if_offline = True<br> ipa_domain = <a href="http://mydomain.com">mydomain.com</a><br> id_provider = ipa<br> auth_provider = ipa<br> access_provider = ipa<br> ipa_hostname = <a href="http://ipa1.mydomain.com">ipa1.mydomain.com</a><br> chpass_provider = ipa<br> ipa_server = _srv_ #our FreeIPA server has DNS SRV entries<br></blockquote><br> [resolv_getsrv_send] (0x0100): Trying to resolve SRV record of<br> '_ldap._<a href="http://tcp.eurosel.az">tcp.eurosel.az</a>'<br> ...<br> [resolve_srv_done] (!
 0x0020):
SRV query failed: [Domain name not found]<br> [set_srv_data_status] (0x0100): Marking SRV lookup of service 'IPA' as<br> 'not<br> resolved'<br> [be_resolve_server_process] (0x0080): Couldn't resolve server (SRV lookup<br> meta-server), resolver returned (5)<br><br> DNS discovery of IPA server failed, becuase you just configured few<br> hostnames<br> in /etc/hosts<br><br> You can add IP address or hostname to the option ipa_server<br> e.g.<br>     ipa_server = _srv_, <a href="http://vm-120.eurosel.az">vm-120.eurosel.az</a><br><br> BTW In my opinion, it is better to have comment before the optiona and<br> not on<br> the same line :-)<br></blockquote></blockquote></ip></blockquote></blockquote></blockquote></blockquote></blockquote></pre></blockquote></div></body></head>