Re: [Exim] ldapauth quoting-problem

Top Page
Delete this message
Reply to this message
Author: Nico Erfurth
Date:  
To: Stefan Kaltenbrunner
CC: exim-users@exim.org
Subject: Re: [Exim] ldapauth quoting-problem

On Sat, 4 Jan 2003, Stefan Kaltenbrunner wrote:

> Hi All!
>
> We are currently implementing a fairly large and complex LDAP-based
> mailserver-solution. One of the features we want to provide to our
> customers is SMTP-authentication.
> For this we are using an authenticator like the following which is
> basically copied from the spec.
>
> plain:
>
> driver = plaintext
> public_name = PLAIN
> server_condition=${if ldapauth \
> {user="uid=${quote_ldap:$2},ou=people,o=testzone,c=at" \
> pass="$3" ldap:///}{yes}{no}}
>
> server_prompts = :
> server_set_id= uid=$2
>
> This authenticator works fine until somebody uses a password which is
> itself quoted eg. "abc" (all five characters including the "'s!). The
> resulting error looks like this:
>
> We are now using the ${quote:} operator in this authenticator - is this
> the recommended thing to do or is there another way to solve this problem ?


You should use ${quote_ldap:$3} like you did for the username.

ciao