summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2017-11-21 14:34:28 +0100
committerJeremy Allison <jra@samba.org>2017-11-28 02:02:37 +0100
commitdeaaff6843159f02bb15aeaf457f8af305e40164 (patch)
tree051371a0d77f664d7d7a7022219970784360da3d /source3/param
parentea4e6f95ae5c97e8570b8090ee7e7a577b49a8c3 (diff)
downloadsamba-deaaff6843159f02bb15aeaf457f8af305e40164.tar.gz
s3/loadparm: don't mark IPC$ as autoloaded
A related problem that affects configuration for the hidden IPC$ share. This share is marked a "autoloaded" and such shares are not reloaded when requested. That resulted in the tcon to IPC$ still using encrpytion after running the following sequence of changes: 1. stop Samba 2. set [global] smb encrypt = required 3. start Samba 4. remove [global] smb encrypt = required 5. smbcontrol smbd reload-config 6a bin/smbclient -U slow%x //localhost/raw -c quit, or 6b bin/smbclient -U slow%x -mNT1 //localhost/raw -c ls In 6a the client simply encrypted packets on the IPC$ tcon. In 6b the client got a tcon failure with NT_STATUS_ACCESS_DENIED, but silently ignore the error. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13051 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Nov 28 02:02:37 CET 2017 on sn-devel-144
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index bb6b128604e..01c022e2889 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -1613,7 +1613,7 @@ static bool lp_add_ipc(const char *ipc_name, bool guest_ok)
ServicePtrs[i]->guest_ok = guest_ok;
ServicePtrs[i]->printable = false;
ServicePtrs[i]->browseable = sDefault.browseable;
- ServicePtrs[i]->autoloaded = true;
+ ServicePtrs[i]->autoloaded = false;
DEBUG(3, ("adding IPC service\n"));