On Tuesday, 29. August 2006 19:43, Philip Prindeville wrote: > Right, but that's a fair amount of work. I'm wondering if there might be a > more compact representation of the objectclass stacking hierarchy that > could lend itself to a quick, efficient convenience method for reordering > the objectclass array, such as: > > my %objectClassIndicies = ( > 'top' => 0, > 'person' => 1, > 'organizationalPerson' => 2, > ... > );
It is not possible for the general case with multiple inheritance and auxiliary object classes. You cannot sort them linearly in a unique way. Besides that an object does not need to store all objectclasses up to 'top'. It is perfectly legal for an inetOrgPerson to only have objectclass: inetOrgPerson So you need to walk through the schema anyway to be on the safe side. Hope it helps Peter -- Peter Marschall [EMAIL PROTECTED]