From: <Nor...@av...> - 2002-10-25 14:18:04
|
Hi Peter, > Hi, >=20 > On Thursday 24 October 2002 14:51, Graham Barr wrote: > > > 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=20 > convert the > > > '\' first!) > > > > There is no method to do the escaping, but one might be=20 > useful to add. >=20 > I was having the same problem a few moths ago, so I wrote > a module for my private use and use in my company. >=20 > It provides 4 functions > * quoteFilterValue(@) > * unquoteFilterValue(@) > * quoteDNValue(@) > * unquoteDNValue(@) >=20 > The functions with weilter in their names operate on strings > that are going to be pattern parts of LDAP filters,=20 > 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=FC=DFen / Best Regards Norbert Klasen Avinci - The Know-How Company http://www.avinci.biz |