Skip Menu |

This queue is for tickets about the perl-ldap CPAN distribution.

Report information
The Basics
Id: 2503
Status: resolved
Priority: 0/
Queue: perl-ldap

People
Owner: GBARR [...] CPAN.ORG
Requestors: gbarr [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



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 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.
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
----- End forwarded message -----
Date: Tue, 6 May 2003 10:18:01 +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: Fri, 25 Oct 2002 17:00:56 +0200 To: <Norbert.Klasen@avinci.de> Cc: <perl-ldap-dev@lists.sourceforge.net> From: Peter Marschall <peter.marschall@mayn.de> Subject: Re: Net::LDAP::Filter question Hi Norbert, you are right If you feed canonical_dn() the DN as a array ref (as described in the man page), but sometimes it is useful to have the (de-)quoting functions as standalone routines Maybe Graham will reorg his code a bit to have similar function as separate routines ;-)) Yours / Schönes Wochenende Peter On Friday 25 October 2002 16:19, you 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.
> > These functions for DNs are already part of Net::LDAP::Utils. E.g. > canonical_dn can be used to construct a correctly encoded DN from RDN > values. > > Mit freundlichen Grüßen / Best Regards > > Norbert Klasen > Avinci - The Know-How Company > http://www.avinci.biz
-- 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 ------------------------------------------------------- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en Show quoted text
----- End forwarded message -----