summaryrefslogtreecommitdiffstats
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 7e9c09f5ed..11da2a9687 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -513,13 +513,18 @@ static const struct enum_list enum_kerberos_method[] = {
};
/* Server role options */
-static const struct enum_list enum_server_role_s3[] = {
+static const struct enum_list enum_server_role[] = {
+ {ROLE_AUTO, "auto"},
{ROLE_STANDALONE, "standalone"},
{ROLE_DOMAIN_MEMBER, "member server"},
{ROLE_DOMAIN_MEMBER, "member"},
+ /* note that currently
+ ROLE_DOMAIN_CONTROLLER == ROLE_DOMAIN_BDC */
+ {ROLE_DOMAIN_CONTROLLER, "domain controller"},
+ {ROLE_DOMAIN_BDC, "backup domain controller"},
{ROLE_DOMAIN_BDC, "bdc"},
- {ROLE_DOMAIN_BDC, "domain controller"},
{ROLE_DOMAIN_BDC, "dc"},
+ {ROLE_DOMAIN_PDC, "primary domain controller"},
{ROLE_DOMAIN_PDC, "pdc"},
{-1, NULL}
};
@@ -680,7 +685,7 @@ static struct parm_struct parm_table[] = {
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(ServerRole),
.special = NULL,
- .enum_list = enum_server_role_s3,
+ .enum_list = enum_server_role,
.flags = FLAG_BASIC | FLAG_ADVANCED,
},