<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Anybody can help here?</p>
<p>Thanks<br>
</p>
<div class="moz-cite-prefix">On 02/12/21 17:54, Claudio Corvino
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:674a196e-eeef-d7cf-9fb7-78335ba5b3c3@trustitalia.it">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hi,</p>
<p>I have two IMAP/LMTP Dovecot server in replica (version
2.3.4.1), I use LDAP/AD for <i>userdb, </i>replica is working.</p>
<p>When I do a search like:</p>
<p><i><font size="2">doveadm replicator status '*'</font></i></p>
<p>I receive user duplicated, with and without the domain part,
for example:</p>
<p><i><font size="2">test</font></i></p>
<p><i><font size="2"><a class="moz-txt-link-abbreviated
moz-txt-link-freetext" href="mailto:test@domain.com"
moz-do-not-send="true">test@domain.com</a></font></i></p>
<p>but they are the same user; this lead the replicator doing
twice the work of replication.<br>
</p>
<p>I think this is related to <i>/etc/dovecot/dovecot-ldap.conf</i>
that is configured in this way:<br>
</p>
<p><i><font size="2">hosts = xxx</font></i></p>
<i><font size="2">base = dc=xxx,dc=xxx<br>
ldap_version=3<br>
auth_bind = yes<br>
dn = cn=xxx,cn=Users,dc=xxx,dc=xxx<br>
dnpass = xxx<br>
scope = subtree<br>
user_attrs =
sAMAccountName=home=/mnt/mail-storage-lv0007/%$,=uid=501,=gid=501<br>
pass_attrs = sAMAccountName=user<br>
user_filter = (&(objectclass=person)(samaccountname=%n))<br>
pass_filter= (&(objectclass=person)(samaccountname=%n))<br>
iterate_attrs = sAMAccountName=user<br>
# With following filter we exclude all objects without an
email address, all computers and all inactive accounts<br>
</font></i>
<p><i><font size="2">iterate_filter =
(&(objectCategory=person)(mail=*)(objectClass=user)(!(<a
class="moz-txt-link-freetext"
href="userAccountControl:1.2.840.113556.1.4.803:=2"
moz-do-not-send="true">userAccountControl:1.2.840.113556.1.4.803:=2</a>)))</font><br>
</i></p>
<p><br>
I think that <b>iterate_attrs</b> and <b>iterate_filter</b>
should be fixed, but I don't know how<i>.</i></p>
<p>Please could someone give me any hints?</p>
<p>Thanks<i><br>
</i></p>
<p>Regards<i><br>
</i></p>
</blockquote>
</body>
</html>