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

24 Commits

Author SHA1 Message Date
Andrew Bartlett
15b8cfcd83 param: Move enum values into a common (included) .c file
This #include hack is required as it is not possible to declare a
compile-time sized array in a header file.

Andrew Bartlett

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
2011-11-17 00:34:09 +01:00
Andrew Bartlett
1f96a59dda param: move server role helpers into loadparm.h
Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
2011-11-17 00:34:08 +01:00
Andrew Bartlett
9524e2fce1 param: calculate server role from security, and security from server role
This allows smb.conf files from either the samba3 or samba4 tradition
to come to the same value of server role, using the information in the
smb.conf file.

This is important so that tools like 'net getlocalsid' work against a
Samba4 AD installation (yes, users have tried this).

Andrew Bartlett

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
2011-11-17 00:34:08 +01:00
Andrew Bartlett
f099feaa01 s3-param remove lp_domain_logons(), always use IS_DC
This makes the code internally consistant.

Andrew Bartlett

Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
2011-11-17 00:34:08 +01:00
Andrew Bartlett
df9a1ea6cb param: make server role list common and include auto (for the new default)
Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
2011-11-17 00:34:08 +01:00
Amitay Isaacs
7b175e875e param: Add "domain logons" and "domain master" parameters
This makes parsing of config files with s3 loadparm code and s4 loadparm
code consistent.
2011-11-17 00:34:08 +01:00
Amitay Isaacs
7af51ca936 param: Remove duplicate initialization of 'share backend' parameter 2011-11-08 02:58:06 +01:00
Stefan Metzmacher
4d819389f2 lib/param: use SMB_SIGNING_IF_REQUIRED instead of SMB_SIGNING_SUPPORTED
metze
2011-11-03 16:55:12 +01:00
Stefan Metzmacher
53c926c1eb lib/param: map "* signing = auto" to SMB_SIGNING_SUPPORTED
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
71959d5e1f s4:smb_server: change the default for "server signing" to "default"
metze
2011-11-03 16:55:11 +01:00
Stefan Metzmacher
908550f3c2 lib/param: change the default for "client signing" to "default"
metze
2011-11-03 16:55:11 +01:00
Amitay Isaacs
8df2ed42cc s4-dns: Added DCERPC dns server for DNS management
dnsserver.h - typedefs and prototypes
dnsserver.c - RPC API and implementation methods
dnsdb.c     - samdb operations
dnsdata.c   - functions to manipulate dns structures
dnsutils.c  - function for serverinfo and zoneinfo structures

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-20 05:53:05 +02:00
Andrew Bartlett
5954a37997 lib/param: Remove parameters for wins and spoolss databases
This removes the smb.conf parameters per-database, replacing these
with hard-coded database names in well known (and configurable)
directories.

The wins.ldb is now always in the "state dir", rather than being in
both state and lock dir (ie, a bug).

Less smb.conf parameters means less parameters to try and sync up
between the loadparm subsystems.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 18 05:39:54 CEST 2011 on sn-devel-104
2011-10-18 05:39:54 +02:00
Andrew Bartlett
734e5c521c credentials: Prioritise command-line specified options above defaults from smb.conf
If a user specified -W or --realm on the command line, then this is
of level SPECIFIED, not UNINITIALISED, despite it going via the
loadparm system.

This helps us to ensure that -W server -Ulocaluser is parsed the
same as -Userver\localuser.  This matters as otherwise we might
instead attempt to use kerberos to the realm from the smb.conf.

Andrew Bartlett
2011-10-18 13:13:30 +11:00
Andrew Bartlett
73d0ab6558 lib/param reduce the cost of loadparm_init_s3()
The parameter redirection covers most things now, so this should be safe.

Andrew Bartlett
2011-10-13 14:06:07 +02:00
Andrew Bartlett
4a89361af4 lib/param Add 'use mmap' parameter to control tdb use of mmap 2011-10-13 14:06:07 +02:00
Stefan Metzmacher
e425a17cb4 lib/param: fix typo _SAMBA_BUILD => _SAMBA_BUILD_ causing segfaults
If lpcfg_dns_update_command() returns NULL 'samba' segfaults on startup.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Oct 11 17:25:19 CEST 2011 on sn-devel-104
2011-10-11 17:25:19 +02:00
Andrew Bartlett
c9bb497f3f lib/param Avoid dyn_ defines that are not provided by the autoconf build
The autoconf build will never use these parameters or load the
smb.conf with these defaults, so the defaults are not important.

Andrew Bartlett
2011-10-11 13:41:35 +11:00
Andrew Bartlett
8f2741ba1a lib/param Use talloc_strdup rather than strdup as strdup is banned in the s3 includes.h 2011-10-11 13:41:35 +11:00
Andrew Bartlett
1b81af0d56 lib/param Avoid the name string_set as this is already used in the s3 param code 2011-10-11 13:41:35 +11:00
Andrew Bartlett
15c97a8ab3 lib/param Avoid the use of the name service_ok() which is used in the s3 param code 2011-10-11 13:41:34 +11:00
Andrew Bartlett
d0ecd1a59f lib/param: Remove unused #include of lib/socket/socket.h 2011-10-11 13:41:34 +11:00
Andrew Bartlett
26de383c42 libcli/smb Move CSC_POLICY_* definition to smb_constants.h
This removes the duplicate definition between smb.h and lib/param/loadparm.c
which in turn allows this file to be compiled with the s3 includes.h

Andrew Bartlett
2011-10-11 13:41:34 +11:00
Andrew Bartlett
b21b012756 lib/param move source4 param code to the top level
This is done so that the lpcfg_ functions are available across the whole
build, either with the struct loadparm_context loaded from an smb.conf directly
or as a wrapper around the source3 param code.

This is not the final, merged loadparm, but simply one step to make
it easier to solve other problems while we make our slow progress
on this difficult problem.

Andrew Bartlett
2011-10-11 13:41:34 +11:00