1

Topic: Integration/Active.Directory

Hi ZhangHuangbin.

I appreciate the dedicated time

I have another error with te same file (ad_sender_login_maps.cf), now when I run it, I get the following:

postmap: warning: dict_ldap_lookup: Search error -7: Bad search filter
postmap: fatal: table ldap:/etc/postfix/ad_sender_login_maps.cf: query error: Success

and do not get (user@example.com) as guide says.

my ad_sender_login_maps.cf is:

server_host    = mydomain
server_port    = 389
version    = 3
bind         = yes
start_tls     = no
bind_dn     = vmail
bind_pw     = password of vmamil
search_base     = cn=users,dc=mydomain
scope        =sub
query_filter=(&(userPrincipalName=%s)(objectClass=person)(!userAccountControl:1.2.840.113556.1.4.803:=2)))
result_attribute =userPrincipalName
debuglevel    = 0
my ad_sender_login_maps.cf

thanks in advance

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Integration/Active.Directory

reysalad wrote:

postmap: warning: dict_ldap_lookup: Search error -7: Bad search filter
...
query_filter=(&(userPrincipalName=%s)(objectClass=person)(!userAccountControl:1.2.840.113556.1.4.803:=2)))

It's clear in the error message, "bad search filter". If you check your query_filter, you added one more ')'.

3

Re: Integration/Active.Directory

Thank you one more time ZhangHuangbin, you´re right, but I noticed where the parenthesis was missing was in {(!(userAccount...}:

query_filter=(&(userPrincipalName=%s)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))

best regards