Skip to content

Commit

Permalink
param: Remove winbindd privileged socket directory option
Browse files Browse the repository at this point in the history
This option is unused and has not been used since before Samba 4.3
when the source4/ winbindd code went away.

The associated dynconfig parameters used for the default are also removed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=10066

Signed-off-by: Andrew Bartlett <[email protected]>
Reviewed-by: Ralph Boehme <[email protected]>
  • Loading branch information
abartlet authored and slowfranklin committed Jan 22, 2017
1 parent a551d38 commit bd8d955
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 33 deletions.
1 change: 0 additions & 1 deletion docs-xml/smbdotconf/generate-file-list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ echo "<!DOCTYPE section [
<!ENTITY pathconfig.PRIVATE_DIR '\${prefix}/private'>
<!ENTITY pathconfig.SMB_PASSWD_FILE '\${prefix}/private/smbpasswd'>
<!ENTITY pathconfig.WINBINDD_SOCKET_DIR '\${prefix}/var/run/winbindd'>
<!ENTITY pathconfig.WINBINDD_PRIVILEGED_SOCKET_DIR '\${prefix}/var/lib/winbindd_privileged'>
<!ENTITY pathconfig.CACHEDIR '\${prefix}/var/cache'>
<!ENTITY pathconfig.NTP_SIGND_SOCKET_DIR '\${prefix}/var/lib/ntp_signd'>
]>"
Expand Down
14 changes: 0 additions & 14 deletions docs-xml/smbdotconf/winbind/winbinddprivilegedsocketdirectory.xml

This file was deleted.

2 changes: 0 additions & 2 deletions docs-xml/smbdotconf/winbind/winbinddsocketdirectory.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@
varaible.</para>
</description>

<related>winbindd privileged socket directory</related>

