<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Unwashed Meme &#187; ldap</title>
	<atom:link href="http://the.unwashedmeme.com/blog/tag/ldap/feed/" rel="self" type="application/rss+xml" />
	<link>http://the.unwashedmeme.com/blog</link>
	<description>Just a few bad ideas.</description>
	<lastBuildDate>Tue, 25 Jan 2011 18:34:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>mod_ldap LDAPVerifyServerCert simple bind failed</title>
		<link>http://the.unwashedmeme.com/blog/2008/08/08/mod_ldap-ldapverifyservercert-simple-bind-failed/</link>
		<comments>http://the.unwashedmeme.com/blog/2008/08/08/mod_ldap-ldapverifyservercert-simple-bind-failed/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 20:29:17 +0000</pubDate>
		<dc:creator>UnwashedMeme</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://the.unwashedmeme.com/blog/?p=58</guid>
		<description><![CDATA[We&#8217;ve been working for a long time to resolve an error in our ldap setup. Whenever we tried to use the LDAPVerifyServerCert option to verify the ldap server we were talking to is correct, it didn&#8217;t work. Always failed with the unhelpful error: [LDAP: ldap_simple_bind_s() failed][Can't contact LDAP server] We had set the appropriate CA [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been working for a long time to resolve an error in our ldap setup. Whenever we tried to use the <a href="http://httpd.apache.org/docs/2.2/mod/mod_ldap.html#ldapverifyservercert">LDAPVerifyServerCert </a>option to verify the ldap server we were talking to is correct, it didn&#8217;t work. Always failed with the unhelpful error:</p>
<p>[LDAP: ldap_simple_bind_s() failed][Can't contact LDAP server]</p>
<p>We had set the appropriate CA cert with the <a href="http://httpd.apache.org/docs/2.2/mod/mod_ldap.html#ldaptrustedglobalcert">LDAPTrustedGlobalCert</a> option. We could use openssl s_client to verify the certificate chain.  We couldn&#8217;t figure out why it didn&#8217;t work; it was always just simple bind failed.</p>
<p>I finally found it today: <strong>The certificate file needs to be readable by others</strong>. Aparently the apache process reads that file separately than the rest of the config. SSL certificates for mod_ssl appear to be fine to only have root read on it, but not the LDAPTrustedGlobalCert.  It would&#8217;ve been nice if the log message had said something like &#8220;Permission denied reading &#8230;&#8221; or even just &#8220;Couldn&#8217;t read certificate.&#8221;  Unfortunately it falls back to the most generic error there.</p>
]]></content:encoded>
			<wfw:commentRss>http://the.unwashedmeme.com/blog/2008/08/08/mod_ldap-ldapverifyservercert-simple-bind-failed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.567 seconds -->

