I am integrating an iRedMail mail server with Active Directory (running on Windows 2012 R2) using this (official) guide, but when I try to perform a search in LDAP, I get an error message:
ldap_bind: Invalid DN syntax (34) additional info: invalid DN
I used this command:
ldapsearch -x -h win.basecamp.local -D 'vmail' -W -b 'cn=users,dc=basecamp,dc=local'
ldapsearch -VV. At worst, I would have expectedldap_bind: Invalid credentials (49)here. I can't immediately reproduce that error with only ldapsearch - at least not with the versions I readily have available.