From: Jeffrey P. C. <jpc...@ya...> - 2001-02-23 01:43:33
|
I'm trying to write an or'd search filter for a list of uid values something like: "(|(uid=x)(uid=y)(uid=z))" This works perfectly with the openldap tools against the Netscape 4.12 directory but I get a 'Bad filter' error with Net::LDAP. It seems to me that this filter is valid but clearly it's not. Any ideas as to what's wrong here? Thanks. jpcarter __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/ |
From: David B. <D.B...@ma...> - 2001-02-23 08:29:52
|
It's just a guess, but does the polish notation syntax support the '|' (or) operator with more than two arguments?... or do you have to do it like.... "(|(|(uid=x)(uid=y))(uid=7))" David. At 05:44 PM 2/22/01 -0800, you wrote: >I'm trying to write an or'd search filter for a list >of uid values something like: > >"(|(uid=x)(uid=y)(uid=z))" > >This works perfectly with the openldap tools against >the Netscape 4.12 directory but I get a 'Bad filter' >error with Net::LDAP. It seems to me that this filter >is valid but clearly it's not. Any ideas as to what's >wrong here? > >Thanks. > >jpcarter > >__________________________________________________ >Do You Yahoo!? >Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/ > > -------------------------------------------------------------------- David Bussenschutt Email: D.B...@ma... Senior Computing Support Officer & Systems Administrator/Programmer Location: Griffith University. Information Technology Services Brisbane Qld. Aust. (TEN bldg. rm 1.33) Ph: (07)38757079 -------------------------------------------------------------------- |
From: Jeffrey P. C. <jpc...@ya...> - 2001-02-24 22:33:18
|
That was it. Thanks alot. jpc --- David Bussenschutt <D.B...@ma...> wrote: > It's just a guess, but does the polish notation > syntax support the '|' (or) > operator with more than two arguments?... or do you > have to do it like.... > > "(|(|(uid=x)(uid=y))(uid=7))" > > David. > > > > At 05:44 PM 2/22/01 -0800, you wrote: > >I'm trying to write an or'd search filter for a > list > >of uid values something like: > > > >"(|(uid=x)(uid=y)(uid=z))" > > > >This works perfectly with the openldap tools > against > >the Netscape 4.12 directory but I get a 'Bad > filter' > >error with Net::LDAP. It seems to me that this > filter > >is valid but clearly it's not. Any ideas as to > what's > >wrong here? > > > >Thanks. > > > >jpcarter > > > >__________________________________________________ > >Do You Yahoo!? > >Yahoo! Auctions - Buy the things you want at great > prices! > http://auctions.yahoo.com/ > > > > > > -------------------------------------------------------------------- > David Bussenschutt Email: > D.B...@ma... > Senior Computing Support Officer & Systems > Administrator/Programmer > Location: Griffith University. Information > Technology Services > Brisbane Qld. Aust. (TEN bldg. rm 1.33) > Ph: (07)38757079 > -------------------------------------------------------------------- __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
From: Kurt D. Z. <Ku...@Op...> - 2001-02-24 23:55:38
|
At 05:44 PM 2/22/01 -0800, Jeffrey P. Carter wrote: >I'm trying to write an or'd search filter for a list >of uid values something like: > >"(|(uid=x)(uid=y)(uid=z))" > >This works perfectly with the openldap tools against >the Netscape 4.12 directory but I get a 'Bad filter' >error with Net::LDAP. It seems to me that this filter >is valid but clearly it's not. The above filter is valid. OR and AND operators act upon non-empty sets of filters. |
From: Jeffrey P. C. <jpc...@ya...> - 2001-02-25 18:55:01
|
This fiter works perfectly with the OpenLDAP tools but in order to make it work with the Net::LDAP modules I had to formulate the filter as follows: "(|(uid=x)|((uid=y)(uid=z)))". Thanks for the validity confirmation though because I thought I had it right the first time. jpcarter --- "Kurt D. Zeilenga" <Ku...@Op...> wrote: > At 05:44 PM 2/22/01 -0800, Jeffrey P. Carter wrote: > >I'm trying to write an or'd search filter for a > list > >of uid values something like: > > > >"(|(uid=x)(uid=y)(uid=z))" > > > >This works perfectly with the openldap tools > against > >the Netscape 4.12 directory but I get a 'Bad > filter' > >error with Net::LDAP. It seems to me that this > filter > >is valid but clearly it's not. > > The above filter is valid. OR and AND operators act > upon non-empty sets of filters. > __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |
From: Kurt D. Z. <Ku...@Op...> - 2001-02-25 20:11:15
|
At 10:56 AM 2/25/01 -0800, Jeffrey P. Carter wrote: >"(|(uid=x)|((uid=y)(uid=z)))". That's actually an invalid filter, I assume you meant: (|(uid=x)(|(uid=y)(uid=z))) |
From: Jeffrey P. C. <jpc...@ya...> - 2001-02-26 02:04:18
|
Yes - sorry. jpcarter --- "Kurt D. Zeilenga" <Ku...@Op...> wrote: > At 10:56 AM 2/25/01 -0800, Jeffrey P. Carter wrote: > >"(|(uid=x)|((uid=y)(uid=z)))". > > That's actually an invalid filter, I assume you > meant: > (|(uid=x)(|(uid=y)(uid=z))) > > __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ |