Re: LDAP URI

2012-09-21 Thread Emmanuel Dreyfus
Philip Guenther wrote: > > Not quite, I have one more concern: if * and \2a have the same meaning, > > how do I specify a litteral * (that is * not being a wildcard)? > > You need to read RFC 4515. It even has an *example* about matching > literal '*' characters! This is what I initially unde

Re: LDAP URI

2012-09-21 Thread Philip Guenther
On Fri, 21 Sep 2012, Emmanuel Dreyfus wrote: > On Fri, Sep 21, 2012 at 07:42:53AM +, Emmanuel Dreyfus wrote: > > On Thu, Sep 20, 2012 at 10:21:12PM -0700, Philip Guenther wrote: > > > So: imagine your search filter is this: > > > (cn=Bob ?) > > > which is the *exact same filter* as this: > >

Re: LDAP URI

2012-09-21 Thread Emmanuel Lécharny
Le 9/21/12 2:18 PM, Emmanuel Dreyfus a écrit : On Fri, Sep 21, 2012 at 07:42:53AM +, Emmanuel Dreyfus wrote: On Thu, Sep 20, 2012 at 10:21:12PM -0700, Philip Guenther wrote: So: imagine your search filter is this: (cn=Bob ?) which is the *exact same filter* as this: (cn=Bob

Re: LDAP URI

2012-09-21 Thread Emmanuel Dreyfus
On Fri, Sep 21, 2012 at 07:42:53AM +, Emmanuel Dreyfus wrote: > On Thu, Sep 20, 2012 at 10:21:12PM -0700, Philip Guenther wrote: > > So: imagine your search filter is this: > > (cn=Bob ?) > > which is the *exact same filter* as this: > > (cn=Bob \3f) > (...) > Thanks, everything is clea

Re: LDAP URI

2012-09-21 Thread Emmanuel Dreyfus
On Thu, Sep 20, 2012 at 10:21:12PM -0700, Philip Guenther wrote: > So: imagine your search filter is this: > (cn=Bob ?) > which is the *exact same filter* as this: > (cn=Bob \3f) (...) > ldap://ldap.example.com/???(cn=Bob%20%3f) (...) > ldap://ldap.example.com/???(cn=Bob%20%

Re: LDAP URI

2012-09-20 Thread Philip Guenther
On Fri, 21 Sep 2012, Emmanuel Dreyfus wrote: > Philip Guenther wrote: > > > You asked what characters in an LDAP search filter have to be percent > > encoded when including that search filter in an LDAP URI. That's the > > question I answered above. &

Re: LDAP URI

2012-09-20 Thread Emmanuel Dreyfus
Philip Guenther wrote: > You asked what characters in an LDAP search filter have to be percent > encoded when including that search filter in an LDAP URI. That's the > question I answered above. Oh, right, there was some misunderstanding, I though you were taking about escaping

Re: LDAP URI

2012-09-20 Thread Philip Guenther
t; -> %3c > > > -> %3e > > ? -> %3f > > \ -> %5c > > ^ -> %5e > > ` -> %60 > > { -> %7b > > | -> %7c > > } -> %7d > > You include ? in the list, but in many example I hav

Re: LDAP URI

2012-09-20 Thread Emmanuel Dreyfus
5c > ^ -> %5e > ` -> %60 > { -> %7b > | -> %7c > } -> %7d You include ? in the list, but in many example I have seen, we have a ? unencoded in a LDAP URI. I understand ? needs special treatment when it is part of a dn, filter, attribu

Re: LDAP URI

2012-09-20 Thread Philip Guenther
On Thu, 20 Sep 2012, Emmanuel Dreyfus wrote: > When feeding a LDAP URI to ldap_url_parse(), I understand some characters > may need to be escaped in filters in order to get a litteral: > * => \2a > ( => \28 > ) => \29 > \ => \5c > / => \2f > > Reading the

LDAP URI

2012-09-20 Thread Emmanuel Dreyfus
Hi When feeding a LDAP URI to ldap_url_parse(), I understand some characters may need to be escaped in filters in order to get a litteral: * => \2a ( => \28 ) => \29 \ => \5c / => \2f Reading the man page, I understand %-encoding is not mandatory, but it is of course requ