OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
RE: LDAP lookup error - dict_ldap_lookup: Search error -7: Bad search filter

From: Jevos, Peter (Peter.Jevosoriflame.com)
Date: Tue Apr 08 2008 - 04:17:15 CDT


> -----Original Message-----
> From: Dudi Goldenberg [mailto:dudikolcore.com]
> Sent: Tuesday, April 08, 2008 10:59 AM
> To: Jevos, Peter; postfix-userspostfix.org
> Subject: RE: LDAP lookup error - dict_ldap_lookup: Search error -7:
Bad
> search filter
>
> >Now i got response :
> >dict_ldap_lookup: Search error 34: Invalid DN syntax. I found in
> >ldap_table(5) "bind_dn = uid=postfix, dc=your, dc=com" so it should
be
> fine
>
> Well,
>
> This is my ldap_relay.cf file, try to adopt it to your environment:
>
> server_host = ldap://ip.add.re.ss:389
> server_base = dc=mydoamin,dc=com
> search_base = dc=mydomain,dc=com
> version = 3
> query_filter = (proxyAddresses=smtp:%s)
> bind = yes
> bind_dn = cn=Administrator,cn=users,dc=mydomain,dc=com
> bind_pw = secret
> result_attribute = mail

Thanks for your help, i tried to adopt it but i got same error as before
So it looks:
server_host = ldap://dc.example.com:3268
search_base = dc=dc dc=example
query_filter =(proxyaddresses=smtp:%s)
result_attribute = mail
scope = sub
version = 3
bind = yes
bind_dn = cn=my_user,ou=Global,ou=Recipients,dc=local,dc=example,dc=com
bind_pw = my_pwd

Otherwise thanks for your time

Br
pet