Re: DN Comparison function
[email protected] (Brian Reichert) Thu, 13 Jun 2013 12:25:59 -0400
| Newsgroups | perl.ldap |
|---|---|
| Message-ID | <[email protected]> |
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 -+- [email protected] -- Brian Reichert <[email protected]> BSD admin/developer at large