Re: [Exim] ldapauth quoting-problem

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Stefan Kaltenbrunner
Data:  
Para: masta
CC: exim-users
Asunto: Re: [Exim] ldapauth quoting-problem
Nico Erfurth wrote:
>
> On Sat, 4 Jan 2003, Stefan Kaltenbrunner wrote:
>
>
>>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.


Sorry I didn't mention this before - but using ${quote_ldap:$3} doesn't
work too as we have already tried earlier:

575 SMTP<< AUTH PLAIN AHVzZXIxACJhYmMi
575 LDAP parameters: user=uid=user1,ou=people,dc=testzone,c=at
pass=%22abc%22 size=0 time=0
575 perform_ldap_search: ldapauth URL ="ldap:///" server=10.14.3.1
port=0 sizelimit=0 timelimit=0
575 after ldap_url_parse: host=10.14.3.1 port=0
575 ldap_initialize with URL ldap://10.14.3.1:389/
575 initialized for LDAP server 10.14.3.1:389
575 LDAP_OPT_X_TLS_TRY set
575 binding with user=uid=user1,ou=people,dc=testzone,c=at
password=%22abc%22
575 Invalid credentials: ldapauth returns FAIL
575 plain authenticator:
575 $1 =
575 $2 = user1
575 $3 = "abc"
575 expanded string: no
575 SMTP>> 535 Incorrect authentication data
575 LOG: MAIN REJECT
575 Authentication failed for (test) [10.14.3.1]: 535 Incorrect
authentication data (set_id=uid=user1)


It seems that exim is using %22abc%22 (which is obviously ldap-quoted as
requested) as the password to bind to the server and fails.


more ideas ?



Stefan

--
mastermind at madness dot at
Stefan Kaltenbrunner