diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-26 13:25:42 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-26 13:59:17 +1100 |
commit | c8fd7924a14f36c668245285bf144de7781b4007 (patch) | |
tree | d9bc4899a7a39eff27a6dcf7b8d84c86612c71b8 | |
parent | cb8d1e01f0b64f4a01ea101b8a0229f2085b744d (diff) | |
download | samba-c8fd7924a14f36c668245285bf144de7781b4007.tar.gz samba-c8fd7924a14f36c668245285bf144de7781b4007.tar.bz2 samba-c8fd7924a14f36c668245285bf144de7781b4007.zip |
s4-param: added 'nsupdate command' option, default to /usr/bin/nsupdate -g
-rw-r--r-- | source4/param/loadparm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 8bb56c764a..5eaf67fab5 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -188,6 +188,7 @@ struct loadparm_global char *szNTPSignDSocketDirectory; char *szRNDCCommand; char *szDNSUpdateCommand; + char *szNSUpdateCommand; struct parmlist_entry *param_opt; }; @@ -507,6 +508,7 @@ static struct parm_struct parm_table[] = { {"ntp signd socket directory", P_STRING, P_GLOBAL, GLOBAL_VAR(szNTPSignDSocketDirectory), NULL, NULL }, {"rndc command", P_STRING, P_GLOBAL, GLOBAL_VAR(szRNDCCommand), NULL, NULL }, {"dns update command", P_STRING, P_GLOBAL, GLOBAL_VAR(szDNSUpdateCommand), NULL, NULL }, + {"nsupdate command", P_STRING, P_GLOBAL, GLOBAL_VAR(szNSUpdateCommand), NULL, NULL }, {NULL, P_BOOL, P_NONE, 0, NULL, NULL} }; @@ -660,6 +662,7 @@ _PUBLIC_ FN_GLOBAL_STRING(lp_display_charset, display_charset) _PUBLIC_ FN_GLOBAL_STRING(lp_piddir, szPidDir) _PUBLIC_ FN_GLOBAL_STRING(lp_rndc_command, szRNDCCommand) _PUBLIC_ FN_GLOBAL_STRING(lp_dns_update_command, szDNSUpdateCommand) +_PUBLIC_ FN_GLOBAL_STRING(lp_nsupdate_command, szNSUpdateCommand) _PUBLIC_ FN_GLOBAL_LIST(lp_dcerpc_endpoint_servers, dcerpc_ep_servers) _PUBLIC_ FN_GLOBAL_LIST(lp_server_services, server_services) _PUBLIC_ FN_GLOBAL_STRING(lp_ntptr_providor, ntptr_providor) @@ -2455,6 +2458,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lp_do_global_parameter(lp_ctx, "ntp signd socket directory", dyn_NTP_SIGND_SOCKET_DIR); lp_do_global_parameter(lp_ctx, "rndc command", "/usr/sbin/rndc"); lp_do_global_parameter_var(lp_ctx, "dns update command", "%s/samba_dnsupdate", dyn_SBINDIR); + lp_do_global_parameter(lp_ctx, "nsupdate command", "/usr/bin/nsupdate -g"); for (i = 0; parm_table[i].label; i++) { if (!(lp_ctx->flags[i] & FLAG_CMDLINE)) { |