Skip to content

Commit

Permalink
file_server: Move vfs objects initialisation into file_server.c smb.c…
Browse files Browse the repository at this point in the history
…onf wrapper
  • Loading branch information
abartlet committed Apr 3, 2012
1 parent da50ff7 commit 7cda954
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 11 additions & 0 deletions file_server/file_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,18 @@ static const char *generate_smb_conf(struct task_server *task)
fdprintf(fd, "rpc_daemon:spoolssd = disabled\n");
fdprintf(fd, "rpc_server:tcpip = no\n");

/* If we are using posix:eadb then we need to load another VFS object */
if (lpcfg_parm_string(lp_ctx, NULL, "posix", "eadb")) {
fdprintf(fd, "vfs objects = acl_xattr posix_eadb\n");
} else {
fdprintf(fd, "vfs objects = acl_xattr\n");
}

fdprintf(fd, "include = %s\n", lpcfg_configfile(lp_ctx));

fdprintf(fd, "[IPC$]\n");
fdprintf(fd, " vfs objects = dfs_samba4\n");

close(fd);
return path;
}
Expand Down
3 changes: 0 additions & 3 deletions selftest/target/Samba4.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1269,9 +1269,6 @@ sub provision_plugin_s4_dc($$)
server services = -smb +s3fs
dcerpc endpoint servers = -unixinfo -spoolss -winreg -wkssvc -srvsvc
[IPC\$]
vfs objects = dfs_samba4
";

print "PROVISIONING PLUGIN S4 DC...";
Expand Down

0 comments on commit 7cda954

Please sign in to comment.