Re: [exim] Again nested LDAP queries...

Top Page
Delete this message
Reply to this message
Author: Mike Brudenell
Date:  
To: Mike Brudenell via Exim-users
Subject: Re: [exim] Again nested LDAP queries...
Sorry, Marco, you've just exceeded my own abilities; I've never had to use
either listextract or extract myself. Hopefully someone who has done might
give you some idea, or else point you to a way of doing it by some other
means.

Cheers,
Mike B-)

On 30 November 2017 at 21:46, Marco Gaiarin <gaio@???> wrote:

> Mandi! Mike Brudenell via Exim-users
> In chel di` si favelave...
>
> > If you're trying to get to values within a list, try using the
> *listextract*
> > expansion item:
> > https://www.exim.org/exim-html-current/doc/html/spec_
> html/ch-string_expansions.html#SECTexpansionitems
>
> > There's a bit more on it in the *File and database lookups* chapter in
> > the *Format
> > of data returned by LDAP* section, which talks about needing to use
> > *listextract* to parse returned LDAP data as it understands the doubling
> of
> > embedded commas within values:
> > https://www.exim.org/exim-html-current/doc/html/spec_
> html/ch-file_and_database_lookups.html#SECID71
>
> OK, read both. But still i've no clue how to use that... 'listextract'
> extract only ONE field, and DN can have a variable set of comma-separated
> parts, not fixed ones...
>
> Eg, i can do:
>
>         ${listextract{'odd'}{<, CN=sir,,OU=Users,,OU=FVG,,DC=
> ad,,DC=fvg,,DC=lnf,,DC=it}{$value}}

>
> but there's no 'odd' in listextract number field, only a integer...
>
>
> Sorry, but really i don't understood how listextract can help me....
>
>
> Thanks.
>
> --
> La BBS e' come il mio frigorifero... da tanti anni fa in silenzio un
> ottimo
> lavoro, al punto tale che mi accorgo della sua utilita' solo quando
> manca la
> corrente e tutto quello che contiene diventa inutilizzabile. (E.
> Margelli)
>
>
>
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>




--
Systems Administrator & Change Manager
IT Services, University of York, Heslington, York YO10 5DD, UK
Tel: +44-(0)1904-323811

Web: www.york.ac.uk/it-services
Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm