Extra character when using search filter but won't appear in the search result
Wan Mohd Khairi Wan Mohamed <[email protected]> Fri, 14 May 2010 18:21:56 +0800
| Newsgroups | gmane.network.openldap.general |
|---|---|
| Message-ID | <[email protected]> |
--00504502b4ffd1bc2304868b3f7f Content-Type: text/plain; charset=UTF-8 Hi all, We have a little bit of a problem here. When we tried to search in openldap with the following filter:- (&(uid=user1)(customAttribute=somevalue)) ... it returned no results. But when we use a similar filter, with an asterisk (*) appended for the 2nd attribute:- (&(uid=user1)(customAttribute=somevalue*)) We got the result just fine. The funny thing is, the result listed customAttribute value as just 'somevalue'. We were wondering what's the extra character that's preventing us from getting the result when using the filter without the asterisk. Have anyone encountered similar problem before? Thanks. Regards, Wan Mohd Khairi Wan Mohamed wankhairi [at] nervesis [dot] com [dot] my http://www.nervesis.com.my --00504502b4ffd1bc2304868b3f7f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all,<br><br>We have a little bit of a problem here. When we tried to sea= rch in openldap with the following filter:-<br><br>(&(uid=3Duser1)(cust= omAttribute=3Dsomevalue))<br><br>... it returned no results. But when we us= e a similar filter, with an asterisk (*) appended for the 2nd attribute:-<b= r> <br>(&(uid=3Duser1)(customAttribute=3Dsomevalue*))<br><br>We got the re= sult just fine. The funny thing is, the result listed customAttribute value= as just 'somevalue'. We were wondering what's the extra charac= ter that's preventing us from getting the result when using the filter = without the asterisk.<br> <br>Have anyone encountered similar problem before?<br><br>Thanks.<br><br><= span style=3D"color: black;"><div dir=3D"ltr"><div><span style=3D"font-fami= ly: trebuchet ms,sans-serif; font-size: small;"> Regards,<br> <span style=3D"font-weight: bold; color: rgb(0, 0, 102);">Wan Mohd Khairi W= an Mohamed</span><br> <span style=3D"font-style: italic; color: rgb(102, 102, 102);">wankhairi [a= t] nervesis [dot] com [dot] my</span><br> <a style=3D"font-style: italic; color: rgb(102, 102, 102);" href=3D"http://= www.nervesis.com.my" alt=3D"Nervesis Sdn Bhd">http://www.nervesis.com.my</a= > </span></div></div></span><br> --00504502b4ffd1bc2304868b3f7f--