r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
authorAndrew Bartlett <abartlet@samba.org>
Wed, 13 Dec 2006 11:19:51 +0000 (11:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:29:15 +0000 (14:29 -0500)
commitd471e52d23bf89e472c34c58dd9f113e669323a4
tree45368b84653c14680c856cf54469e7e99ebb1720
parent5cc44027dc34812153831bd559e8fb7205d09328
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
(This used to be commit 67d8365e831adf3eaecd8b34dcc481fc82565893)
14 files changed:
source4/auth/auth_sam.c
source4/dsdb/samdb/samdb.c
source4/include/core.h
source4/ldap_server/ldap_server.c
source4/librpc/idl/samr.idl
source4/nbt_server/nbt_server.c
source4/nbt_server/nbt_server.h
source4/nbt_server/register.c
source4/param/loadparm.c
source4/rpc_server/common/server_info.c
source4/rpc_server/lsa/dcesrv_lsa.c
source4/rpc_server/samr/dcesrv_samr.c
source4/script/tests/mktestsetup.sh
source4/torture/rpc/samr.c