s4-lib/param: FLAG DAY for the default FILE SERVER
authorAndrew Bartlett <abartlet@samba.org>
Sat, 16 Jun 2012 02:54:12 +0000 (12:54 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 16 Jun 2012 06:18:10 +0000 (08:18 +0200)
This commit changes the default file server to be s3fs.  Existing
installs wishing to keep the ntvfs file server need to set this in
their smb.conf:

server services = +smb -s3fs
dcerpc endpoint services = +winreg +srvsvc

Andrew Bartlett

lib/param/loadparm.c
selftest/target/Samba4.pm
source4/scripting/python/samba/provision/__init__.py

index 5749c34696561e2f5c4cca1475514245338ba27e..41c8cc62ece86d7d87b95625822dfd6ccf04cef3 100644 (file)
@@ -3312,8 +3312,8 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
        lpcfg_do_global_parameter(lp_ctx, "ntvfs handler", "unixuid default");
        lpcfg_do_global_parameter(lp_ctx, "max connections", "-1");
 
-       lpcfg_do_global_parameter(lp_ctx, "dcerpc endpoint servers", "epmapper srvsvc wkssvc rpcecho samr netlogon lsarpc spoolss drsuapi winreg dssetup unixinfo browser eventlog6 backupkey dnsserver");
-       lpcfg_do_global_parameter(lp_ctx, "server services", "smb rpc nbt wrepl ldap cldap kdc drepl winbind ntp_signd kcc dnsupdate");
+       lpcfg_do_global_parameter(lp_ctx, "dcerpc endpoint servers", "epmapper wkssvc rpcecho samr netlogon lsarpc spoolss drsuapi dssetup unixinfo browser eventlog6 backupkey dnsserver");
+       lpcfg_do_global_parameter(lp_ctx, "server services", "s3fs rpc nbt wrepl ldap cldap kdc drepl winbind ntp_signd kcc dnsupdate");
        lpcfg_do_global_parameter(lp_ctx, "ntptr providor", "simple_ldb");
        /* the winbind method for domain controllers is for both RODC
           auth forwarding and for trusted domains */
index 954cf9c820980a959e5c98001a1ed6b8544b0b95..2c26ffcbcf1b489cd944aff756a79017bf212b12 100644 (file)
@@ -580,7 +580,8 @@ sub provision_raw_step1($$)
        panic action = $RealBin/gdb_backtrace \%d
        wins support = yes
        server role = $ctx->{server_role}
-       server services = +echo +dns
+       server services = +echo +dns +smb -s3fs
+        dcerpc endpoint servers = +winreg +srvsvc
        notify:inotify = false
        ldb:nosync = true
 #We don't want to pass our self-tests if the PAC code is wrong
index 26d20d97b6ac512e98da1b9d2ab2867788898d81..0ec072c3929b8218b0f9e98f97566081b9f37b4b 100644 (file)
@@ -1658,10 +1658,10 @@ def provision(logger, session_info, credentials, smbconf=None,
     if dns_backend == "SAMBA_INTERNAL":
         server_services.append("+dns")
 
-    if not use_ntvfs:
-        server_services.append("-smb")
-        server_services.append("+s3fs")
-        global_param["dcerpc endpoint servers"] = ["-winreg", "-srvsvc"]
+    if use_ntvfs:
+        server_services.append("+smb")
+        server_services.append("-s3fs")
+        global_param["dcerpc endpoint servers"] = ["+winreg", "+srvsvc"]
 
     if len(server_services) > 0:
         global_param["server services"] = server_services