diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-04-27 18:37:12 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-27 19:27:18 +1000 |
commit | 37dfaff82cb554492fb0a3ddc95d3144d0508bc6 (patch) | |
tree | f4a040425a96b18e192ff78ea34943522a597498 /source4 | |
parent | fa26383884751c5775ccb65e3fbbf9ec7eeda28c (diff) | |
download | samba-37dfaff82cb554492fb0a3ddc95d3144d0508bc6.tar.gz samba-37dfaff82cb554492fb0a3ddc95d3144d0508bc6.tar.xz samba-37dfaff82cb554492fb0a3ddc95d3144d0508bc6.zip |
s4-param: added a "spn update command" option
used by SPN update code
Diffstat (limited to 'source4')
-rw-r--r-- | source4/param/loadparm.c | 4 | ||||
-rw-r--r-- | source4/param/param.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index b7dcd9bcee1..45b206483de 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -188,6 +188,7 @@ struct loadparm_global char *szNTPSignDSocketDirectory; const char **szRNDCCommand; const char **szDNSUpdateCommand; + const char **szSPNUpdateCommand; char *szNSUpdateCommand; struct parmlist_entry *param_opt; }; @@ -508,6 +509,7 @@ static struct parm_struct parm_table[] = { {"ntp signd socket directory", P_STRING, P_GLOBAL, GLOBAL_VAR(szNTPSignDSocketDirectory), NULL, NULL }, {"rndc command", P_LIST, P_GLOBAL, GLOBAL_VAR(szRNDCCommand), NULL, NULL }, {"dns update command", P_LIST, P_GLOBAL, GLOBAL_VAR(szDNSUpdateCommand), NULL, NULL }, + {"spn update command", P_LIST, P_GLOBAL, GLOBAL_VAR(szSPNUpdateCommand), NULL, NULL }, {"nsupdate command", P_STRING, P_GLOBAL, GLOBAL_VAR(szNSUpdateCommand), NULL, NULL }, {NULL, P_BOOL, P_NONE, 0, NULL, NULL} @@ -662,6 +664,7 @@ _PUBLIC_ FN_GLOBAL_STRING(lp_display_charset, display_charset) _PUBLIC_ FN_GLOBAL_STRING(lp_piddir, szPidDir) _PUBLIC_ FN_GLOBAL_LIST(lp_rndc_command, szRNDCCommand) _PUBLIC_ FN_GLOBAL_LIST(lp_dns_update_command, szDNSUpdateCommand) +_PUBLIC_ FN_GLOBAL_LIST(lp_spn_update_command, szSPNUpdateCommand) _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) @@ -2458,6 +2461,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_var(lp_ctx, "spn update command", "%s/samba_spnupdate", dyn_SBINDIR); lp_do_global_parameter(lp_ctx, "nsupdate command", "/usr/bin/nsupdate -g"); for (i = 0; parm_table[i].label; i++) { diff --git a/source4/param/param.h b/source4/param/param.h index 5435941f2be..8bb368f3d72 100644 --- a/source4/param/param.h +++ b/source4/param/param.h @@ -132,6 +132,7 @@ const char *lp_socket_address(struct loadparm_context *); const char **lp_netbios_aliases(struct loadparm_context *); const char **lp_rndc_command(struct loadparm_context *); const char **lp_dns_update_command(struct loadparm_context *); +const char **lp_spn_update_command(struct loadparm_context *); bool lp_disable_netbios(struct loadparm_context *); bool lp_wins_support(struct loadparm_context *); bool lp_wins_dns_proxy(struct loadparm_context *); |