s4-dsdb Fix generation of rootDSE domainControllerFunctionality
authorAndrew Bartlett <abartlet@samba.org>
Wed, 2 Feb 2011 03:01:35 +0000 (14:01 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 2 Feb 2011 04:21:13 +0000 (15:21 +1100)
commit2e865bed0aa6d28d2543ca6ad0a9c3d73c7db53f
tree79be74f5eeef0837d25f46f4dbadbfb265561ab3
parente830cb48396b6b480794c5d982f0f75f025e8c14
s4-dsdb Fix generation of rootDSE domainControllerFunctionality

The issue here is that when the samdb calls were removed, this call
relied on going back to the top of the module stack, so as to re-enter
the rootDSE search handler.  It makes more sense to check the @ROOTDSE
record directly, and therefore not to invoke the search() handler
during the init.

Andrew Bartlett
source4/dsdb/samdb/ldb_modules/rootdse.c