On Thu, Jun 13, 2013 at 04:01:53PM +0100, Christophe Wolfhugel wrote: > On 13/06/13 15:45, Brian Reichert wrote: > > Why not do a string compare on the output of > > Net::LDAP::Util::canonical_dn()? > > I am not sure this would work as the canonical_dn would not change case for > the attribute values, so: > > SN=A??roport and SN=A??ROPORT would be different in string comparison, but > according to the schema still represent the same RDN.
I admit my suggestion was naive. This post says that not all layers of RDN need be case-insensitive: http://comments.gmane.org/gmane.comp.ldap.umich/323 And goes on to explain that it's schema-dependant. I've not looked at the code for canonical_dn(), but I doubt it's aware of any schema. > -- > Christophe Wolfhugel -+- ch...@wolfhugel.eu -- Brian Reichert <reich...@numachi.com> BSD admin/developer at large