From: Kurt D. Z. <Ku...@Op...> - 2001-02-13 06:10:40
|
At 04:38 PM 2/12/01 +0000, Graham Barr wrote: >On Mon, Feb 12, 2001 at 11:15:47AM -0500, ne...@na... wrote: >> >> Thanks Chris. I think that Mozilla::LDAP might have a canonicalization >> function that should work and be a little bit more complete than my hack : >> -P I haven't tried it yet so I may be wrong. > >I am sure I have posted this before, and I am considering adding it to >Net::LDAP::Util I note your code treats: 1.3.6.1.4.1.1466.0=#04024869,O=Test,C=GB as 1.3.6.1.4.1.1466.0=\04\02Hi,O=Test,C=GB These are not equivalent. That is, the RDN 1.3.6.1.4.1.1466.0=#04024869 can be represented as 1.3.6.1.4.1.1466.0=Hi. This is because later RDN value is the BER encoding of the value, the former is the hex escaped encoding of the value. I suggest you don't to muck with BER encoded values. |