diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-06-06 11:38:04 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-06-06 17:37:51 +1000 |
commit | 521687be0d4bcd6326417696fabdce6506824b99 (patch) | |
tree | 8cb8eaf77a810992749d897a315339bc7ecffb8e | |
parent | 698538e594f65dd7ae2bd3854371ae914328b536 (diff) | |
download | samba-521687be0d4bcd6326417696fabdce6506824b99.tar.gz |
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
-rw-r--r-- | source4/param/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/param/util.c b/source4/param/util.c index bcec2bec33e..f8fc15a152b 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); |