<value type="default">&pathconfig.WINBINDD_SOCKET_DIR;</value>
</samba:parameter>
1 change: 0 additions & 1 deletion dynconfig/dynconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ DEFINE_DYN_CONFIG_PARAM(NMBDSOCKETDIR)
DEFINE_DYN_CONFIG_PARAM(DATADIR)
DEFINE_DYN_CONFIG_PARAM(SETUPDIR)
DEFINE_DYN_CONFIG_PARAM(WINBINDD_SOCKET_DIR) /* from winbind_struct_protocol.h in s3 autoconf */
DEFINE_DYN_CONFIG_PARAM(WINBINDD_PRIVILEGED_SOCKET_DIR)
DEFINE_DYN_CONFIG_PARAM(NTP_SIGND_SOCKET_DIR)
DEFINE_DYN_CONFIG_PARAM(PYTHONDIR)
DEFINE_DYN_CONFIG_PARAM(PYTHONARCHDIR)
Expand Down
1 change: 0 additions & 1 deletion dynconfig/dynconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ DEFINE_DYN_CONFIG_PROTO(NMBDSOCKETDIR)
DEFINE_DYN_CONFIG_PROTO(DATADIR)
DEFINE_DYN_CONFIG_PROTO(SETUPDIR)
DEFINE_DYN_CONFIG_PROTO(WINBINDD_SOCKET_DIR)
DEFINE_DYN_CONFIG_PROTO(WINBINDD_PRIVILEGED_SOCKET_DIR)
DEFINE_DYN_CONFIG_PROTO(NTP_SIGND_SOCKET_DIR)
DEFINE_DYN_CONFIG_PROTO(PYTHONDIR)
DEFINE_DYN_CONFIG_PROTO(PYTHONARCHDIR)
Expand Down
5 changes: 0 additions & 5 deletions dynconfig/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,6 @@ dynconfig = {
'FHS-PATH': '${SOCKET_DIR}/winbindd',
'DELAY': True,
},
'WINBINDD_PRIVILEGED_SOCKET_DIR' : {
'STD-PATH': '${PRIVILEGED_SOCKET_DIR}/winbindd_privileged',
'FHS-PATH': '${PRIVILEGED_SOCKET_DIR}/winbindd_privileged',
'DELAY': True,
},
'NMBDSOCKETDIR' : {
'STD-PATH': '${SOCKET_DIR}/nmbd',
'FHS-PATH': '${SOCKET_DIR}/nmbd',
Expand Down
1 change: 0 additions & 1 deletion lib/param/loadparm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2648,7 +2648,6 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
lpcfg_do_global_parameter(lp_ctx, "winbind sealed pipes", "True");
lpcfg_do_global_parameter(lp_ctx, "require strong key", "True");
lpcfg_do_global_parameter(lp_ctx, "winbindd socket directory", dyn_WINBINDD_SOCKET_DIR);
lpcfg_do_global_parameter(lp_ctx, "winbindd privileged socket directory", dyn_WINBINDD_PRIVILEGED_SOCKET_DIR);
lpcfg_do_global_parameter(lp_ctx, "ntp signd socket directory", dyn_NTP_SIGND_SOCKET_DIR);
lpcfg_do_global_parameter_var(lp_ctx, "dns update command", "%s/samba_dnsupdate", dyn_SCRIPTSBINDIR);
lpcfg_do_global_parameter_var(lp_ctx, "spn update command", "%s/samba_spnupdate", dyn_SCRIPTSBINDIR);
Expand Down
2 changes: 0 additions & 2 deletions selftest/target/Samba4.pm
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,6 @@ sub provision_raw_prepare($$$$$$$$$$$)
$ctx->{statedir} = "$prefix_abs/statedir";
$ctx->{cachedir} = "$prefix_abs/cachedir";
$ctx->{winbindd_socket_dir} = "$prefix_abs/winbindd_socket";
$ctx->{winbindd_privileged_socket_dir} = "$prefix_abs/winbindd_privileged_socket";
$ctx->{ntp_signd_socket_dir} = "$prefix_abs/ntp_signd_socket";
$ctx->{nsswrap_passwd} = "$ctx->{etcdir}/passwd";
$ctx->{nsswrap_group} = "$ctx->{etcdir}/group";
Expand Down Expand Up @@ -560,7 +559,6 @@ sub provision_raw_step1($$)
state directory = $ctx->{statedir}
cache directory = $ctx->{cachedir}
winbindd socket directory = $ctx->{winbindd_socket_dir}
winbindd privileged socket directory = $ctx->{winbindd_privileged_socket_dir}
ntp signd socket directory = $ctx->{ntp_signd_socket_dir}
winbind separator = /
interfaces = $ctx->{interfaces}
Expand Down
4 changes: 0 additions & 4 deletions source3/param/loadparm.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,10 +890,6 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals)
lpcfg_string_set(Globals.ctx, &Globals.ntp_signd_socket_directory,
get_dyn_NTP_SIGND_SOCKET_DIR());

lpcfg_string_set(Globals.ctx,
&Globals.winbindd_privileged_socket_directory,
get_dyn_WINBINDD_PRIVILEGED_SOCKET_DIR());

s = talloc_asprintf(talloc_tos(), "%s/samba_kcc", get_dyn_SCRIPTSBINDIR());
if (s == NULL) {
smb_panic("init_globals: ENOMEM");
Expand Down
1 change: 0 additions & 1 deletion source4/scripting/devel/config_base
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ vars = {
"lock dir" : "${PREFIX}/var/locks",
"pid directory" : "${PREFIX}/var/run",
"winbindd socket directory" : "${PREFIX}/var/run/winbindd",
"winbindd privileged socket directory" : "${PREFIX}/var/lib/winbindd_privileged",
"ntp signd socket directory" : "${PREFIX}/var/run/ntp_signd"
}

Expand Down
1 change: 0 additions & 1 deletion source4/smbd/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ static void show_build(void)
CONFIG_OPTION(CODEPAGEDIR),
CONFIG_OPTION(SETUPDIR),
CONFIG_OPTION(WINBINDD_SOCKET_DIR),
CONFIG_OPTION(WINBINDD_PRIVILEGED_SOCKET_DIR),
CONFIG_OPTION(NTP_SIGND_SOCKET_DIR),
{ NULL, NULL}
};
Expand Down

0 comments on commit bd8d955

Please sign in to comment.