Re: [exim] multiple results for ldap lookups

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Hubertus von Fürstenberg
Dátum:  
Címzett: exim-users
CC: jgh
Tárgy: Re: [exim] multiple results for ldap lookups
Am 24.02.12 20:13, schrieb Kyle King:
> I added a ${tr to replace the commas with ":" and it now correctly
> matches each item in the returned list.
>
> Kyle A. King
> Quentus Technologies, INC
> Cell: 703-635-9512
> Work: 253-218-6030
> Fax: 206-462-1861
> Email: kyle.king@???
>>
>> Hi,
>> funny enough, my LDAP (Novell E-Directory) returns a newline separated
>> list, YMMV.
>>
>> Here ist my domain-list directive:
>>
>> domainlist local_domains = ${tr {${lookup ldapm \
>>                             {LDAP_OPTIONS
>> ldap:///ou=projectdomains,ou=Services,ou=ISE,o=Fraunhofer,c=DE?ou?one?}}}
>> {\n} {:}}

>>
>> Hope this helps,
>>
>> Hubertus
>>
>



as Jeremy rightly pointed out to me, the ${tr is not needed. You could
in fact try:

domainlist local_domains = <\n ${lookup ldapm \
                            {LDAP_OPTIONS 
ldap:///ou=projectdomains,ou=Services,ou=ISE,o=Fraunhofer,c=DE?ou?one?}}


This is much more elegant, I will change my config tonight.

Thanks,
Hubertus
-- 
Hubertus v. Fuerstenberg
                    MAIL: Fraunhofer Institute for Solar Energy Systems
                          Heidenhofstr. 2, 79110 Freiburg, Germany
                    PHONE: +49 (761) 4588 5153 FAX: +49 (761) 4588 9286
                    EMAIL: hubertus.fuerstenberg@???
-- If at first you don't succeed... so much for skydiving. --