1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

26 Commits

Author SHA1 Message Date
Jeremy Allison
560c37524b s4: Add TALLOC_CTX * to register_server_service().
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>
2017-05-11 20:30:13 +02:00
Jeremy Allison
306783d6f5 lib: modules: Change XXX_init interface from XXX_init(void) to 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
2017-04-22 01:17:00 +02:00
Stefan Metzmacher
596b51c666 s4:server: avoid calling into nss_winbind from within 'samba'
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
2013-07-10 23:18:06 +02:00
Ricky Nance
6127ba853b s3fs: make the log warning go away
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
2012-12-15 17:50:23 +01:00
Andrew Bartlett
75c51d6561 s3-param: Move the options needed for running smbd in the AD DC to loadparm
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
2012-11-01 11:47:22 +01:00
Andrew Bartlett
fc5caffbc1 file_server: put set create mask and directory mask in fileserver.conf
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>
2012-11-01 09:55:42 +01:00
Andrew Bartlett
4def1c1780 file_server: Remove explicit set of passdb backend in fileserver.conf
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
2012-09-04 14:05:34 +02:00
Andrew Bartlett
73932a3aa4 file_server: Run task_server_terminate when smbd exists
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
2012-09-04 20:16:48 +10:00
Stefan Metzmacher
8d3e193fa1 file_server: use 'subreq' as variable instead of 'req'
This matches the style of all other tevent_req users.

metze
2012-09-04 20:16:48 +10:00
Andrew Bartlett
6c9d22d1ed file_server: Clarify code by avoiding a goto
As suggested by Ricky Nance <ricky.nance@weaubleau.k12.mo.us>

Andrew Bartlett
2012-09-04 09:52:23 +02:00
Andreas Schneider
fb917eba47 file_server: Fix spoolss support with s3fs. 2012-08-30 15:42:58 +02:00
Andrew Bartlett
8c71dc3505 param: Add startup checks for valid server role/binary combinations
This should eliminate confusion from our users about what they can
expect to successfully run.

Andrew Bartlett
2012-08-23 15:02:26 +02:00
Andrew Bartlett
8518dd6406 file_server: Move default VFS module settings to loadparm.c
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
2012-08-23 15:02:26 +02:00
Andrew Bartlett
603a9bcd2e file_server: add [globals] to generated smb.conf 2012-07-03 08:13:01 +10:00
Andrew Bartlett
60b6348244 s3-auth: rework default auth methods around the lp_server_role() parameter
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
2012-06-15 09:18:33 +02:00
Andrew Bartlett
61ab9a4806 file_server: Use samba4 auth module for guest logins as well
This is important for consistancy on NTLM logins, as the samba4 stack is used
for all NTLMSSP logins anyway.

Andrew Bartlett
2012-06-11 11:44:07 +02:00
Andrew Bartlett
692b3bfd7f file_server: set 'store dos attributes = yes'
This means we do not need the old permissions-based mappings.

Andrew Bartlett
2012-05-02 10:53:50 +10:00
Andrew Bartlett
33bf3efe37 file_server: use embedded srvsvc 2012-05-02 01:00:12 +02:00
Andrew Bartlett
2e1a4f63eb file_server: Use the embedded winreg server 2012-05-02 01:00:12 +02:00
Andrew Bartlett
c3be5240e9 file_server: use embedded ntsvcs server 2012-05-02 01:00:12 +02:00
Andrew Bartlett
cb5c456d47 file_server: use embedded eventlog server 2012-05-02 01:00:12 +02:00
Andrew Bartlett
f956f04dd1 file_server: forward dssetup, but use embedded svcctl for s3fs 2012-05-02 01:00:12 +02:00
Andrew Bartlett
538893d183 s3fs: Use xattr_tdb format for xattr storage
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 18 05:39:01 CEST 2012 on sn-devel-104
2012-04-18 05:39:01 +02:00
Andrew Bartlett
7cda954fbb file_server: Move vfs objects initialisation into file_server.c smb.conf wrapper 2012-04-03 14:35:02 +10:00
Andrew Tridgell
e2e2e60b61 s3fs: when samba is logging to stdout, ask smbd to also do so
this prevents make test getting spurious errors about opening log
files in the install prefix
2012-02-28 12:01:08 +01:00
Andrew Tridgell
8db121be42 s3fs: added file_server directory
this contains a file server backend that forks and starts smbd

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2012-02-28 12:01:08 +01:00