Andrew Tridgell
0ba52e97bf
s3-loadparm: fixed re-application of cmdline parametric options
...
this ensures that cmdline parametric options are re-applied when we
reload smb.conf
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08 15:09:54 +02:00
Andrew Tridgell
e16f004dc0
s3-loadparm: fixed a memory leak in parametric options
...
before we memset the Globals structure we need to free any global
parametrics
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-08 15:09:54 +02:00
Stefan Metzmacher
012c9d06a9
s3:smb2_server: add basic support for SMB 2.1
...
This adds support for the 2 stage negprot, from SMB 1 to SMB 2.1.
Support for this of for now and "max protocol = SMB2" still maps
to "max protocol = SMB2_02" PROTOCOL_SMB2_02.
In order to activate smb2.1, you need to use "max protocol = SMB2_10".
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Sep 5 19:30:58 CEST 2011 on sn-devel-104
2011-09-05 19:30:58 +02:00
Amitay Isaacs
8c466c1411
s3-param: Allocate talloc stackframe before calling s3 param routines
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26 14:06:07 +02:00
Amitay Isaacs
d847f62161
s3-param: Add a dump() method to output parameters
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-08-26 10:06:32 +10:00
Andrew Bartlett
399eae13a1
s4-provision set passdb backend to 'samba4' in template smb.conf files
...
This will allow smbpasswd, net sam and pdbedit to 'just work' against
the newly created databases.
Andrew Bartlett
2011-08-22 09:00:59 +10:00
Volker Lendecke
6c8ee02e17
s3: Use ZERO_STRUCT where appropriate
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Aug 16 13:59:55 CEST 2011 on sn-devel-104
2011-08-16 13:59:55 +02:00
Amitay Isaacs
6d139d6b0f
s3-param: Add python wrapper for s3 parameters
...
This provids a get_context() method to return s3 context as s4 context type.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-08-13 12:30:50 +10:00
Amitay Isaacs
8e4e408e3a
s3-param: Make sure we have talloc stack frame before calling in s3 code
...
When loading parameters as s4 context in s3 code, ensure we have a
talloc stack frame. This is required for python wrapping s3 params.
2011-08-13 12:30:50 +10:00
Andrew Bartlett
7c9ecf35fa
param: Add smb.conf loading support to s3/s4 loadparm bridge
2011-08-13 12:30:49 +10:00
Michael Adam
0b5c4a601a
s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
2011-07-29 13:34:22 +02:00
Michael Adam
c2aa8e5d63
s3:loadparm: make lp_set_in_client() static - only used in wrappers in loadparm now.
2011-07-28 11:17:29 +02:00
Michael Adam
4e41d38df3
s3:loadparm: add wrapper lp_load_client_no_reinit()
2011-07-28 11:17:28 +02:00
Michael Adam
5676fbb399
s3:loadparm: add wrapper lp_load_globals_no_reinit()
2011-07-28 11:17:28 +02:00
Michael Adam
bff217cf4a
s3:smbspool: use lp_load_client()
2011-07-28 11:17:27 +02:00
Michael Adam
0b21c7750f
s3:loadparm: make lp_is_in_client() static - only used inside loadparm
2011-07-28 11:17:26 +02:00
Michael Adam
37f548d788
s3:loadparm: add lp_load_client() that also sets the client state internally
2011-07-28 11:17:26 +02:00
Michael Adam
1379ef8b7b
s3:loadparm: add a convenience wrapper lp_load_global()
...
This is the use case for most callers, especially the client tools.
2011-07-28 11:17:25 +02:00
Michael Adam
13329112e9
s3:loadparm: rename parameter "allow_registry_shares" to "load_all_shares"
2011-07-28 11:17:25 +02:00
Michael Adam
efbe1602bd
s3:loadparm: fix the reload of the configuration: also reload activated registry shares
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Jul 22 16:53:49 CEST 2011 on sn-devel-104
2011-07-22 16:53:49 +02:00
Michael Adam
ec113a58a4
s3:loadparm: add reload_registry_shares() - reload only those shares already loaded
2011-07-22 15:42:18 +02:00
Michael Adam
71b49f5596
s3:loadparm: fix an implicit cast warning in string intialization in init_globals()
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Jul 21 18:39:15 CEST 2011 on sn-devel-104
2011-07-21 18:39:15 +02:00
Michael Adam
cf50df5c69
s3:loadparm: add support for P_BYTES to lp_do_parameter() - fix a build warning
...
(taken from s4 loadparm)
2011-07-21 17:24:18 +02:00
Michael Adam
5158fd1688
s3:loadparm: add support for P_CMDLIST to lp_do_parameter - fix a build warning
2011-07-21 17:24:18 +02:00
Michael Adam
3c8e94b6c4
s3:loadparm: add support for P_CMDLIST to lp_save_defaults() - fix build warning
2011-07-21 17:24:18 +02:00
Michael Adam
ebdec404a4
s3:loadparm: add support for P_BYTES to lp_save_defaults - fix build warning
2011-07-21 17:24:18 +02:00
Michael Adam
ae0f66756a
s3:loadparm: add support for P_CMDLIST to is_default() - fix build warning
2011-07-21 17:24:17 +02:00
Michael Adam
8223eb7a27
s3:loadparm: add support for P_BYTES to is_default() - fix build warning
2011-07-21 17:24:17 +02:00
Michael Adam
8ecf51a553
s3:loadparm: add support for P_CMDLIST to print_parameter - fix build warning.
2011-07-21 17:24:17 +02:00
Michael Adam
81e4d1f63d
s3:loadparm: add support for P_BYTES to print_parameter() - fix build warning.
2011-07-21 17:24:17 +02:00
Michael Adam
72f23c7ba3
s3:loadparm: add support for P_CMDLIST to equal_parameter() - fix build warning
2011-07-21 17:24:17 +02:00
Michael Adam
641beeb2a3
s3:loadparm: add suppor for P_BYTES to equal_parameter() - fix build warning
2011-07-21 17:24:17 +02:00
Michael Adam
64afd5c486
s3:loadparm: szNetbiosAliases is now a const char ** - cast properly
2011-07-21 17:24:16 +02:00
Michael Adam
cc897b13ff
s3:loadparm: szWinbindNssInfo is now a const char ** instead of a char ** - cast properly
2011-07-21 17:24:16 +02:00
Michael Adam
fc525c8a25
s3:loadparm: fix a check that was accidentially an assignment in lp_servicebynum()
2011-07-21 17:24:16 +02:00
Michael Adam
2568a8b463
s3:loadparm: untangle assignment from check in do_section()
2011-07-21 17:24:16 +02:00
Jeremy Allison
ee34c25c8a
First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systems
...
Remove
int toupper_ascii(int c);
int tolower_ascii(int c);
int isupper_ascii(int c);
int islower_ascii(int c);
and replace with their _m equivalents, as they are identical.
2011-07-19 13:19:29 -07:00
Andrew Bartlett
0e4a4c8b19
s4-param finish services hooks for s4->s3 loadparm context
2011-07-14 15:06:45 +10:00
Andrew Bartlett
3fc182dba5
s3-param Plug 'netbios aliases' via the parameter bridge
2011-07-14 15:06:44 +10:00
Stefan Metzmacher
00cd9ca64a
s3:loadparm: use PROTOCOL_SMB2_02 instead of PROTOCOL_SMB2
...
metze
2011-07-12 08:17:59 +02:00
Andrew Bartlett
cda8686940
lib/param: Merge struct loadparm_service into common
...
This is handled by a common header and a .c file that is included into
both loadparm.c files.
In the process, _lp functions were renamed to lp__ to allow the common
function definition declarations to be used by source3 and source4
(which have different macro definitions).
The only parameter to change type is 'strict_locking' which was a
bool, and is now an int, to accommodate the 'Auto' value from source3.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Jul 8 12:35:56 CEST 2011 on sn-devel-104
2011-07-08 12:35:56 +02:00
Andrew Bartlett
cf406f7e7d
s3-param use common struct parmlist_entry to hold parametric options
...
This will allow struct loadparm_service to be shared in future.
Andrew Bartlett
2011-07-08 11:23:23 +02:00
Andrew Bartlett
3ab3159f75
s3-param check for aliases with both p_class and offset
...
This bug was found when comparing with the source4 loadparm code.
Andrew Bartlett
2011-07-08 11:23:23 +02:00
Andrew Bartlett
6e6aaacedb
lib/util Move bitmap.c to lib/util
2011-07-08 11:23:23 +02:00
Andrew Bartlett
6b2749f8a9
param: Add hooks to s3 parm_struct and the parameters void * pointer
...
This is to that the pyparam hooks can use the hooks to connect with
the s3 loadparm system. This now also includes per-service
parameters.
Andrew Bartlett
2011-07-08 11:23:23 +02:00
Andrew Bartlett
60f353a144
s3-param: calculate default_server_announce at runtime
2011-07-08 11:23:23 +02:00
Andrew Bartlett
fad3c763f7
s3-param Remove lp_set_passdb_backend()
2011-07-08 11:23:23 +02:00
Andrew Bartlett
2240ac96c1
s3-param Remove #defines already in common loadparm.h
2011-07-02 12:31:35 +10:00
Andrew Bartlett
4f3a155fb5
s3-param Generate parameter tables
2011-07-02 12:31:34 +10:00
Andrew Bartlett
d4ef70a764
param: Finish conversion from lp_wins_support() -> lp_we_are_a_wins_server()
...
Jermey started this in 1997 with 0aa493cc0303aa4177f289b9e4c797c8fa180672
(avoiding the duplicate function makes it easier to generate the
struct loadparm_globals).
Andrew Bartlett
2011-07-02 12:31:34 +10:00