summaryrefslogtreecommitdiff
path: root/file_server
Commit message (Collapse)AuthorAgeFilesLines
* source4 smdb: Add a post fork hook to the service APIGary Lockyer2018-11-011-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Add a post fork hook to the service API this will be called: - standard process model immediately after the task_init. - single process model immediately after the task_init - prefork process model, inhibit_pre_fork = true immediately after the task_init - prefork process model, inhibit_pre_fork = false after each service worker has forked. It is not run on the service master process. The post fork hook is not called in the standard model if a new process is forked on a new connection. It is instead called immediately after the task_init. The task_init hook has been changed to return an error code. This ensures the post_fork code is only run if the task_init code completed successfully. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
* Remove dead codeSimo Sorce2018-03-192-26/+0
| | | | | | | Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User(master): Simo Sorce <idra@samba.org> Autobuild-Date(master): Mon Mar 19 20:29:28 CET 2018 on sn-devel-144
* source4/smbd: refactor the process model for preforkGary Lockyer2017-10-191-1/+5
| | | | | | | | | | | | | | | | | | Refactor the process model code to allow the addition of a prefork process model. - Add a process context to contain process model specific state - Add a service details structure to allow service to indicate which process model options they can support. In the new code the services advertise the features they support to the process model. The process model context is plumbed through to allow the process model to keep track of the supported options, and any state the process model may require. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* s4: Add TALLOC_CTX * to register_server_service().Jeremy Allison2017-05-111-1/+1
| | | | | | | | Use the passed in context from callers. Remove one talloc_autofree_context(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* lib: modules: Change XXX_init interface from XXX_init(void) to ↵Jeremy Allison2017-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | XXX_init(TALLOC_CTX *) Not currently used - no logic changes inside. This will make it possible to pass down a long-lived talloc context from the loading function for modules to use instead of having them internally all use talloc_autofree_context() which is a hidden global. Updated all known module interface numbers, and added a WHATSNEW. Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Apr 22 01:17:00 CEST 2017 on sn-devel-144
* s4:server: avoid calling into nss_winbind from within 'samba'Stefan Metzmacher2013-07-101-0/+9
| | | | | | | | | | | | | | | | The most important part is that the 'winbind_server' doesn't recurse into itself. This could happen if the krb5 libraries call getlogin(). As we may run in single process mode, we need to set _NO_WINBINDD=1 everywhere, the only exception is the forked 'smbd'. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Jul 10 23:18:06 CEST 2013 on sn-devel-104
* s3fs: make the log warning go awayRicky Nance2012-12-151-0/+1
| | | | | | | | | standard input is not a socket, assuming -D option Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sat Dec 15 17:50:23 CET 2012 on sn-devel-104
* s3-param: Move the options needed for running smbd in the AD DC to loadparmAndrew Bartlett2012-11-011-51/+2
| | | | | | | | | | | | | | | | | | This avoids the whole fileserver.conf thing, and simply handles everything in C. The main challenge is that if s3fs is enabled in a member server configuration (unlikely) then these options will not be set, and it overrides any other attempt to set these as globals. (The previous approach essentially just changed defaults, because the include = of smb.conf was after the values were set in fileserver.conf). Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Nov 1 11:47:22 CET 2012 on sn-devel-104
* file_server: put set create mask and directory mask in fileserver.confAndrew Bartlett2012-11-011-0/+2
| | | | | | | | | | | | This allows any ACL to be set from the client, without restriction from the Samba side. Based on advise from Jermey at https://lists.samba.org/archive/samba-technical/2012-October/088414.html Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* file_server: Remove explicit set of passdb backend in fileserver.confAndrew Bartlett2012-09-041-1/+0
| | | | | | | | | | The default is now set during smb.conf loading based on the server role or during provision. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Sep 4 14:05:34 CEST 2012 on sn-devel-104
* file_server: Run task_server_terminate when smbd existsAndrew Bartlett2012-09-041-0/+4
| | | | | | | | | This will help us shut down when smbd cannot bind to ports or perform some other critical startup operation. Based on a patch by Stefan Metzmacher <metze@samba.org> Andrew Bartlett
* file_server: use 'subreq' as variable instead of 'req'Stefan Metzmacher2012-09-041-4/+4
| | | | | | This matches the style of all other tevent_req users. metze
* file_server: Clarify code by avoiding a gotoAndrew Bartlett2012-09-041-4/+2
| | | | | | As suggested by Ricky Nance <ricky.nance@weaubleau.k12.mo.us> Andrew Bartlett
* file_server: Fix spoolss support with s3fs.Andreas Schneider2012-08-301-1/+1
|
* param: Add startup checks for valid server role/binary combinationsAndrew Bartlett2012-08-231-0/+1
| | | | | | | This should eliminate confusion from our users about what they can expect to successfully run. Andrew Bartlett
* file_server: Move default VFS module settings to loadparm.cAndrew Bartlett2012-08-231-12/+0
| | | | | | | | | | This means that any utility that calls into the VFS layer will get the right modules. Because we use the fake_acls backend we need to override this whole list in Samba4.pm however. Andrew Bartlett
* file_server: add [globals] to generated smb.confAndrew Bartlett2012-07-031-0/+1
|
* s3-auth: rework default auth methods around the lp_server_role() parameterAndrew Bartlett2012-06-151-1/+0
| | | | | | | | To cover all the enum values, ROLE_ACTIVE_DIRECTORY_DOMAIN_CONTROLLER is mapped to the samba4 auth module, and this is no longer required to be specified in fileserver.conf. Andrew Bartlett
* file_server: Use samba4 auth module for guest logins as wellAndrew Bartlett2012-06-111-1/+1
| | | | | | | This is important for consistancy on NTLM logins, as the samba4 stack is used for all NTLMSSP logins anyway. Andrew Bartlett
* file_server: set 'store dos attributes = yes'Andrew Bartlett2012-05-021-0/+5
| | | | | | This means we do not need the old permissions-based mappings. Andrew Bartlett
* file_server: use embedded srvsvcAndrew Bartlett2012-05-021-0/+1
|
* file_server: Use the embedded winreg serverAndrew Bartlett2012-05-021-0/+1
|
* file_server: use embedded ntsvcs serverAndrew Bartlett2012-05-021-0/+1
|
* file_server: use embedded eventlog serverAndrew Bartlett2012-05-021-0/+1
|
* file_server: forward dssetup, but use embedded svcctl for s3fsAndrew Bartlett2012-05-021-1/+1
|
* s3fs: Use xattr_tdb format for xattr storageAndrew Bartlett2012-04-181-2/+4
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Apr 18 05:39:01 CEST 2012 on sn-devel-104
* file_server: Move vfs objects initialisation into file_server.c smb.conf wrapperAndrew Bartlett2012-04-031-0/+11
|
* s3fs: when samba is logging to stdout, ask smbd to also do soAndrew Tridgell2012-02-281-1/+3
| | | | | this prevents make test getting spurious errors about opening log files in the install prefix
* s3fs: added file_server directoryAndrew Tridgell2012-02-283-0/+159
this contains a file server backend that forks and starts smbd Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>