summaryrefslogtreecommitdiffstats
path: root/source/param
Commit message (Collapse)AuthorAgeFilesLines
* Rename the 'hidden' variable to 'administrative share'.Andreas Schneider2008-02-291-5/+5
| | | | (cherry picked from commit eff3d3bad5a8860b99375cc0be9dc24f3679e416)
* Remove my changeJeremy Allison2008-02-281-6/+7
|
* Fix debug %lu message.Jeremy Allison2008-02-281-2/+2
| | | | Jeremy.
* Add variable to define if a share should be hidden.Andreas Schneider2008-02-261-0/+5
| | | | | | | | | | If you create a share on a Windows machine called foo$ then this share is of the type STYPE_DISKTREE. So it is possible to administrate this kind of share. Tested on Windows NT and 2003. In samba we assume that if a share with a $ at the end must be of the type STYPE_DISKTREE_HIDDEN. This is wrong, so we need a variable in the config to define if the share should be hidden or not.
* Fix some warningsVolker Lendecke2008-02-251-2/+1
| | | | warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
* Use linbet_conf code in loadparm's registry handling.Michael Adam2008-02-191-223/+38
| | | | | | | This replaces the original hand-written tdb code, now that the linking dependencies have been significantly reduced. Michael
* Rename registry_init_regdb() to registry_init_smbconf().Michael Adam2008-02-151-1/+1
| | | | | | That's what it actually is. Michael
* Add support for LDAP debug output in Samba log file.Michael Adam2008-02-061-0/+19
| | | | | | | | | | | | | | | | | Logging of the ldap libraries appears with a [LDAP] prefix inside the samba logs. This is controlled by two new parameters: * "ldap debug level" sets the debug level of the ldap libraries. It is the bit-field as understood by the openldap server. * "ldap debug threshold" is the samba debug level at which ldap logging appears inside the samba logs. This probably needs some configure tests since it makes use of the LBER_OPT_LOG_PRINT_FN option to redirect the debug output of the ldap libraries. Michael
* str_list_free is not needed anymoreVolker Lendecke2008-02-041-12/+13
|
* Always pass a TALLOC_CTX to str_list_make and str_list_copyVolker Lendecke2008-02-041-7/+10
|
* strtok -> strtok_rVolker Lendecke2008-01-231-1/+3
|
* Do an explicit init_globals() when restarting for "config backend = registry".Michael Adam2008-01-201-0/+1
| | | | Michael
* Revert "default to tdbsam instead of smbpasswd"Volker Lendecke2008-01-161-1/+1
| | | | This reverts commit ab8ff39fd51929aae2f4088ca5b1d67e5cb7099e.
* default to tdbsam instead of smbpasswdVolker Lendecke2008-01-161-1/+1
|
* Add my (C) to loadparm.c.Michael Adam2008-01-161-0/+1
| | | | | | | I think now that I have changed some substantial logic, I should confess.... :-) Michael
* Remove special semantics of "include = registry" from loadparm.cMichael Adam2008-01-161-29/+0
| | | | | | This is now replaced by "config backend = registry". Michael
* Add utility function lp_config_backend_is_registry().Michael Adam2008-01-161-0/+8
| | | | | | | So external callers can determine if we are running on registry config without knowing the internals. Michael
* Initialise Globals.ConfigBackend from global var config_backend.Michael Adam2008-01-161-5/+11
| | | | | | and use lp_config_backend() instead of config_backend. Michael
* Add config parameter "config backend = registry".Michael Adam2008-01-161-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
* Add "MSDFS options" separator to parm_table.Michael Adam2008-01-161-0/+2
| | | | Michael
* Re-order an option block in parm_table to re-unite the misc options.Michael Adam2008-01-161-3/+3
| | | | Michael
* Reduce stat cache size defaultVolker Lendecke2008-01-091-1/+1
| | | | Now that we have a LRU scheme for the stat cache we can live with a lot less
* Change registry_create_admin_token() to return NTSTATUS.Michael Adam2008-01-091-3/+4
| | | | Michael
* Extend a comment.Michael Adam2008-01-091-1/+3
| | | | Michael
* Refactor the crypto code after a very helpful conversationJeremy Allison2008-01-041-3/+2
| | | | | | with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy.
* Add "smb encrypt" parameter. Can be set to "no, yes, required".Jeremy Allison2007-12-271-0/+4
| | | | | | Currently if set required this is not enforced. I'll be adding that soon. Jeremy.
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-2/+5
| | | | | negotiation works. Jeremy.
* Fix a C++ warningVolker Lendecke2007-12-211-1/+1
|
* Remove Get_Pwnam and its associated static variableVolker Lendecke2007-12-191-1/+5
| | | | All callers are replaced by Get_Pwnam_alloc
* Add a in-memory cacheVolker Lendecke2007-12-181-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.
* Add lp_include_registry_globals().Günther Deschner2007-12-121-0/+5
| | | | Guenther
* Remove two completely unnecessary globalsVolker Lendecke2007-12-101-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.
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-5/+5
| | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy.
* use dbwrap_rbt in loadparm.cVolker Lendecke2007-12-101-4/+2
|
* Convert ServiceHash to dbwrapVolker Lendecke2007-12-101-26/+47
|
* We don't need P_GSTRING or P_UGSTRING anymore.Jeremy Allison2007-12-071-55/+0
| | | | Jeremy.
* Don't build rpctorture anymore - not maintained. Just remove.Jeremy Allison2007-12-071-2/+18
| | | | | | Remove all vestiges of pstring (except for smbctool as noted in previous commit). Jeremy
* Remove some globalsVolker Lendecke2007-12-051-2/+5
|
* Move param helper routines to one place.Günther Deschner2007-11-301-0/+50
| | | | Guenther
* Save one extra strdup per lp_string. Use talloc_sub_basic()Jeremy Allison2007-11-271-12/+14
| | | | | directly. Jeremy.
* More pstring removal. This one was tricky. I had to addJeremy Allison2007-11-151-1/+1
| | | | | | one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy.
* Remove pstring from param/Jeremy Allison2007-11-131-94/+152
| | | | | | This was a little tricky..... I'll watch the build farm. Jeremy.
* Remove the silly "user_socket_options" global variableVolker Lendecke2007-11-091-3/+3
| | | | This is better done with a 'lp_do_parameter(-1, "socket options", ..);
* Constrain "min receivefile size" to max of BUFFER_SIZEJeremy Allison2007-11-071-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.
* Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-testGerald (Jerry) Carter2007-11-011-12/+15
|\
| * save memoryVolker Lendecke2007-11-011-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.
* | Patch 2 of 3 from Debian Samba packagers:Gerald (Jerry) Carter2007-11-011-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
* Add new parameter, "min receivefile size" (by default setJeremy Allison2007-10-301-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.
* Fix two type-punned warningsVolker Lendecke2007-10-211-3/+3
|
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-182-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.