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:[EMAIL PROTECTED], smtp:[EMAIL PROTECTED], smtp:[EMAIL PROTECTED]

but I only want $value to be "[EMAIL PROTECTED]" matching on the "@2.com".

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.


-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to