summaryrefslogtreecommitdiff
path: root/source3/param
AgeCommit message (Collapse)AuthorFilesLines
2008-01-16Revert "default to tdbsam instead of smbpasswd"Volker Lendecke1-1/+1
This reverts commit ab8ff39fd51929aae2f4088ca5b1d67e5cb7099e. (This used to be commit 5838a9f556f151dc7c1773dcdc598b8ba79fca44)
2008-01-16default to tdbsam instead of smbpasswdVolker Lendecke1-1/+1
(This used to be commit ab8ff39fd51929aae2f4088ca5b1d67e5cb7099e)
2008-01-16Add my (C) to loadparm.c.Michael Adam1-0/+1
I think now that I have changed some substantial logic, I should confess.... :-) Michael (This used to be commit 704ac0ba49134d14dc00769b1cf2d9f55657bdfb)
2008-01-16Remove special semantics of "include = registry" from loadparm.cMichael Adam1-29/+0
This is now replaced by "config backend = registry". Michael (This used to be commit 56801810253ae870437f694947f58c27661cef9b)
2008-01-16Add utility function lp_config_backend_is_registry().Michael Adam1-0/+8
So external callers can determine if we are running on registry config without knowing the internals. Michael (This used to be commit d8a7c3ec8e2bd548509178f138d00a3b57119d10)
2008-01-16Initialise Globals.ConfigBackend from global var config_backend.Michael Adam1-5/+11
and use lp_config_backend() instead of config_backend. Michael (This used to be commit 9f69efe954cde6c6cce4283ba35a553ca980c347)
2008-01-16Add config parameter "config backend = registry".Michael Adam1-19/+63
This adds a new config parameter "config backend" that can have values "file" (default) and "registry". When lp_load() encounters a "config backend = registry", then all config read up to that point is discarded and globals are read from registry. This is done in suche a way that as with "config file", there is no way back to non-registry config during the lifetime of a process: The file_list_changed mechanism does not look at files anymore once config backend is set to registry. This is modelled after the behaviour of the "config file" option. Note that only the global section is read by lp_load(). The shares are handled by the registry shares mechanism, thus allowing for a smaller memory footprint since share definitions are read on demand. This new parameter is intended as a substitute of the previously installed special semantics of "include = registry" which allows for messed up mixed configurations. This parameter (which has not yet been released) will vanish next. Michael (This used to be commit 77b33cf34c2aec6673dfab3962733a60a60d126a)
2008-01-16Add "MSDFS options" separator to parm_table.Michael Adam1-0/+2
Michael (This used to be commit a103509a467bf6a93fbb21ec5e64456c5f086d6c)
2008-01-16Re-order an option block in parm_table to re-unite the misc options.Michael Adam1-3/+3
Michael (This used to be commit 9e11768256623636e69eda67b3bb888426f9ab84)
2008-01-09Reduce stat cache size defaultVolker Lendecke1-1/+1
Now that we have a LRU scheme for the stat cache we can live with a lot less (This used to be commit 9e736aab07b91744d4c14a55f6f7c55f51dd80f6)
2008-01-09Change registry_create_admin_token() to return NTSTATUS.Michael Adam1-3/+4
Michael (This used to be commit 9cd30fb25c42e79946b5140994d0bf2ef4c62f90)
2008-01-09Extend a comment.Michael Adam1-1/+3
Michael (This used to be commit 081435250709af734ec1e49e2539b091f2d92dfb)
2008-01-04Refactor the crypto code after a very helpful conversationJeremy Allison1-3/+2
with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
2007-12-27Add "smb encrypt" parameter. Can be set to "no, yes, required".Jeremy Allison1-0/+4
Currently if set required this is not enforced. I'll be adding that soon. Jeremy. (This used to be commit df7e447623ac03d81bec384f5cfe83c3976cf7b2)
2007-12-26Add SMB encryption. Still fixing client decrypt butJeremy Allison1-2/+5
negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)
2007-12-21Fix a C++ warningVolker Lendecke1-1/+1
(This used to be commit c31c7e3e24875ce75bc18f0ad7529320eab8e50a)
2007-12-19Remove Get_Pwnam and its associated static variableVolker Lendecke1-1/+5
All callers are replaced by Get_Pwnam_alloc (This used to be commit 735f59315497113aebadcf9ad387e3dbfffa284a)
2007-12-18Add a in-memory cacheVolker Lendecke1-3/+4
This is a more general API that caches data with a LRU scheme. See include/cache.h. No comments yet, I'm still working on it. But Jeremy has given me a hint in one of his checkins that he would like to make use of this now. The idea is that we get rid of all our silly little caches and merge them all into one cache that we can then very easily trim, for example even with a smbcontrol message if someone decides memory is tight. The main user is the stat cache, this patch also converts the getwd cache. More caches to come. (This used to be commit 7a911b35713538d82001a3c9f34152e293fe1943)
2007-12-12Add lp_include_registry_globals().Günther Deschner1-0/+5
Guenther (This used to be commit d30b945e99390761e405492e40c90e84da4fe482)
2007-12-10Remove two completely unnecessary globalsVolker Lendecke1-61/+51
Can someone look over this? To me it looks as if bufr was only made static to save a malloc during an included smb.conf file. I think that's pretty much pointless. (This used to be commit 068e8de72ceb49ef2e02cca1913b6d2197bab5e0)
2007-12-10Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison1-5/+5
them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-10use dbwrap_rbt in loadparm.cVolker Lendecke1-4/+2
(This used to be commit e81629339589e2e7f464b3dca55730ff2d0877e4)
2007-12-10Convert ServiceHash to dbwrapVolker Lendecke1-26/+47
(This used to be commit 66bd6837b593a7127bd5098afc990d3fb7a5a35a)
2007-12-07We don't need P_GSTRING or P_UGSTRING anymore.Jeremy Allison1-55/+0
Jeremy. (This used to be commit 78dc75600099b5b3b5a8ecffec747a227ff51d70)
2007-12-07Don't build rpctorture anymore - not maintained. Just remove.Jeremy Allison1-2/+18
Remove all vestiges of pstring (except for smbctool as noted in previous commit). Jeremy (This used to be commit 4c32a22ac50ada3275d2ffba3c1aa08bee7d1549)
2007-12-05Remove some globalsVolker Lendecke1-2/+5
(This used to be commit 31d0a846db08d845e6cdfd85def4ac1c34031e02)
2007-11-30Move param helper routines to one place.Günther Deschner1-0/+50
Guenther (This used to be commit 6bf2c8038c4bc7a52b7f260209ade0bdeb95c685)
2007-11-27Save one extra strdup per lp_string. Use talloc_sub_basic()Jeremy Allison1-12/+14
directly. Jeremy. (This used to be commit f1e401ef5c89ecf12921b7adb228da438521a693)
2007-11-15More pstring removal. This one was tricky. I had to addJeremy Allison1-1/+1
one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
2007-11-13Remove pstring from param/Jeremy Allison1-94/+152
This was a little tricky..... I'll watch the build farm. Jeremy. (This used to be commit d6e2519c67fd015e1089021769de04085fd90894)
2007-11-09Remove the silly "user_socket_options" global variableVolker Lendecke1-3/+3
This is better done with a 'lp_do_parameter(-1, "socket options", ..); (This used to be commit 814bed029efa391e664ac432d0d68dfeab26381f)
2007-11-07Constrain "min receivefile size" to max of BUFFER_SIZEJeremy Allison1-1/+8
(128k). Add debug error messages so we can see why writeX large is denied. Ensure we don't allow recvfile writes on IPC$. Jeremy. (This used to be commit 6bf053a6a17749a3bc73c8cc5fd490aa5f93b763)
2007-11-01Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-testGerald (Jerry) Carter1-12/+15
(This used to be commit 779353b86d1699324149896f1ffa237c6ebe46ec)
2007-11-01Patch 2 of 3 from Debian Samba packagers:Gerald (Jerry) Carter1-4/+4
The point is doing the following associations: - non discardable state data (all TDB files that may need to be backed up) go to statedir - shared data (codepage stuff) go to codepagedir The patch *does not change* the default location for these directories. So, there is no behaviour change when applying it. The main change is for samba developers who have to think when dealing with files that previously pertained to libdir whether they: - go in statedir - go in codepagedir - stay in libdir (This used to be commit d6cdbfd875bb2653e831d314726c3240beb0a96b)
2007-11-01save memoryVolker Lendecke1-12/+15
Hi! Attached find a patch that I've wanted to check in for ages. The whole area probably needs a major rewrite, but this is a minimal patch that on a 32-bit box saves 1.5k per smbd per defined share, twice as much on a 64-bit box. Volker From ebb80e664ecc49eb597a45cb57e1067fbae49e62 Mon Sep 17 00:00:00 2001 From: Volker Lendecke <vl@sernet.de> Date: Wed, 31 Oct 2007 15:04:34 +0100 Subject: [PATCH] Change global->copymap from bool* to a bitmap We right now have 401 parameters, so with bool being represented as a 64-bit integer this saves about 3k of memory per smbd per share that is defined in smb.conf. (This used to be commit 94f2c35a683eace7f9f3dad9748aaec93f7c534f)
2007-10-30Add new parameter, "min receivefile size" (by default setJeremy Allison1-0/+5
to zero). If non-zero, writeX calls greater than this value will be left in the socket buffer for later handling with recvfile (or userspace equivalent). Definition of recvfile for your system is left as an exercise for the reader (I'm working on getting splice working :-). Jeremy. (This used to be commit 11c03b75ddbcb6e36b231bb40a1773d1c550621c)
2007-10-21Fix two type-punned warningsVolker Lendecke1-3/+3
(This used to be commit 04d660bbb371f859cc50a9f3ea7d358f74acfa8b)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2-292/+291
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-3/+9
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25564: Pass sharename to delete_share_security()Volker Lendecke1-2/+2
(This used to be commit d100bfffe2a503b8820889faedc6ed57100ca7af)
2007-10-10r25434: Add the option to print the debug class (DBGC_CLASS) in the debug ↵Michael Adam1-0/+4
header. Control this by a new boolean smb.conf option "debug class" which is by default set to "no" to keep the default debug header unchanged. Michael Note: You need to make clean for this patch. (This used to be commit 066a46ba91ca734d9e20cb9d6db36fec209a27d7)
2007-10-10r25049: Set new, more secure defaults for Samba 3.2.Andrew Bartlett1-4/+4
Andrew Bartlett (This used to be commit 87d39f61b498c1327c2b3a818e41bb6451fe7518)
2007-10-10r25036: Fix a become/unbecome_root() pairVolker Lendecke1-1/+1
(This used to be commit 9e53f50e9489a5f6cfa40eed59be39e8a294db7d)
2007-10-10r25009: Large patch discussed with Volker. Move unix_convert to a talloc-basedJeremy Allison1-4/+0
interface. More development will come on top of this. Remove the "mangled map" parameter. Jeremy. (This used to be commit dee8beba7a92b8a3f68bbcc59fd0a827f68c7736)
2007-10-10r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke1-39/+5
This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker (This used to be commit 6585ea2cb7f417e14540495b9c7380fe9c8c717b)
2007-10-10r24639: Add parameter "directory name cache size" - parameterizeJeremy Allison1-1/+8
use of directory name cache, 100 by default. Will be needed to turn this off for *BSD systems. Jeremy. (This used to be commit bea8e9840fd65268e649f813eba10502b0c4d721)
2007-10-10r24636: Raise one debug level, since the callers (that want to do so)Michael Adam1-1/+1
issue a level 0 debug message. Michael (This used to be commit c0022ff9278a06b92a550cf0d6a8e75af31a673c)
2007-10-10r24616: In set_boolean(), only pass the result back to the callerMichael Adam1-1/+2
if parsing of the boolean string was successful. Also, initialize the local result variable (although not strictly necessary anymore, now.) (This used to be commit bf0daa74fadcd506b80c29d04ccf6ec7345ee0e1)
2007-10-10r24602: Add function lp_string_is_valid_boolean() to check if a stringMichael Adam1-2/+18
contains a correct representation of a boolean value (in the understanding of loadparm.c). Make set_boolean() catch passing NULL for the boolean target. Michael (This used to be commit d13eaa60f504987445b7333ef6972491c9483e6a)
2007-10-10r24572: Allow for functions map_parameter_canonical() and is_synonym_of() toMichael Adam1-11/+33
be called with inverse == NULL. Add a new function lp_parameter_is_canonical() to check whether a parameter name is the canonical name (as apposed to an alias). Michael (This used to be commit 07dc0fecf5116b34e468bddae8b36920c492717a)