return NULL;
}
+ fdprintf(fd, "[globals]\n");
fdprintf(fd, "# auto-generated config for fileserver\n");
- fdprintf(fd, "auth methods = guest samba4\n");
+ fdprintf(fd, "server role check:inhibit=yes\n");
fdprintf(fd, "passdb backend = samba4\n");
fdprintf(fd, "rpc_server:default = external\n");
- fdprintf(fd, "rpc_server:dssetup = disabled\n");
+ fdprintf(fd, "rpc_server:svcctl = embedded\n");
+ fdprintf(fd, "rpc_server:srvsvc = embedded\n");
+ fdprintf(fd, "rpc_server:eventlog = embedded\n");
+ fdprintf(fd, "rpc_server:ntsvcs = embedded\n");
+ fdprintf(fd, "rpc_server:winreg = embedded\n");
fdprintf(fd, "rpc_server:spoolss = embedded\n");
- fdprintf(fd, "rpc_daemon:spoolssd = disabled\n");
+ fdprintf(fd, "rpc_daemon:spoolssd = embedded\n");
fdprintf(fd, "rpc_server:tcpip = no\n");
+ fdprintf(fd, "map hidden = no\n");
+ fdprintf(fd, "map system = no\n");
+ fdprintf(fd, "map readonly = no\n");
+ fdprintf(fd, "store dos attributes = yes\n");
+
fdprintf(fd, "include = %s\n", lpcfg_configfile(lp_ctx));
+
close(fd);
return path;
}
static void s3fs_task_init(struct task_server *task)
{
const char *fileserver_conf;
- struct tevent_req *req;
+ struct tevent_req *subreq;
const char *smbd_path;
const char *smbd_cmd[2] = { NULL, NULL };
smbd_cmd[0] = smbd_path;
/* start it as a child process */
- req = samba_runcmd_send(task, task->event_ctx, timeval_zero(), 1, 0,
+ subreq = samba_runcmd_send(task, task->event_ctx, timeval_zero(), 1, 0,
smbd_cmd,
"--configfile", fileserver_conf,
"--foreground",
debug_get_output_is_stdout()?"--log-stdout":NULL,
NULL);
- if (req == NULL) {
+ if (subreq == NULL) {
DEBUG(0, ("Failed to start smbd as child daemon\n"));
goto failed;
}
- tevent_req_set_callback(req, file_server_smbd_done, task);
+ tevent_req_set_callback(subreq, file_server_smbd_done, task);
DEBUG(1,("Started file server smbd with config %s\n", fileserver_conf));
return;