fixed possibleinferiors.py so it matches windows behaviour
authorAndrew Tridgell <tridge@samba.org>
Thu, 26 Mar 2009 11:10:02 +0000 (22:10 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 26 Mar 2009 11:10:02 +0000 (22:10 +1100)
commit3f37342bc0e7c26b6a61490706fe8cec3e6d491e
tree6f0f966e4a38be64b59938e294aa4652d8b025cf
parentb574a09cf54b4ea5a7e0575848725bd6452d2b4d
fixed possibleinferiors.py so it matches windows behaviour

This test code builds the possibleInferiors for every class in the
schema on a target machine, and compares it to the servers
possibleInferiors attribute.

The MS-ADTS spec describes how to calculate possibleInferiors for a
object, but it seems to have some bugs. The spec says that we need to
use AUXCLASSES, and it does not mention the use of the SUBCLASS
tree. In trying to match windows behaviour, I found that I needed to
ignore the AUXCLASSES and build a SUBCLASSES tree.
source4/dsdb/samdb/ldb_modules/tests/possibleinferiors.py