<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Empty postmap query when searchin otherMailbox attibute]]></title>
		<link>https://forum.iredmail.org/topic19690-empty-postmap-query-when-searchin-othermailbox-attibute.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic19690.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Empty postmap query when searchin otherMailbox attibute.]]></description>
		<lastBuildDate>Thu, 28 Mar 2024 11:04:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Empty postmap query when searchin otherMailbox attibute]]></title>
			<link>https://forum.iredmail.org/post88498.html#p88498</link>
			<description><![CDATA[<p>I finally found the solution! Problem with Active Directory is that it uses port 3268, wich is Global Catalog port! So, not every attribute is avalieble! Including otherMailbox, proxyAddresses and so on...<br />It took me a while to solve this, but I&#039;ve found this script:</p><p>&lt;code&gt;<br />ldapFilter = &quot;(&amp;(objectClass=attributeSchema)(isMemberOfPartialAttributeSet=TRUE))&quot;</p><p>Set rootDSE = GetObject(&quot;LDAP://rootDSE&quot;)<br />schemaDN = rootDSE.Get(&quot;schemaNamingContext&quot;)</p><p>Set ado = CreateObject(&quot;ADODB.Connection&quot;)<br />ado.Provider = &quot;ADSDSOObject&quot;<br />ado.Open &quot;ADSearch&quot; <br />Set objectList = ado.Execute(&quot;&lt;LDAP://&quot; &amp; schemaDN &amp; &quot;&gt;;&quot; &amp; ldapFilter &amp; &quot;;lDAPDisplayName;subtree&quot;)</p><p>While Not objectList.EOF<br />&nbsp; &nbsp; attrName = objectList.Fields(&quot;lDAPDisplayName&quot;)<br />&nbsp; &nbsp; WScript.Echo attrName</p><p>&nbsp; &nbsp; objectList.MoveNext<br />Wend<br />&lt;/code&gt;</p><p>Script works and shows wich attribute is avalible from GC port.<br />I hope this information helps someone :-)</p>]]></description>
			<author><![CDATA[null@example.com (bartek)]]></author>
			<pubDate>Thu, 28 Mar 2024 11:04:44 +0000</pubDate>
			<guid>https://forum.iredmail.org/post88498.html#p88498</guid>
		</item>
		<item>
			<title><![CDATA[Re: Empty postmap query when searchin otherMailbox attibute]]></title>
			<link>https://forum.iredmail.org/post85902.html#p85902</link>
			<description><![CDATA[<p>Bind dn used in command line and postmap are different.<br />Please use the same bind dn &amp; password as in *.cf file.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 27 Mar 2023 13:31:30 +0000</pubDate>
			<guid>https://forum.iredmail.org/post85902.html#p85902</guid>
		</item>
		<item>
			<title><![CDATA[Re: Empty postmap query when searchin otherMailbox attibute]]></title>
			<link>https://forum.iredmail.org/post85899.html#p85899</link>
			<description><![CDATA[<p>Please find attached listing from ldapsearch, postmap query and content of my ad_virtual_aliases_maps.cf file.</p>]]></description>
			<author><![CDATA[null@example.com (bartek)]]></author>
			<pubDate>Sun, 26 Mar 2023 14:05:58 +0000</pubDate>
			<guid>https://forum.iredmail.org/post85899.html#p85899</guid>
		</item>
		<item>
			<title><![CDATA[Re: Empty postmap query when searchin otherMailbox attibute]]></title>
			<link>https://forum.iredmail.org/post85897.html#p85897</link>
			<description><![CDATA[<p>ldapsearch command works properly.</p>]]></description>
			<author><![CDATA[null@example.com (bartek)]]></author>
			<pubDate>Sun, 26 Mar 2023 01:55:57 +0000</pubDate>
			<guid>https://forum.iredmail.org/post85897.html#p85897</guid>
		</item>
		<item>
			<title><![CDATA[Re: Empty postmap query when searchin otherMailbox attibute]]></title>
			<link>https://forum.iredmail.org/post85857.html#p85857</link>
			<description><![CDATA[<p>Try to search with ldap command line tool with same filter.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 22 Mar 2023 09:41:24 +0000</pubDate>
			<guid>https://forum.iredmail.org/post85857.html#p85857</guid>
		</item>
		<item>
			<title><![CDATA[Empty postmap query when searchin otherMailbox attibute]]></title>
			<link>https://forum.iredmail.org/post85845.html#p85845</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.6.2 OPENLDAP edition.<br />- Deployed with iRedMail Easy or the downloadable installer? downloadable installer<br />- Linux/BSD distribution name and version: Debian 11<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP (Active Directory Windows Server 2016) <br />- Web server (Apache or Nginx): nginx<br />- Manage mail accounts with iRedAdmin-Pro? - No<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>Hi, I have successfully installed iRedMail and integrated it with Active Directory. I&#039;m tring to use AD attribute &quot;otherMailbox&quot; to setup multiple aliases, but postmap query always return empty result. I have tried to use the same query with &quot;Users and computers&quot; snap-in and it works. It looks like postmap query cannot search multi-value attributes? Here is my alias config: </p> <br /><p>server_host&nbsp; &nbsp; &nbsp; &nbsp;= 192.168.97.12<br />server_port&nbsp; &nbsp; &nbsp; &nbsp;= 3268<br />version&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 3<br />bind&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = yes<br />start_tls&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = no<br />bind_dn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = cn=vmail,cn=users,dc=example,dc=local<br />bind_pw&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = *******<br />search_base&nbsp; &nbsp; &nbsp; = dc=example,dc=local<br />scope&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = sub<br />debuglevel&nbsp; &nbsp; &nbsp; &nbsp; = 0<br />query_filter&nbsp; &nbsp; &nbsp; &nbsp;= (&amp;(objectClass=user)(otherMailbox=%s))<br />result_attribute = userPrincipalName</p><p>I have also tried proxyAddresses , but without any result. Everything seems to be ok when searching singiel-value attributes.<br />Can any one help me to resolve this issue ?</p><p>Best regards,<br />Bartek</p>]]></description>
			<author><![CDATA[null@example.com (bartek)]]></author>
			<pubDate>Mon, 20 Mar 2023 23:34:36 +0000</pubDate>
			<guid>https://forum.iredmail.org/post85845.html#p85845</guid>
		</item>
	</channel>
</rss>
