Re: [exim] missing comma in ldap replies

Top Page
Delete this message
Reply to this message
Author: Heiko Schlittermann
Date:  
To: Jeremy Harris
CC: exim-users
Subject: Re: [exim] missing comma in ldap replies
Jeremy Harris <jgh@???> (Mi 27 Aug 2014 13:15:02 CEST):
> On 27/08/14 11:47, Heiko Schlittermann wrote:
> > $ 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?
>
> Doesn't look very feature-full. Exim version?
> "-be -d-all+lookup+expand" output?


Exim version 4.80 #2 built 02-Jan-2013 18:59:17
Exim version 4.83_5-09728d2 #5 built 27-Aug-2014 18:29:17
Exim version 4.84_19-0e941a3 #6 built 27-Aug-2014 18:31:03

I'll try to investigate it further.

,-------
|root@jumper:/home/heiko/src/exim/src/build-Linux-x86_64# ./exim -be '${lookup ldapm{ldap:///dc=schlittermann,dc=de?mail?sub?uid=heiko}}'
|hs@???@m.schlittermann.de,heiko@???
|root@jumper:/home/heiko/src/exim/src/build-Linux-x86_64# ./exim -bV
|Exim version 4.84_19-0e941a3 #6 built 27-Aug-2014 18:31:03
|Copyright (c) University of Cambridge, 1995 - 2014
|(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2014
|Berkeley DB: Berkeley DB 5.1.29: (October 25, 2011)
|Support for: crypteq iconv() GnuTLS Content_Scanning DKIM Old_Demime PRDR OCSP
|Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 nisplus passwd pgsql
|Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa
|Routers: accept dnslookup ipliteral manualroute queryprogram redirect
|Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
|Fixed never_users: 0
|Size of off_t: 8
|Configuration file is /opt/exim/etc/exim.conf
|root@jumper:/home/heiko/src/exim/src/build-Linux-x86_64# ./exim -d-all+expand+lookup -be '${lookup ldapm{ldap:///dc=schlittermann,dc=de?mail?sub?uid=heiko}}'
|Exim version 4.84_19-0e941a3 uid=0 gid=0 pid=3541 D=10100
|Berkeley DB: Berkeley DB 5.1.29: (October 25, 2011)
|Support for: crypteq iconv() GnuTLS Content_Scanning DKIM Old_Demime PRDR OCSP
|Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch ldap ldapdn ldapm mysql nis nis0 nisplus passwd pgsql
|Authenticators: cram_md5 cyrus_sasl dovecot plaintext spa
|Routers: accept dnslookup ipliteral manualroute queryprogram redirect
|Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
|Fixed never_users: 0
|Size of off_t: 8
|Compiler: GCC [4.7.2]
|Library version: GnuTLS: Compile: 2.12.20
|                         Runtime: 2.12.20

|Library version: Cyrus SASL: Compile: 2.1.25
|                             Runtime: 2.1.25 [Cyrus SASL]

|Library version: PCRE: Compile: 8.30
|                       Runtime: 8.30 2012-02-04

|Total 19 lookups
|Library version: MySQL: Compile: 5.5.38 [(Debian)]
|                        Runtime: 5.5.38

|WHITELIST_D_MACROS unset
|TRUSTED_CONFIG_LIST unset
|configuration file is /opt/exim/etc/exim.conf
|log selectors = 00000ffc 00232001
|trusted user
|admin user
|expanding: ldap:///dc=schlittermann,dc=de?mail?sub?uid=heiko
| result: ldap:///dc=schlittermann,dc=de?mail?sub?uid=heiko

|search_open: ldapm "NULL"
|search_find: file="NULL"
| key="ldap:///dc=schlittermann,dc=de?mail?sub?uid=heiko" partial=-1 affix=NULL starflags=0

|LRU list:
|internal_search_find: file="NULL"
| type=ldapm key="ldap:///dc=schlittermann,dc=de?mail?sub?uid=heiko"

|database lookup required for ldap:///dc=schlittermann,dc=de?mail?sub?uid=heiko
|LDAP parameters: user=NULL pass=NULL size=0 time=0 connect=0 dereference=0 referrals=on
|perform_ldap_search: ldapm URL = "ldap:///dc=schlittermann,dc=de?mail?sub?uid=heiko" server=NULL port=0 sizelimit=0 timelimit=0 tcplimit=0
|after ldap_url_parse: host=NULL port=389
|ldap_initialize with URL ldap://:389/
|initialized for LDAP (v3) server NULL:389
|LDAP_OPT_X_TLS_TRY set due to ldap:// URI
|binding with user=NULL password=NULL
|Start search
|ldap_result loop
|LDAP entry loop
|LDAP attr loop x-MailPrimaryAddress:hs@???
|LDAP attr loop x-MailAlternateAddress:heiko@???
|LDAP attr loop x-MailAlternateAddress:heiko@???
|search ended by ldap_result yielding 101
|ldap_parse_result: 0
|ldap_parse_result yielded 0: Success
|LDAP search: returning: hs@???@m.schlittermann.de,heiko@???
|lookup yielded: hs@???@m.schlittermann.de,heiko@???
|expanding: ${lookup ldapm{ldap:///dc=schlittermann,dc=de?mail?sub?uid=heiko}}
| result: hs@???@m.schlittermann.de,heiko@???

|hs@???@m.schlittermann.de,heiko@???
|search_tidyup called
|unbind LDAP connection to NULL:389
|>>>>>>>>>>>>>>>> Exim pid=3541 terminating with rc=0 >>>>>>>>>>>>>>>>

`---------

--
Heiko