<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Hi, Stephen,<br><br>  Thanks for your reply, and it works great, though I still have one question around the host cert -- what are the typical usage senarios of host cert for IPA clients?<br><font face="Lucida Grande"><span style="font-size:11pt">
</span></font><blockquote><font face="Lucida Grande"><span style="font-size:11pt">><br>><br>>On 4/26/12 6:01 PM, "Stephen Ingram" <sbingram@gmail.com> wrote:<br>><br>>On Thu, Apr 26, 2012 at 3:51 PM, hshhs caca <cao2dan@yahoo.com> wrote:<br>>> Hi folks,<br>>><br>>>  I'm pretty new to freeIPA. And here is a freeIPA installation problem<br>>> encountered in my work. For company policies reasons we can not use <br>>> ipa-client-install on Linux clients, instead manual installation method is<br>>> in use and most of the freeIPA client config files are pushed out with<br>>> cfengine. The problem details/steps are listed below:<br>>><br>>> 1, following the steps at<br>>> http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Identity_Management_Guide/linux-manual.html,<br>>> we registered all clients in IPA master, created and downloaded
 into<br>>> subversion the keytab files for all clients, then use 'ipa-client-install'<br>>> on one clients and save the config files into subversion too.<br>>><br>>> 2, when a new Linux node is newly deployed, we deploy the files below onto<br>>> the nodes: /etc/{krb5.conf, krb5.keytab,nsswitch.conf}, /etc/sssd/sssd.conf,<br>>> /etc/pam.d/{fingerprint-auth-ac, password-auth-ac, system-auth-ac,<br>>> smartcard-auth-ac}, with permissions and ownership setup correctly.<br>>><br>>> 3, then we tested kerberos commands kinit/kdestroy/klist and they were all <br>>> working; we tested 'getent passwd <ipaAccount>', 'getent group ipausers' and <br>>> they were working too, at last we tried ssh/login and they were working as<br>>> expected as well.<br>>><br>>> 4, at this step I could claim that IPA authentication and authorization<br>>> worked successfully. Then I
 continued to try IPA admin command but <br>>> unexpected them failed.<br>>><br>>> [root@ipaclient04 ~]# ipa <br>>> ipa: ERROR: Client is not configured. Run ipa-client-install.<br>>> [root@ipaclient04 ~]# ipa user-find<br>>> ipa: ERROR: Client is not configured. Run ipa-client-install.<br>>> [root@ipaclient04 ~]# <br>>>>><br>>> [root@ipaclient04 ~]# ipa user-find<br>>> ipa: ERROR: cert validation failed for <br>>> "CN=ipamaster.pegaclouds.com,O=PEGACLOUDS.COM" ((SEC_ERROR_UNTRUSTED_ISSUER)<br>>> Peer's certificate issuer has been marked as not trusted by the user.)<br>>> ipa: ERROR: cannot connect to u'https://ipamaster.pegaclouds.com/ipa/xml':<br>>> [Errno -8172] (SEC_ERROR_UNTRUSTED_ISSUER) Peer's certificate issuer has <br>>> been marked as not trusted by the user.<br>>><br>>> 6, So it looks like there are some kinds of new authentication steps
 I have<br>>> missed somewhere -- could not find any clue on the Redhat IPA document for <br>>> further steps --  I tried several times but results are not fruitful. Could<br>>> anyone please shed a light at here? Thanks a lot.<br>><br>>David-<br>><br>>It looks like you didn't import the CA into the host certificate store<br>>in /etc/pki/nssdb. I believe those commands require that you trust<br>>your IPA CA. You can import the CA with:<br>><br>>certutil -A -d /etc/pki/nssdb -n 'IPA CA' -t CT,C,C -a -i /etc/ipa/ca.crt<br>><br><br>That is the magic finger!! and the IPA commands 'ipa user-find', 'ipa host-add', etc <br>works without a glitch.<br>><br>>Also, make sure and generate a host cert for the machine (also in<br>>/etc/pki/nssdb) and have IPA sign it. <br>><br><br>I have to fire up service messagebus, certmonger, and then run 'ipa-getcert request' <br>command to generate a CSR, send it to
 IPA Master to sign it, save certificate at IPA master,<br>and save the host private key / certificate locally inder /etc/pki/nssdb.<br><br>So what are the benefits of host certificates? bascically what are the usage senarios to allure <br>users to go though these efforts to register and renew a host certicate? I am new to host certificate<br>(not httpd SSL certificate) and really not sure where they can be helpful.<br><br>Thanks.<br><br>--David<br><br>>> 5, so I copied the files /etc/ca.crt and /etc/default.conf from a client<br>>> installed with 'ipa-client-install' to this manual client, and tried the <br>>> above command again and them stopped whiling and showed help screen as<br>>> expected; but real IPA administration commands failed with the following<br>>> error prompts:<br><br>
</span></font></blockquote>


</div></body></html>