Date: | Tue, 6 May 2003 10:17:34 +0100 |
From: | Graham Barr <gbarr [...] pobox.com> |
To: | bug-perl-ldap [...] rt.cpan.org |
Subject: | [Fwd] Re: Net::LDAP::Filter question |
----- Forwarded message from Peter Marschall <peter.marschall@mayn.de> -----
Date: Thu, 24 Oct 2002 17:18:16 +0200
To: Graham Barr <gbarr@pobox.com>
Cc: perl-ldap-dev@lists.sourceforge.net
From: Peter Marschall <peter.marschall@mayn.de>
Subject: Re: Net::LDAP::Filter question
Hi,
On Thursday 24 October 2002 14:51, Graham Barr wrote:
Show quoted text
I was having the same problem a few moths ago, so I wrote
a module for my private use and use in my company.
It provides 4 functions
* quoteFilterValue(@)
* unquoteFilterValue(@)
* quoteDNValue(@)
* unquoteDNValue(@)
The functions with weilter in their names operate on strings
that are going to be pattern parts of LDAP filters,
while the functions with DN in their name operate
on strings that are to become RDN values.
I do not exactly know if theay are correct, but in our company
we use them regularly.
Maybe they can become a part of a future Net::LDAP::Util ;-))
(the first version of Net::LDAP::extraTools contained routines
to split DN, but now that these are in Net::LDAP::Util, I cut them out.
Maybe I can gt rid of this extraTools module ;-)
Yours
Peter
--
Peter Marschall | eMail: peter.marschall@mayn.de
Scheffelstraße 15 | peter.marschall@is-energy.de
97072 Würzburg | Tel: 0931/14721
PGP: D7 FF 20 FE E6 6B 31 74 D1 10 88 E0 3C FE 28 35
Show quoted text
> > I was just wondering if there was a method in Net::LDAP::Filter to
> > do this, I take it the answer is no. (Note, remember to convert the
> > '\' first!)
>
> There is no method to do the escaping, but one might be useful to add.
----- End forwarded message -----