Re: [Exim] Unknown lookup type ldapauth?

Pàgina inicial
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
A: John Dalbec
CC: Exim-users
Assumpte: Re: [Exim] Unknown lookup type ldapauth?
John Dalbec wrote:
> What am I doing wrong? I have Exim 4.12 (this happened with Exim 4.14
> too, so I downgraded but it didn't help).
>
> login:
> driver = plaintext
> public_name = LOGIN
> server_prompts = "Username:: : Password::"
> server_condition = ${if eq {$2}{}{no}{${lookup ldapauth
> {user="uid=${quote_ldap:$1},ou=People,dc=ysu,dc=edu" pass="$2"
> ldap://ldap.ysu.edu/}{$value} fail}}}
> server_set_id = uid=$1,ou=People,dc=ysu,dc=edu
>
> (The server_condition is one line.)
>
> When I try to authenticate (exim -bh) I get the prompts and then
>
> expansion failed: unknown lookup type "ldapauth"


ldapauth isn't a lookup, it's a condition.

${if ldapauth {\
    user="uid=${quote_ldap:$1},ou=People,dc=ysu,dc=edu" pass="$2" \
    ldap://ldap.ysu.edu/
   }{1}{0}}


IIRC all what exim does here is to bind to the given uid/dn.

Nico