<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: How to Configure and Integrate iRedMail Services to Samba4 AD DC &#8211; Part 11	</title>
	<atom:link href="https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Sun, 24 May 2020 11:45:57 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Razmo		</title>
		<link>https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-1334998</link>

		<dc:creator><![CDATA[Razmo]]></dc:creator>
		<pubDate>Sun, 24 May 2020 11:45:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=25585#comment-1334998</guid>

					<description><![CDATA[Hello, In the last versions of samba need to use TLS encrypted connections, otherwise, you cannot connect to LDAP.

&lt;code&gt;ldapsearch -H ldap://pdc1.domain.lan -D &quot;cn=test1,cn=users,dc=domain,dc=lan&quot; -W -s base -b &quot;&quot; supportedSASLMechanisms&lt;/code&gt;
&lt;pre&gt;
ldap_bind: Strong(er) authentication required (8)
	additional info: BindSimple: Transport encryption required.
&lt;/pre&gt;
I spent a lot of time-solving this problem. 

Here is my solution:

To fix it, you need to copy &lt;strong&gt;/var/lib/samba/private/tls/ca.pem&lt;/strong&gt; from samba ad server to centos 8 mail server folder &lt;strong&gt;/etc/pki/ca-trust/source/anchors/&lt;/strong&gt; and run &lt;strong&gt;update-ca-trust&lt;/strong&gt;. 

Then comment string beginning at &lt;strong&gt;TLS_CACERT&lt;/strong&gt; in file &lt;strong&gt;/etc/openldap/ldap.conf&lt;/strong&gt;. 

Thereafter we can access to ldaps using simple authentication

&lt;code&gt;ldapsearch -H ldaps://pdc1.domain.lan:636 -x -D &quot;cn=test1,cn=users,dc=domain,dc=lan&quot; -W -s base -b &quot;&quot; supportedSASLMechanisms &lt;/code&gt;

In postfix files &lt;strong&gt;ad_sender_login_maps.cf&lt;/strong&gt;, &lt;strong&gt;ad_virtual_mailbox_maps.cf&lt;/strong&gt;, and &lt;strong&gt;ad_virtual_group_maps.cf&lt;/strong&gt; need modify lines 
&lt;pre&gt; 
server_host     = ldaps://pdc1.domain.lan:636
#server_port     = 636 
&lt;/pre&gt;
In dovecot file &lt;strong&gt;dovecot-ldap.conf&lt;/strong&gt; need modify this lines.
&lt;pre&gt;
uris            = ldaps://pdc1.domain.lan:636
auth_bind       = yes
dn              = vmail@domain.lan
&lt;/pre&gt;
Everything should work now.]]></description>
			<content:encoded><![CDATA[<p>Hello, In the last versions of samba need to use TLS encrypted connections, otherwise, you cannot connect to LDAP.</p>
<p><code>ldapsearch -H ldap://pdc1.domain.lan -D "cn=test1,cn=users,dc=domain,dc=lan" -W -s base -b "" supportedSASLMechanisms</code></p>
<pre>
ldap_bind: Strong(er) authentication required (8)
	additional info: BindSimple: Transport encryption required.
</pre>
<p>I spent a lot of time-solving this problem. </p>
<p>Here is my solution:</p>
<p>To fix it, you need to copy <strong>/var/lib/samba/private/tls/ca.pem</strong> from samba ad server to centos 8 mail server folder <strong>/etc/pki/ca-trust/source/anchors/</strong> and run <strong>update-ca-trust</strong>. </p>
<p>Then comment string beginning at <strong>TLS_CACERT</strong> in file <strong>/etc/openldap/ldap.conf</strong>. </p>
<p>Thereafter we can access to ldaps using simple authentication</p>
<p><code>ldapsearch -H ldaps://pdc1.domain.lan:636 -x -D "cn=test1,cn=users,dc=domain,dc=lan" -W -s base -b "" supportedSASLMechanisms </code></p>
<p>In postfix files <strong>ad_sender_login_maps.cf</strong>, <strong>ad_virtual_mailbox_maps.cf</strong>, and <strong>ad_virtual_group_maps.cf</strong> need modify lines </p>
<pre> 
server_host     = ldaps://pdc1.domain.lan:636
#server_port     = 636 
</pre>
<p>In dovecot file <strong>dovecot-ldap.conf</strong> need modify this lines.</p>
<pre>
uris            = ldaps://pdc1.domain.lan:636
auth_bind       = yes
dn              = vmail@domain.lan
</pre>
<p>Everything should work now.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Elmer Ernesto Cortez Menendez		</title>
		<link>https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-1036789</link>

		<dc:creator><![CDATA[Elmer Ernesto Cortez Menendez]]></dc:creator>
		<pubDate>Mon, 17 Sep 2018 23:37:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=25585#comment-1036789</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-1036025&quot;&gt;lemassykoi&lt;/a&gt;.

Many thanks..:)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-1036025">lemassykoi</a>.</p>
<p>Many thanks..:)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: lemassykoi		</title>
		<link>https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-1036025</link>

		<dc:creator><![CDATA[lemassykoi]]></dc:creator>
		<pubDate>Sat, 15 Sep 2018 22:13:47 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=25585#comment-1036025</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-1035165&quot;&gt;Elmer Ernesto Cortez Menendez&lt;/a&gt;.

you need to change auth part in /etc/sogo/sogo.conf

https://github.com/lemassykoi/temp/blob/master/sogo.conf]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-1035165">Elmer Ernesto Cortez Menendez</a>.</p>
<p>you need to change auth part in /etc/sogo/sogo.conf</p>
<p><a target="_blank" href="https://github.com/lemassykoi/temp/blob/master/sogo.conf" rel="nofollow ugc">https://github.com/lemassykoi/temp/blob/master/sogo.conf</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Elmer Ernesto Cortez Menendez		</title>
		<link>https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-1035165</link>

		<dc:creator><![CDATA[Elmer Ernesto Cortez Menendez]]></dc:creator>
		<pubDate>Thu, 13 Sep 2018 04:53:14 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=25585#comment-1035165</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-921162&quot;&gt;Trevor Lewis&lt;/a&gt;.

Hi, how did you get iRedMail/SOGo integrated with AD users please ?
thanks]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-921162">Trevor Lewis</a>.</p>
<p>Hi, how did you get iRedMail/SOGo integrated with AD users please ?<br />
thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: lemassykoi		</title>
		<link>https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-1001038</link>

		<dc:creator><![CDATA[lemassykoi]]></dc:creator>
		<pubDate>Sun, 03 Jun 2018 20:41:56 +0000</pubDate>
		<guid isPermaLink="false">https://www.tecmint.com/?p=25585#comment-1001038</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-921162&quot;&gt;Trevor Lewis&lt;/a&gt;.

Hi, how did you get iRedMail/SOGo integrated with AD users please ?
thanks]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/integrate-iredmail-to-samba4-ad-dc-on-centos-7/comment-page-1/#comment-921162">Trevor Lewis</a>.</p>
<p>Hi, how did you get iRedMail/SOGo integrated with AD users please ?<br />
thanks</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
