s4-dsdb: rework the NC detection for the descriptor calculation
commitb91dd516b5cba8fd3f78256c4d86b304214ab9fc
authorMatthieu Patou <mat@matws.net>
Tue, 15 Nov 2011 23:56:28 +0000 (16 00:56 +0100)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 16 Nov 2011 06:16:30 +0000 (16 17:16 +1100)
tree90dc6c8ced6a2e127fc46c330db688d5f7e58151
parent80113755c40b2ca04ce8a325463160483ec660b9
s4-dsdb: rework the NC detection for the descriptor calculation

This checks if instanceType attribute is available, and if
INSTANCE_TYPE_IS_NC_HEAD bit is set. If the bit is set, then
the DN is NC root and security descriptor is not inherited
from parent SD.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
source4/dsdb/samdb/ldb_modules/descriptor.c