<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Cannot connect to ldaps]]></title>
		<link>https://forum.iredmail.org/topic21018-cannot-connect-to-ldaps.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21018.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Cannot connect to ldaps.]]></description>
		<lastBuildDate>Mon, 01 Dec 2025 16:34:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Cannot connect to ldaps]]></title>
			<link>https://forum.iredmail.org/post91494.html#p91494</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Does it work if you replace the 127.0.0.1 by server hostname?</p></blockquote></div><p>I tried with FQDN, no change. Still says Can&#039;t contact LDAP server (-1).</p><div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>FYI interesting article:<br /><a href="https://blog.oholics.net/ldapsearch-syntax-for-simple-ldap-and-sldap/">https://blog.oholics.net/ldapsearch-syn … and-sldap/</a></p></blockquote></div><p>It appears that the -h option has been removed from ldapsearch, so I can&#039;t try the non-URI option this article shows to see if I get the same error.</p>]]></description>
			<author><![CDATA[null@example.com (tomierna)]]></author>
			<pubDate>Mon, 01 Dec 2025 16:34:07 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91494.html#p91494</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cannot connect to ldaps]]></title>
			<link>https://forum.iredmail.org/post91465.html#p91465</link>
			<description><![CDATA[<p>FYI interesting article:<br /><a href="https://blog.oholics.net/ldapsearch-syntax-for-simple-ldap-and-sldap/">https://blog.oholics.net/ldapsearch-syn … and-sldap/</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 26 Nov 2025 01:04:17 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91465.html#p91465</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cannot connect to ldaps]]></title>
			<link>https://forum.iredmail.org/post91464.html#p91464</link>
			<description><![CDATA[<p>Does it work if you replace the 127.0.0.1 by server hostname?<br /></p><div class="codebox"><pre><code>ldapsearch ... -H ldaps://&lt;hostname&gt;:636 ...</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 26 Nov 2025 01:03:59 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91464.html#p91464</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cannot connect to ldaps]]></title>
			<link>https://forum.iredmail.org/post91460.html#p91460</link>
			<description><![CDATA[<div class="codebox"><pre><code>root@mail:~# lsof -i:636
COMMAND     PID     USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
slapd   4170517 openldap   11u  IPv4 1267723477      0t0  TCP *:ldaps (LISTEN)
slapd   4170517 openldap   12u  IPv6 1267723478      0t0  TCP *:ldaps (LISTEN)</code></pre></div><div class="codebox"><pre><code>root@mail:~# systemctl stop nftables
root@mail:~# ldapsearch -v -LL -x -z5 -H ldaps://127.0.0.1:636 -D &#039;cn=vmail,dc=mydomain,dc=com&#039; -w &quot;vmailldappassword&quot; -b &#039;dc=mydomain,dc=com&#039; -s sub &#039;(&amp;(objectclass=mailUser)(enabledService=nextcloud))&#039;
ldap_initialize( ldaps://127.0.0.1:636/??base )
ldap_sasl_bind(SIMPLE): Can&#039;t contact LDAP server (-1)</code></pre></div><p>OpenLDAP is listening on 636. With NFTables turned off, the result is the same.</p>]]></description>
			<author><![CDATA[null@example.com (tomierna)]]></author>
			<pubDate>Tue, 25 Nov 2025 15:49:42 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91460.html#p91460</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cannot connect to ldaps]]></title>
			<link>https://forum.iredmail.org/post91452.html#p91452</link>
			<description><![CDATA[<p>- Is openldap service listening on port 636?<br />- Try to turn off firewall service (nftables) temporarily and try again.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 24 Nov 2025 08:13:32 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91452.html#p91452</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cannot connect to ldaps]]></title>
			<link>https://forum.iredmail.org/post91424.html#p91424</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Did you toggle on the option &quot;Enable LDAP over TLS (port 389) and SSL (636)&quot; in `Server Settings` -&gt; `LDAP Service`?</p></blockquote></div><p>Yes, this was already on.</p>]]></description>
			<author><![CDATA[null@example.com (tomierna)]]></author>
			<pubDate>Fri, 14 Nov 2025 19:44:44 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91424.html#p91424</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cannot connect to ldaps]]></title>
			<link>https://forum.iredmail.org/post91404.html#p91404</link>
			<description><![CDATA[<p>Did you toggle on the option &quot;Enable LDAP over TLS (port 389) and SSL (636)&quot; in `Server Settings` -&gt; `LDAP Service`?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 09 Nov 2025 01:51:03 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91404.html#p91404</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cannot connect to ldaps]]></title>
			<link>https://forum.iredmail.org/post91399.html#p91399</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Did you try &quot;-H ldaps://127.0.0.0<span style="color:red">:636</span>&quot;?</p></blockquote></div><p>Just now, I did, with the same error resulting.</p>]]></description>
			<author><![CDATA[null@example.com (tomierna)]]></author>
			<pubDate>Fri, 07 Nov 2025 19:19:20 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91399.html#p91399</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cannot connect to ldaps]]></title>
			<link>https://forum.iredmail.org/post91398.html#p91398</link>
			<description><![CDATA[<p>Did you try &quot;-H ldaps://127.0.0.0<span style="color:red">:636</span>&quot;?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 07 Nov 2025 02:44:52 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91398.html#p91398</guid>
		</item>
		<item>
			<title><![CDATA[Cannot connect to ldaps]]></title>
			<link>https://forum.iredmail.org/post91397.html#p91397</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release):<br />iRedMail Enterprise v1.3.1<br />- Deployed with iRedMail Easy or the downloadable installer?<br />iRedMail Enterprise<br />- Linux/BSD distribution name and version:<br />Ubuntu 24.04<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL):<br />LDAP<br />- Web server (Apache or Nginx):<br />Apache<br />- Manage mail accounts with iRedAdmin-Pro?<br />iRedmail Enterprise<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>I have been able to integrate some other servers with the LDAP server running on my iRedMail Enterprise server using unencrypted ldap.</p><p>I wish to switch to ldaps on an integration, but I keep getting an error, from either the remote or local machine running an ldapsearch.</p><div class="codebox"><pre><code>ldapsearch -x -b &quot;dc=mydomain,dc=com&quot; -H ldaps://127.0.0.0 -D &quot;cn=vmail,dc=mydomain,dc=com&quot; -W &quot;(&amp;(objectclass=mailUser)(enabledService=nextcloud))&quot;
ldap_sasl_bind(SIMPLE): Can&#039;t contact LDAP server (-1)</code></pre></div><p>I have a valid certificate in slapd.conf.</p><p>I have ldaps:/// in the SLAPD_SERVICES line of /etc/default/slapd.</p><p>TCP ports 389 and 636 are open in the machine firewall.</p><p>lsof -i:636 shows that slapd is listening to port 636.</p><p>Any other troubleshooting steps I might try to get the iRedMail LDAP server to allow connections via ldaps://?</p>]]></description>
			<author><![CDATA[null@example.com (tomierna)]]></author>
			<pubDate>Thu, 06 Nov 2025 17:14:37 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91397.html#p91397</guid>
		</item>
	</channel>
</rss>
