[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: escaping '*' in search strings (ITS#275)
I believe this is the same as ITS#247. I've committed a fix
to devel for this but have yet to port an appropriate fix to
1.2.
http://www.openldap.org/devel/cvsweb.cgi/libraries/libldap/search.c.diff?r1=1.22&r2=1.23
Kurt
At 07:17 AM 8/26/99 GMT, noel@burton-krahn.com wrote:
>
>A problem with escaping string for regex? The search string '\*'
>doesn't always get interpreted as matching the literal char '*'.
>
>ldapadd -p $LDAP_PORT -D "$LDAP_BIND" -w $LDAP_PASS << EOF
>dn: cn=noel-star, $LDAP_BASE
>star: a*b
>EOF
>
>(these work ok)
>ldapsearch -p $LDAP_PORT 'star=*'
>ldapsearch -p $LDAP_PORT 'star=a*b'
>
>(these return matches, but they shouldn't)
>ldapsearch -p $LDAP_PORT 'star=a\*'
>ldapsearch -p $LDAP_PORT 'star=\*b'
>
>(this doesn't return a match, but it should)
>ldapsearch -p $LDAP_PORT 'star=*\**'
>
>--Noel
>
>
>
>
>
>
>
>
>