[exim] ldap lookup with multiple return values error

Etusivu
Poista viesti
Vastaa
Lähettäjä: Mike Stephens
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] ldap lookup with multiple return values error

Hi,

I have a problem where I am pulling email addresses back from the
proxyAddresses attribute in a Microsoft AD. Multiple entries are returned.
Is it possible to pull out of $value only the entry I need. For example I
get returned:

smtp:user@???, smtp:user@???, smtp:user@???

but I only want $value to be "user@???" matching on the "@???".

Currently I have the following lookup to pull back the proxyAddresses:

\N^(*?)\.(.*?)\.(.*)@company\.co\.uk "${lookup ldapm \

{user=\"cn=userid,CN=Users,DC=company,DC=co,DC=uk\" \
                                pass=****** \
                                referrals=nofollow \


ldap:///dc=company,dc=co,dc=uk?proxyAddresses?sub?\

(&(objectClass=person)(proxyAddresses=smtp:$3.$2.$1))} \
                                {$value}}fail}"


With the above I get the error message:
               yielded unparseable address: missing or malformed local part
(expected word or "<")


Any help or pointers would be greatly appreciated.

Cheers

Mike
--
View this message in context: http://www.nabble.com/ldap-lookup-with-multiple-return-values-error-tf3922970.html#a11124235
Sent from the Exim Users mailing list archive at Nabble.com.