r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
commit0ba8be1e9b7af9050d34a87406ec6e7d32185700
authorAndrew Bartlett <abartlet@samba.org>
Wed, 13 Dec 2006 11:19:51 +0000 (13 11:19 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 13 Dec 2006 11:19:51 +0000 (13 11:19 +0000)
tree0a21c1b603de4109e5cd05d291f039c049060baf
parentac11388e7006783dd0f849a2d82e58b9f31191ef
r20149: Remove the smb.conf distinction between PDC and BDC.  Now the correct
way to setup a Samba4 DC is to set 'server role = domain controller'.

We use the fSMORoleOwner attribute in the base DN to determine the PDC.

This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.

Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.

We also now use the ldb database to determine if we should run the
global catalog service.

In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.

Andrew Bartlett
14 files changed:
source/auth/auth_sam.c
source/dsdb/samdb/samdb.c
source/include/core.h
source/ldap_server/ldap_server.c
source/librpc/idl/samr.idl
source/nbt_server/nbt_server.c
source/nbt_server/nbt_server.h
source/nbt_server/register.c
source/param/loadparm.c
source/rpc_server/common/server_info.c
source/rpc_server/lsa/dcesrv_lsa.c
source/rpc_server/samr/dcesrv_samr.c
source/script/tests/mktestsetup.sh
source/torture/rpc/samr.c