Commits

Zhang Huangbin  committed 1baf9e4

[ldap] Fixed: Don't return mail list address while querying shadow address of this mail list.
Thanks Soundar Rajan <bsoundarajan _at_ gmail> for the report.

  • Participants
  • Parent commits 5ccac05

Comments (0)

Files changed (1)

File iRedMail/samples/postfix/ldap/virtual_group_maps.cf

 bind_pw         = RBUuFDo31MJbLkJgrwkaKkmRg7Cldw
 search_base     = PH_LDAP_BASEDN
 scope           = sub
-query_filter    = (&(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(memberOfGroup=%s)(shadowAddress=%s))(|(objectClass=mailUser)(objectClass=mailExternalUser)(objectClass=mailList)(objectClass=mailAlias)))
+query_filter    = (&(accountStatus=active)(enabledService=mail)(enabledService=deliver)(|(&(|(memberOfGroup=%s)(shadowAddress=%s))(objectClass=mailUser))(&(memberOfGroup=%s)(!(shadowAddress=%s))(|(objectClass=mailExternalUser)(objectClass=mailList)(objectClass=mailAlias)))))
 result_attribute= mail
 debuglevel      = 0