Re[2]: [Exim] Documentation error - quote_ldap example

Top Page
Delete this message
Reply to this message
Author: Peter A. Savitch
Date:  
To: Brian Candler
Subject: Re[2]: [Exim] Documentation error - quote_ldap example
Hello Brian,

Monday, August 19, 2002, 1:39:35 PM, you wrote:

BC> I think there are three separate cases:


BC> 1. a value inserted into an LDAP URL search filter
BC>       ldap:///dc=example,dc=com???(uid=${quote:$1})
BC>    =>   ${quote:fred*smith}   -->   fred\2asmith  -->  fred%5C2asmith


BC> 2. a value inserted into an LDAP URL basedn
BC>       ldap:///cn=${quote:$1},dc=example,dc=com?.....
BC>    =>   ${quote:fred,smith}   -->   fred\,smith   -->  fred%5C,smith


BC> 3. a value inserted into a USER= dn
BC>       USER=cn=${quote:$1},dc=example,dc=com PASS=$2 ldap:///...
BC>    =>   ${quote:fred,smith}   -->   fred\,smith


[rest skipped]

I've seen this topic a couple of months ago in the list.
I'm afraid You are right about that we've got three kinds of quoting
here: URL, Search Filter and DN.

If You are experienced enough, please explore lookups/ldap.c and give
us a patch.

--
Best regards,
 Peter                            mailto:spam4octan@highway.ru