s4:dsdb/rootdse: do helper searches AS_SYSTEM
commita882b41d44b20476a0b1549260e07be3398f9752
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Nov 2012 13:19:34 +0000 (12 14:19 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 30 Nov 2012 16:17:19 +0000 (30 17:17 +0100)
tree2dd94fd9cb4d17611731d0718cf4adc392ff4aaa
parent964d96d2c31211601b8854dd3d532112fd2aaece
s4:dsdb/rootdse: do helper searches AS_SYSTEM

As anonymous users can read all rootdse attributes,
we should do helper searches with DSDB_FLAG_AS_SYSTEM
in order to avoid unnecessary access checks.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source4/dsdb/samdb/ldb_modules/rootdse.c