Re: [Exim] LDAP woes

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Lauri Tischler
CC: exim-users@exim.org
Betreff: Re: [Exim] LDAP woes
On Thu, 28 Jun 2001, Lauri Tischler wrote:

> The lookup is here:
> ....
> local_parts = ${extract{cn}{${lookup ldapdn
> {ldap://srvr.efore.fi/??sub?(&(mail=$local_part@$domain)
> (objectclass=newPilotPerson))}}}}


What you are doing here is looking up a list of local parts that will be
checked against the current local part. Since your lookup is based on
the local part, this does not really make any sense.

Perhaps what you are trying to do is to see if the current local part
can be looked up in LDAP? That is different, and requires different
syntax. You want something like

  local_parts = ldapdn;ldap:://srvr.efore.fi/??sub?\
    (&(mail=$local_part@$domain)(objectclass=newPilotPerson))


(Double :: because this option is a list.)

If the lookup succeeds, the driver will run and the data will end up in
$local_part_data.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.