------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugs.exim.org/show_bug.cgi?id=1521 Summary: list separator missing for multiple values returned from ldap (fix included) Product: Exim Version: 4.84 Platform: Other OS/Version: Linux Status: NEW Keywords: work:tiny Severity: bug Priority: medium Component: Lookups AssignedTo: [email protected] ReportedBy: [email protected] CC: [email protected] Hi, given the following LDAP entry x-MailPrimaryAddress: [email protected] x-MailAlternateAddress: [email protected] x-MailAlternateAddress: [email protected] where the x-Mail* attributes have SUP mail, exim -be '${lookup ldap{ldap:///<base>?mail?sub?<filter>}}' returns [email protected]@example.com,[email protected] The comma first comma separatur is missing. In ldap.c the data returned by ldap are appended to a string. The relevant piece of code expects one attribute returned from ldap, but then gets multiple attributes with multiple values. (Multiple attributes are returned because all these attributes are derived from 'mail', thus x-MailPrimaryAddress *IS* 'mail', as x-MailAlternateAddress *IS* 'mail'). The attached patch works for me, and hopefulle does not break other configurations. After appliying the patch the above query returns [email protected],[email protected],[email protected] as one would expect. -- Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email -- ## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
