<div class="gmail_quote">On Wed, Mar 28, 2012 at 9:40 AM, Mikel <span dir="ltr"><<a href="mailto:mgilsanz@grupoavalon.es">mgilsanz@grupoavalon.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div>
Thank you Steve<br>
<br>
The matter is that, I have configurated <a href="http://ldap-aliases.cf" target="_blank">ldap-aliases.cf</a> <br><div class="im">
<br>
<font color="#0000ff">server_host = 10.48.1.198</font><br>
<font color="#0000ff">bind = yes</font><br>
<font color="#0000ff">version = 3</font><br>
<font color="#0000ff">bind_dn= cn=sogoprueba,cn=Users,dc=avalon,dc=com,dc=es</font><br>
</div><font color="#0000ff">bind_pw= password</font><br>
<font color="#0000ff">search_base = dc=Avalon,dc=com,dc=es</font><br>
<font color="#0000ff">ldap_filter = *</font><br>
<font color="#0000ff">result_attribute = mail</font><br>
<font color="#0000ff">#special_result_filter = %<a href="mailto:u@%25d" target="_blank">u@%d</a></font><br>
<br>
But if I run:<br>
<br>
<font color="#0000ff">postmap -q <a href="mailto:mgilsanz@grupoavalon.es" target="_blank">mgilsanz@grupoavalon.es</a> ldap:/etc/postfix/<a href="http://ldap-aliases.cf" target="_blank">ldap-aliases.cf</a></font><br>
<br>
or<div class="im"><br>
<br>
<font color="#0000ff">postmap -q mgilsanz ldap:/etc/postfix/<a href="http://ldap-aliases.cf" target="_blank">ldap-aliases.cf</a></font><br>
<br>
<br></div>
I don't get nothing....and I think that the problem about postfix is not able to find users.<br>
<br>
If I query to ldap with ldapsearch:<br>
<br>
<font color="#0000ff">ldapsearch -P3 -a never -x -H ldap://<a href="http://10.48.1.198" target="_blank">10.48.1.198</a> -D 'cn= sogoprueba,cn=Users,dc=avalon,dc=com,dc=es' -w password -b 'dc=Avalon,dc=com,dc=es' '(cn=*)' mail | grep mgilsanz </font><font color="#000000"> </font><font color="#333300">the result is:</font><br>
<br>
mail: <a href="mailto:mgilsanz@grupoavalon.es" target="_blank">mgilsanz@grupoavalon.es</a><br>
<br>
I answer about the filter on <a href="http://ldap-aliases.cf" target="_blank">ldap-aliases.cf</a> of postfix<br>
<br>
how about<font color="#333300"> </font><font color="#0000ff">result_attribute = mail</font><font color="#333300"> in <a href="http://ldap-aliases.cf" target="_blank">ldap-aliases.cf</a> because if I am be able to do ldapsearch</font><br>
and find user mgilsanz How can I do the same query in <a href="http://ldap-aliases.cf" target="_blank">ldap-aliases.cf</a> to find users in my domain?<br>
<br>
Any idea, I think that the problem is Ldap query but I don't know what is wron...<br></div></blockquote><div><br></div><div>First, why the difference dc=Avalon,dc=com,dc=es and dc=avalon,dc=com,dc=es?</div><div><br></div>
<div>Also, ldap_filter should be query_filter and should have an expression with attributes in it. Your ldapsearch command is more complex than your postfix <a href="http://ldap-aliases.cf">ldap-aliases.cf</a>. Can you please show the ldif of a single user?</div>
<div><br></div><div>Steve </div></div>