From: Peter M. <pet...@ma...> - 2002-10-24 15:18:51
|
Hi, 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 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,=20 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=20 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 --=20 Peter Marschall | eMail: pet...@ma... Scheffelstra=DFe 15 | pet...@is... 97072 W=FCrzburg | Tel: 0931/14721 PGP: D7 FF 20 FE E6 6B 31 74 D1 10 88 E0 3C FE 28 35 |