[exim] missing comma in ldap replies

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Heiko Schlittermann
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] missing comma in ldap replies
Hello,

the spec says that commas/double commas are used as delimiter...

But given the following LDAP entry
,------------------------
|# heiko, schlittermann.de
|dn: uid=heiko,dc=schlittermann,dc=de
|..
|x-MailPrimaryAddress: hs@???
|x-MailAlternateAddress: heiko@???
|x-MailAlternateAddress: heiko@???
|description: a
|description: b
|...
`---------------------

As expected I get the multiple values separated by commas:
$ exim -be '${lookup ldapm{ldap:///dc=schlittermann,dc=de?description?sub?uid=heiko}}'
,-----
|a,b
`----

But I did not expect the following:
$ exim -be '${lookup ldapm{ldap:///dc=schlittermann,dc=de?mail?sub?uid=heiko}}'
,------
|hs@???@m.schlittermann.de,heiko@???
`-----             ^^                       ^


x-MailPrimaryAddress and x-MailAlternateAddress are both defined
as SUP mail. So these attributes *are* 'mail' and I expected to see
their values, but I expected to see the comma separator between all of
them.

The corresponding LDAP search
$ root@jumper:~# ldapsearch -LLL -x uid=heiko mail
,------
|dn: uid=heiko,dc=schlittermann,dc=de
|x-MailPrimaryAddress: hs@???
|x-MailAlternateAddress: heiko@???
|x-MailAlternateAddress: heiko@???
`-------


Bug or feature? I'd guess "bug", isn't it?

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: 7CBF764A -
 gnupg fingerprint: 9288 F17D BBF9 9625 5ABC  285C 26A9 687E 7CBF 764A -
(gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B)-