s4-drs: samdb_is_rodc() function and new samdb_rodc() function
authorFernando J V da Silva <fernandojvsilva@yahoo.com.br>
Thu, 15 Apr 2010 20:37:40 +0000 (17:37 -0300)
committerAndrew Tridgell <tridge@samba.org>
Thu, 22 Apr 2010 09:36:15 +0000 (19:36 +1000)
commit57bcdf008fa44d4c550819cbceada968b11be63c
treec404018cef84c2e07b26a48f7618cfa31b76c622
parentc023fc217ed370e5c890c1984da533e0133060d9
s4-drs: samdb_is_rodc() function and new samdb_rodc() function

This patch creates the samdb_is_rodc() function, which looks for
the NTDSDSA object for a DC that has a specific invocationId
and if msDS-isRODC is present on such object and it is TRUE, then
consider the DC as a RODC.
The new samdb_rodc() function uses the samdb_is_rodc() function
for the local server.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source4/dsdb/common/util.c
source4/dsdb/kcc/kcc_topology.c
source4/dsdb/repl/drepl_out_helpers.c
source4/dsdb/repl/drepl_service.c
source4/rpc_server/drsuapi/getncchanges.c
source4/rpc_server/lsa/dcesrv_lsa.c