summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-06 11:38:04 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-06 17:37:51 +1000
commit521687be0d4bcd6326417696fabdce6506824b99 (patch)
tree8cb8eaf77a810992749d897a315339bc7ecffb8e /source4
parent698538e594f65dd7ae2bd3854371ae914328b536 (diff)
downloadsamba-521687be0d4bcd6326417696fabdce6506824b99.tar.gz
samba-521687be0d4bcd6326417696fabdce6506824b99.tar.bz2
samba-521687be0d4bcd6326417696fabdce6506824b99.zip
s4-param make lpcfg_sam_name() cope with PDC and BDC roles
These roles (ROLE_DOMAIN_CONTROLLER is ROLE_DOMAIN_BDC) will come in from the s3 loadparm. Andrew Bartlett
Diffstat (limited to 'source4')
-rw-r--r--source4/param/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/param/util.c b/source4/param/util.c
index bcec2bec33..f8fc15a152 100644
--- a/source4/param/util.c
+++ b/source4/param/util.c
@@ -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);