<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="GtkHTML/4.6.5">
</head>
<body>
On Fri, 2013-07-26 at 10:20 -0400, Rob Crittenden wrote:
<blockquote type="CITE">
<pre>
Armstrong, Kenneth Lawrence wrote:
<font color="#737373">> On Fri, 2013-07-26 at 06:21 -0400, Eduardo Minguez wrote:</font>
<font color="#737373">> Ok, if I have time, I'll try with a RHEL 5.8 client today.</font>
<font color="#737373">></font>
<font color="#737373">></font>
<font color="#737373">> As for debug output, this is what I get:</font>
<font color="#737373">></font>
<font color="#737373">> [root@r5-idmclient <<a href="mailto:root@r5-idmclient">mailto:root@r5-idmclient</a>> ~]# ipa-client-install</font>
<font color="#737373">> --server lnxrealmtest01.liberty.edu --domain lnxrealmtest.liberty.edu</font>
<font color="#737373">> --enable-dns-updates --no-ntp --ca-cert-file=/etc/ipa/ca.crt -d</font>
<font color="#737373">> root        : DEBUG    /usr/sbin/ipa-client-install was invoked with</font>
<font color="#737373">> options: {'conf_ntp': False, 'domain': 'lnxrealmtest.liberty.edu',</font>
<font color="#737373">> 'uninstall': False, 'force': False, 'sssd': True,</font>
<font color="#737373">> 'krb5_offline_passwords': True, 'hostname': None, 'permit': False,</font>
<font color="#737373">> 'server': 'lnxrealmtest01.liberty.edu', 'prompt_password': False,</font>
<font color="#737373">> 'mkhomedir': False, 'dns_updates': True, 'preserve_sssd': False,</font>
<font color="#737373">> 'debug': True, 'on_master': False, 'ca_cert_file': '/etc/ipa/ca.crt',</font>
<font color="#737373">> 'realm_name': None, 'unattended': None, 'ntp_server': None, 'principal':</font>
<font color="#737373">> None}</font>
<font color="#737373">> root        : DEBUG    missing options might be asked for interactively</font>
<font color="#737373">> later</font>
<font color="#737373">></font>
<font color="#737373">> root        : DEBUG    Loading Index file from</font>
<font color="#737373">> '/var/lib/ipa-client/sysrestore/sysrestore.index'</font>
<font color="#737373">> root        : DEBUG    Loading StateFile from</font>
<font color="#737373">> '/var/lib/ipa-client/sysrestore/sysrestore.state'</font>
<font color="#737373">> root        : DEBUG    [ipadnssearchkrb]</font>
<font color="#737373">> root        : DEBUG    [ipacheckldap]</font>
<font color="#737373">> root        : DEBUG    Init ldap with: ldap://lnxrealmtest01.liberty.edu:389</font>
<font color="#737373">> root        : ERROR    LDAP Error: Connect error: TLS: hostname does not</font>
<font color="#737373">> match CN in peer certificate</font>
<font color="#737373">> root        : DEBUG    will use domain: lnxrealmtest.liberty.edu</font>
<font color="#737373">></font>
<font color="#737373">> root        : DEBUG    will use server: lnxrealmtest01.liberty.edu</font>
<font color="#737373">></font>
<font color="#737373">> Failed to verify that lnxrealmtest01.liberty.edu is an IPA Server.</font>
<font color="#737373">> This may mean that the remote server is not up or is not reachable</font>
<font color="#737373">> due to network or firewall settings.</font>
<font color="#737373">> Installation failed. Rolling back changes.</font>
<font color="#737373">> IPA client is not configured on this system.</font>
<font color="#737373">></font>
<font color="#737373">></font>
<font color="#737373">> I do have an A record and PTR record for both lnxrealmtest01.liberty.edu</font>
<font color="#737373">> and lnxrealmtest.lnxrealmtest.liberty.edu.</font>
<font color="#737373">></font>
<font color="#737373">> The part that confuses me (I'm still new to the innards of SSL) is this:</font>
<font color="#737373">></font>
<font color="#737373">> DAP Error: Connect error: TLS: hostname does not match CN in peer</font>
<font color="#737373">> certificate</font>
<font color="#737373">></font>
<font color="#737373">> When I look at the cert using:</font>
<font color="#737373">></font>
<font color="#737373">> openssl x509 -in /etc/ipa/ca.crt -noout -text</font>
<font color="#737373">></font>
<font color="#737373">> I see this:</font>
<font color="#737373">></font>
<font color="#737373">> Issuer: O=LNXREALMTEST.LIBERTY.EDU, CN=Certificate Authority</font>
<font color="#737373">>          Validity</font>
<font color="#737373">>              Not Before: Jul 25 18:22:53 2013 GMT</font>
<font color="#737373">>              Not After : Jul 25 18:22:53 2033 GMT</font>
<font color="#737373">>          Subject: O=LNXREALMTEST.LIBERTY.EDU, CN=Certificate Authority</font>
<font color="#737373">></font>
<font color="#737373">></font>
<font color="#737373">> and ...</font>
<font color="#737373">></font>
<font color="#737373">> OCSP - URI:<a href="http://lnxrealmtest01.lnxrealmtest.liberty.edu:80/ca/ocsp">http://lnxrealmtest01.lnxrealmtest.liberty.edu:80/ca/ocsp</a></font>

No, you looked at the wrong certificate.

To look at it use:

# certutil -L -d /etc/dirsrv/slapd-LNXREALMTEST-LIBERTY-EDU -n Server-Cert

rob
</pre>
</blockquote>
<br>
Ok, that makes sense.  The CN in that cert is correct, so I corrected my command.  It's still failing on binding a user it looks like.<br>
<br>
I've attached the complete output.<br>
<br>
-Kenny
</body>
</html>