summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
AgeCommit message (Collapse)AuthorFilesLines
2011-07-22s3:loadparm: fix the reload of the configuration: also reload activated ↵Michael Adam1-2/+6
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-22s3:loadparm: add reload_registry_shares() - reload only those shares already ↵Michael Adam1-0/+29
loaded
2011-07-21s3:loadparm: fix an implicit cast warning in string intialization in ↵Michael Adam1-1/+1
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-21s3:loadparm: add support for P_BYTES to lp_do_parameter() - fix a build warningMichael Adam1-0/+15
(taken from s4 loadparm)
2011-07-21s3:loadparm: add support for P_CMDLIST to lp_do_parameter - fix a build warningMichael Adam1-0/+1
2011-07-21s3:loadparm: add support for P_CMDLIST to lp_save_defaults() - fix build warningMichael Adam1-0/+1
2011-07-21s3:loadparm: add support for P_BYTES to lp_save_defaults - fix build warningMichael Adam1-0/+1
2011-07-21s3:loadparm: add support for P_CMDLIST to is_default() - fix build warningMichael Adam1-0/+1
2011-07-21s3:loadparm: add support for P_BYTES to is_default() - fix build warningMichael Adam1-0/+1
2011-07-21s3:loadparm: add support for P_CMDLIST to print_parameter - fix build warning.Michael Adam1-4/+14
2011-07-21s3:loadparm: add support for P_BYTES to print_parameter() - fix build warning.Michael Adam1-0/+1
2011-07-21s3:loadparm: add support for P_CMDLIST to equal_parameter() - fix build warningMichael Adam1-0/+1
2011-07-21s3:loadparm: add suppor for P_BYTES to equal_parameter() - fix build warningMichael Adam1-0/+1
2011-07-21s3:loadparm: szNetbiosAliases is now a const char ** - cast properlyMichael Adam1-2/+2
2011-07-21s3:loadparm: szWinbindNssInfo is now a const char ** instead of a char ** - ↵Michael Adam1-1/+1
cast properly
2011-07-21s3:loadparm: fix a check that was accidentially an assignment in ↵Michael Adam1-1/+1
lp_servicebynum()
2011-07-21s3:loadparm: untangle assignment from check in do_section()Michael Adam1-2/+2
2011-07-19First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systemsJeremy Allison1-3/+3
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-14s4-param finish services hooks for s4->s3 loadparm contextAndrew Bartlett1-0/+13
2011-07-12s3:loadparm: use PROTOCOL_SMB2_02 instead of PROTOCOL_SMB2Stefan Metzmacher1-2/+3
metze
2011-07-08lib/param: Merge struct loadparm_service into commonAndrew Bartlett1-152/+15
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-08s3-param use common struct parmlist_entry to hold parametric optionsAndrew Bartlett1-40/+30
This will allow struct loadparm_service to be shared in future. Andrew Bartlett
2011-07-08s3-param check for aliases with both p_class and offsetAndrew Bartlett1-6/+17
This bug was found when comparing with the source4 loadparm code. Andrew Bartlett
2011-07-08lib/util Move bitmap.c to lib/utilAndrew Bartlett1-0/+1
2011-07-08param: Add hooks to s3 parm_struct and the parameters void * pointerAndrew Bartlett1-6/+45
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-08s3-param: calculate default_server_announce at runtimeAndrew Bartlett1-15/+5
2011-07-08s3-param Remove lp_set_passdb_backend()Andrew Bartlett1-5/+0
2011-07-02s3-param Remove #defines already in common loadparm.hAndrew Bartlett1-12/+0
2011-07-02s3-param Generate parameter tablesAndrew Bartlett1-409/+37
2011-07-02param: Finish conversion from lp_wins_support() -> lp_we_are_a_wins_server()Andrew Bartlett1-1/+0
Jermey started this in 1997 with 0aa493cc0303aa4177f289b9e4c797c8fa180672 (avoiding the duplicate function makes it easier to generate the struct loadparm_globals). Andrew Bartlett
2011-07-02s3-param remove unused bIdmapReadOnlyAndrew Bartlett1-2/+0
2011-07-02s3-param Remove unused bUpdateEncryptAndrew Bartlett1-2/+0
2011-06-29param: Merge param headers into lib/param/loadparm.hAndrew Bartlett1-1/+2
This defines a common table format, so we can in future define a common table. Andrew Bartlett
2011-06-29s3-param use C99 boolean for falseAndrew Bartlett1-118/+118
2011-06-29s3-param use C99 boolean for trueAndrew Bartlett1-99/+99
2011-06-29s3-param Convert sDefault to C99 initialisersAndrew Bartlett1-142/+142
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-29s3-param Remove unused FLAG_DOS_STRINGAndrew Bartlett1-2/+2
2011-06-29param: Merge struct parm_struct definitionsAndrew Bartlett1-25/+25
This will allow the parameter tables to be shared between source3 and source4. Andrew Bartlett
2011-06-29s3-param Use .offset rather than .ptr when defining parametersAndrew Bartlett1-6/+5
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-29s3-param Remove .offset == 0 checks as 'valid' will have offset 0Andrew Bartlett1-18/+4
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-29s3-param use .offset rather than .ptr (renames)Andrew Bartlett1-437/+441
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-29s3-param use lp_parm_ptr() rather than parm.ptr directlyAndrew Bartlett1-63/+58
This will help with a change from .ptr to .offset Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Jun 29 03:26:21 CEST 2011 on sn-devel-104
2011-06-28s3-param Rename struct service and struct globalsAndrew Bartlett1-31/+31
The rename of struct service -> loadparm_service and struct globals -> loadparm_globals makes this match the names used in source4/param, and is one step towards a single loadparm definition. Andrew Bartlett
2011-06-28s3-param Remove lp_parm_stringAndrew Bartlett1-12/+0
Samba 4.0 makes no attempt to provide a loader environment that will allow a module that is not rebuilt to operate. Andrew Bartlett
2011-06-28s3-param make lp_passdb_backend() a normal lp_ function againAndrew Bartlett1-42/+1
It is now a large number of releases since the multiple passdb backend support was removed in 3.0.23. Andrew Bartlett
2011-06-23s3-param Remove 'announce version' parameterAndrew Bartlett1-65/+0
The only users I can find of this on the internet involve confused users, and our own documentation recommends never setting this. Don't confuse our users any longer. Andrew Bartlett
2011-06-23param: Remove "announce as" parameterAndrew Bartlett1-43/+2
2011-06-23lib/util/charset: Remove 'display charset'Andrew Bartlett1-20/+1
As discussed in 'CH_DISPLAY and gettext' on the samba-technical list: http://lists.samba.org/archive/samba-technical/2011-June/078190.html Setting this to a value other than 'unix charset' does not make sense, as any system where the filesytem charset does not equal the terminal charset will already have problems with programs as simple as 'ls'. It also means that our output could not be pasted as our input in interactive programs or onto our command line, as we never did translate in the DISPLAY -> UNIX direction. The d_printf() calls are retained in case we need to revisit this, and to support display_set_stderr(). Andrew Bartlett
2011-06-21s3-param Put &Globals in the FN_ macros, rather than in each entryAndrew Bartlett1-254/+254
This global replace allows an easier comparison between the source3 and source4 loadparm systems. Andrew Bartlett
2011-06-11s3-param Remove 'time offset' from smb.confAndrew Bartlett1-9/+0
This strange parameter is apparently very rarely used, and it seems to me that on modern networks, if clients don't have correct clocks and DST offsets, that many other things (Kerberos) start to fail pretty quickly, and time and DST tables tend to be internet delivered anyway. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Jun 11 03:54:45 CEST 2011 on sn-devel-104