s4-param make lpcfg_sam_name() cope with PDC and BDC roles
authorAndrew Bartlett <abartlet@samba.org>
Mon, 6 Jun 2011 01:38:04 +0000 (11:38 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 6 Jun 2011 07:37:51 +0000 (17:37 +1000)
These roles (ROLE_DOMAIN_CONTROLLER is ROLE_DOMAIN_BDC) will come in
from the s3 loadparm.

Andrew Bartlett

source4/param/util.c

index bcec2bec33e9180ffe545941d17ccc3c71feaf0e..f8fc15a152b8be3262df5d436030499a97cada2a 100644 (file)
@@ -313,7 +313,8 @@ struct smb_iconv_handle *smb_iconv_handle_reinit_lp(TALLOC_CTX *mem_ctx,
 const char *lpcfg_sam_name(struct loadparm_context *lp_ctx)
 {
        switch (lpcfg_server_role(lp_ctx)) {
-       case ROLE_DOMAIN_CONTROLLER:
+       case ROLE_DOMAIN_BDC:
+       case ROLE_DOMAIN_PDC:
                return lpcfg_workgroup(lp_ctx);
        default:
                return lpcfg_netbios_name(lp_ctx);