git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
698538e
)
s4-param make lpcfg_sam_name() cope with PDC and BDC roles
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 6 Jun 2011 01:38:04 +0000
(11:38 +1000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/source4/param/util.c
b/source4/param/util.c
index bcec2bec33e9180ffe545941d17ccc3c71feaf0e..f8fc15a152b8be3262df5d436030499a97cada2a 100644
(file)
--- 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);