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

Search filter problem

2006-09-27 Thread CZachary
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 that I am use a part of the filter is "employeetype" and the value is "consultan

Re: ldap search filter problem

2003-12-10 Thread Chris Ridd
On 10/12/03 11:17 pm, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hey, > > I tried by authenticating as the root but it still fails.I checked the > config files and it ssays that read on all attributes is allowed for al > lusers. > > I cant understand why just the and operator is failing desp

Re: Fwd: ldap search filter problem

2003-12-10 Thread sharib . khan
Hey, I tried by authenticating as the root but it still fails.I checked the config files and it ssays that read on all attributes is allowed for al lusers. I cant understand why just the and operator is failing despite any restrictions. Any clues sharib

Re: Fwd: ldap search filter problem

2003-12-10 Thread Jim Harle
t; into your perl code. The reverse might not work because Net::LDAP is more > > forgiving about missing outer ()s than ldapsearch. > > > > --Jim Harle > > > > On Fri, 5 Dec 2003, Graham Barr wrote: > > > > > Begin forwarded message: > > >

Re: Fwd: ldap search filter problem

2003-12-09 Thread sharib . khan
iving about missing outer ()s than ldapsearch. > > --Jim Harle > > On Fri, 5 Dec 2003, Graham Barr wrote: > > > Begin forwarded message: > > > From: [EMAIL PROTECTED] > > > Date: 5 December 2003 22:23:49 GMT > > > To: [EMAIL PROTECTED] > > >

Re: Fwd: ldap search filter problem

2003-12-08 Thread Jim Harle
o your perl code. The reverse might not work because Net::LDAP is more forgiving about missing outer ()s than ldapsearch. --Jim Harle On Fri, 5 Dec 2003, Graham Barr wrote: > Begin forwarded message: > > From: [EMAIL PROTECTED] > > Date: 5 December 2003 22:23:49 GMT > > T

Fwd: ldap search filter problem

2003-12-05 Thread Graham Barr
Begin forwarded message: From: [EMAIL PROTECTED] Date: 5 December 2003 22:23:49 GMT To: [EMAIL PROTECTED] Subject: ldap search filter problem Message-Id: <[EMAIL PROTECTED]> Hi, I am having trouble doing a existing filter search on my LDAP directory. My LDAP directory is openLDAP v3 server