Re: Search filter problem

2006-09-29 Thread Chris Ridd
On 28/9/06 10:43, Alexander Foken <[EMAIL PROTECTED]> wrote: > And a second note: I would prefer to have a placeholder mechanism like > in DBI, so I don't have to care about escaping strings. Something like > filter => ["(&(employeetype=?)(gender=?))",$type,$gender ] The sentiment's good, but I t

Re: Search filter problem

2006-09-28 Thread Graham Barr
On Sep 28, 2006, at 4:43 PM, Alexander Foken wrote: The function Net::LDAP::Filter::_escape($) does exactly what is needed here. It is not exported, not documented, and it seems to be a private function, but as Perl is not Java, you can use it. (But be aware that _escape() may disappear or

Re: Search filter problem

2006-09-28 Thread Alexander Foken
The function Net::LDAP::Filter::_escape($) does exactly what is needed here. It is not exported, not documented, and it seems to be a private function, but as Perl is not Java, you can use it. (But be aware that _escape() may disappear or change its behavior. In the worst case, copy that single

Re: Search filter problem

2006-09-28 Thread Chris Ridd
On 27/9/06 5:21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello all, > > I am writing a simple search script using Net::LDAP. The problem that I > am having is with the filter. > > When I execute my script I get the following error message: "Bad filter at > line 15". > > The attribute th

Re: Search filter problem

2006-09-27 Thread CZachary
Thanks. The second backslash works. Peter Gietz <[EMAIL PROTECTED]> 09/27/2006 01:46 PM To [EMAIL PROTECTED] cc "Colbourn, Charles" <[EMAIL PROTECTED]>, perl-ldap@perl.org Subject Re: Search filter problem Yes now the metacharacter is the backslash, that perl

Re: Search filter problem

2006-09-27 Thread Peter Gietz
Not even an error message. "Colbourn, Charles" <[EMAIL PROTECTED]> 09/27/2006 12:32 PM To <[EMAIL PROTECTED]> cc Subject RE: Search filter problem Hi, according to the rfc, ( and ) are reserved characters (because they delimit clauses in the filter, the sa

RE: Search filter problem

2006-09-27 Thread CZachary
Thanks for you help. I tried this, but now I don't get any out put. Not even an error message. "Colbourn, Charles" <[EMAIL PROTECTED]> 09/27/2006 12:32 PM To <[EMAIL PROTECTED]> cc Subject RE: Search filter problem Hi, according to the rfc, ( and ) are r