1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

1133 Commits

Author SHA1 Message Date
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
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 0aa493cc03

(avoiding the duplicate function makes it easier to generate the
struct loadparm_globals).

Andrew Bartlett
2011-07-02 12:31:34 +10:00
Andrew Bartlett
6d8cc418ba s3-param remove unused bIdmapReadOnly 2011-07-02 12:31:34 +10:00
Andrew Bartlett
b459a6d7c6 s3-param Remove unused bUpdateEncrypt 2011-07-02 12:31:34 +10:00
Andrew Bartlett
489f528857 param: Merge param headers into lib/param/loadparm.h
This defines a common table format, so we can in future define a
common table.

Andrew Bartlett
2011-06-29 15:44:09 +10:00
Andrew Bartlett
ff13827537 s3-param use C99 boolean for false 2011-06-29 15:44:09 +10:00
Andrew Bartlett
f8c0a89939 s3-param use C99 boolean for true 2011-06-29 15:44:09 +10:00
Andrew Bartlett
9adc0e9ed8 s3-param Convert sDefault to C99 initialisers
The conversion has been verified with gdb (p sDefaults before and after)

C99 booleans were helpfully provided by gdb, which was used to generate
the C99 format, and so have been kept.

Andrew Bartlett
2011-06-29 15:44:09 +10:00
Andrew Bartlett
658f55bbb7 s3-param Remove unused FLAG_DOS_STRING 2011-06-29 15:44:08 +10:00
Andrew Bartlett
7198d540e8 param: Merge struct parm_struct definitions
This will allow the parameter tables to be shared between source3 and
source4.

Andrew Bartlett
2011-06-29 15:44:08 +10:00
Andrew Bartlett
21756b7c7d s3-param Use .offset rather than .ptr when defining parameters
This change has a number of purposes:

 * It removes the fancy logic around pointers into sDefault for all
   per-share parameters.  Instead, this is always expressed as an
   offset, rather than implicitly via PTR_DIFF macros.

 * It makes struct parm_struct almost identical to that as used in
   source4/param.  This will very shortly allow the loadparm tables
   and most of the 'special' helper functions to be placed in common.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Jun 29 05:50:46 CEST 2011 on sn-devel-104
2011-06-29 05:50:46 +02:00
Andrew Bartlett
573109d346 s3-param Remove .offset == 0 checks as 'valid' will have offset 0
The validity of an entry in the parm_table is by having a .p_class of
P_LOCAL or P_GLOBAL rather than P_SEPARATOR.  Termination of the table
is by having a .label of non-NULL.  This is possible because there are
no longer any specially handled smb.conf options without a value in
the struct loadparm_globals or struct loadparm_service.

This is required because the first element in the structure will have
.offset = 0, and skipping that would be unfortunate (particularly as it
is the vital 'valid' variable).

Andrew Bartlett
2011-06-29 04:42:04 +02:00
Andrew Bartlett
0e38199a84 s3-param use .offset rather than .ptr (renames)
This commit uses GLOBAL_VAR and LOCAL_VAR macros to hide the use of .ptr
in the source3 loadparm code.

This will then be changed to use offsetof() in a future commit, removing
the #define offset ptr hack.

Andrew Bartlett
2011-06-29 04:42:03 +02:00