summaryrefslogtreecommitdiffstats
path: root/source3/param/loadparm.c
Commit message (Collapse)AuthorAgeFilesLines
* s4-param Add hook between Samba3 and Samba4 loadparm systems.Andrew Bartlett2011-06-061-2/+21
| | | | | | | | In the top level build, this allows calls to code that requires a lpcfg_ style loadparm_context, while using the global parameters loaded from the source3 loadparm code. Andrew Bartlett
* s3-param always allow the realm parameterAndrew Bartlett2011-06-061-2/+0
|
* s3-param Make lp_ncalrpc_dir() constAndrew Bartlett2011-06-011-1/+1
| | | | | | | | | | | This disables % substitutions in the 'ncalrpc dir' parameter. This is used as a communication point between multiple parts of the codebase, and needs to be internally consistent between all the Samba tasks. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Jun 1 05:30:53 CEST 2011 on sn-devel-104
* s3-param Make lp_dedicated_keytab_file() constAndrew Bartlett2011-06-011-1/+1
| | | | | | This disables % substitutions in the 'dedicated keytab file' parameter. Andrew Bartlett
* s3-param Make lp_realm() constAndrew Bartlett2011-06-011-1/+1
| | | | | | | | This disables % substitutions in the 'realm' parameter. This is used all over the codebase, and needs to be internally consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_name_resolv_order() constAndrew Bartlett2011-06-011-1/+1
| | | | | | | | This disables % substitutions in the 'name resolv order' parameter. This is used all over the codebase, and needs to be internally consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_utmpdir() and lp_wtmpdir constAndrew Bartlett2011-06-011-2/+2
| | | | | | | | This disables % substitutions in the 'utmp dir' and 'wtmp dir' parameters. These are system paths, and need to be consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_piddir() constAndrew Bartlett2011-06-011-1/+1
| | | | | | | | This disables % substitutions in the 'pid dir' parameter. This is used all over the codebase, and need to be internally consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_cachedir() constAndrew Bartlett2011-06-011-5/+5
| | | | | | | | This disables % substitutions in the 'cache dir' parameter. This is used all over the codebase, and need to be internally consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_statedir() constAndrew Bartlett2011-06-011-5/+5
| | | | | | | | This disables % substitutions in the 'state dir' parameter. This is used all over the codebase, and need to be internally consistent between all the Samba tasks. Andrew Bartlett
* s3-param Make lp_lockdir() constAndrew Bartlett2011-06-011-1/+1
| | | | | | | | | This disables % substitutions in the 'lock dir' parameter. This is used all over the codebase, and needs to be internally consistent for the life of the process, as they determine the location of our locking databases. Andrew Bartlett
* s3-param Make lp_smb_passwd_file() and lp_private_dir() constAndrew Bartlett2011-06-011-2/+2
| | | | | | | | | This disables % substitutions in the 'smb passwd file' and 'private dir' parameters. These are used all over the codebase, and need to be internally consistent for the life of the process, as they determine the location of secrets.tdb, as well as the passdb databases. Andrew Bartlett
* s3-param Make lp_smb_ports() constAndrew Bartlett2011-06-011-1/+1
| | | | | | It makes no sense to have a % substiution in the 'smb ports' parameter. Andrew Bartlett
* s3-param Make charset parameters constAndrew Bartlett2011-06-011-3/+3
| | | | | | | This removes the dangerous ability for these parameters to change based on % substitutions. Andrew Bartlett
* s3-param Make lp_passwordserver() const.Andrew Bartlett2011-06-011-1/+1
| | | | | | This means that it no longer takes % substituations, and so the documentation for this behaviour is removed from the smb.conf manpage. (This mode is only useful in security=server, which is already marked as deprecated in 3.6). Andrew Bartlett
* s3-param Move init_iconv() to loadparm.cAndrew Bartlett2011-05-311-0/+14
| | | | | | This assists with some dependency loops Andrew Bartlett
* s3-param split service.c into param and smbd componentsAndrew Bartlett2011-05-311-21/+0
| | | | | | | | | | | The dependency chain of find_service can't be satisfied sensibly outside smbd, so don't include this in the main 'param' subsystem. Also remove the duplicate find_service() and conn_snum_used() from dummysmbd.c: The WAF build does not need these dummies any more, but file. Andrew Bartlett
* s3-smbd provide struct smbd_server_connection * to conn_snum_usedAndrew Bartlett2011-05-311-5/+6
| | | | | | | | | | | | | | | | This provides the 'sconn' parameter to this key functions, that is currently duplicated in dummysmbd.c, which causes duplicate symbol issues in the waf build. This has natrually caused a number of consequential changes across the codebase, includning not passing a messaging context into initial reload_services(): This causes problems because the global smbd_server_connection isn't yet set up, as there isn't a connection here, just the initial process. Andrew Bartlett
* s3-param Depricate 'password server = foo:12389' syntaxAndrew Bartlett2011-05-251-0/+5
| | | | | | | | | This was originally intended to allow the LDAP port on a DC to be varied, but makes little sense to change one port when in an environment where krb5, ldap, smb and potentially DCE/RPC over TCP are involved. Andrew Bartlett
* Fix bug #8150 - Ban 'dos charset = utf8'Jeremy Allison2011-05-241-1/+39
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue May 24 03:52:50 CEST 2011 on sn-devel-104
* s3-param: Remove unused snum2params_staticAndrew Bartlett2011-05-181-12/+0
|
* s3-param: remove unused share_iterator functionsAndrew Bartlett2011-05-181-48/+0
|
* s3-printing: Get the location info from cups.Günther Deschner2011-05-161-1/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-param Deprecate a number of security parameters for 3.6Andrew Bartlett2011-05-131-5/+11
| | | | | | | | | | | This follows up on the agreement on the samba-technical list in Jan 2011 to deprecate these options, and to possibly remove these in the 4.0 release after user feedback. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri May 13 19:51:41 CEST 2011 on sn-devel-104
* libsmbconf: Convert smbconf_get_config() to sbcErr.Andreas Schneider2011-05-101-3/+3
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_get_share() to sbcErr.Andreas Schneider2011-05-101-3/+3
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* libsmbconf: Convert smbconf_init() to sbcErr.Andreas Schneider2011-05-101-4/+4
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3: only include tdb headers where needed.Günther Deschner2011-05-061-0/+1
| | | | Guenther
* s3-param: run minimal_includes.pl.Günther Deschner2011-05-051-1/+0
| | | | Guenther
* s3: Make vlp printing work by defaultVolker Lendecke2011-04-051-8/+55
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Apr 5 13:12:14 CEST 2011 on sn-devel-104
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* Revert "Change strict allocate to default to true.Stefan Metzmacher2011-03-281-1/+1
| | | | | | | | | | | | | | | This reverts commit ecf48af135e4c1ebc5aafe4b3dad785162f5949a. This makes Samba unusable on systems without Linux and a modern Filesystem. This was discussed with Jeremy on IRC: http://irclog.samba.org/2011/01/20110126-Wed.log metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Mar 28 09:00:09 CEST 2011 on sn-devel-104
* fault: get fault.c ready for use by s4Andrew Tridgell2011-03-231-0/+2
| | | | | this moves the s3 specific dumpcore code into source3/lib/dumpcore.c, and uses a function pointer to setup which smb_panic call to use
* s3:loadparm: set the default "idmap config * : backend" in initialize_globals().Michael Adam2011-03-221-0/+2
|
* s3:loadparm: deprecate "idmap uid/gid/backend" and have them set "idmap ↵Michael Adam2011-03-221-26/+14
| | | | config * : range/backend"
* s3:loadparm: remove unused parameter "idmap read only".Michael Adam2011-03-221-10/+0
| | | | | This has not been released yet and is now useless since we use the "idmap config * : read only = ..." syntax.
* s3: Add "print notify backchannel" parameter to prevent us doing the reverse ↵Volker Lendecke2011-03-181-0/+12
| | | | | | | print notify connection. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Mar 18 21:34:30 CET 2011 on sn-devel-104
* s3-build: try to silence annoying "Ignoring invalid value 'vlp' for ↵Günther Deschner2011-03-151-2/+3
| | | | | | | | | | | parameter 'printing'" warning on the buildfarm. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Mar 15 23:38:43 CET 2011 on sn-devel-104
* lib/util: new merged debug systemAndrew Bartlett2011-03-011-1/+0
| | | | | | | | | | | | This is the s3 debug system, with a number of changes to tidy it up for common use. The debug class system is simplified by the removal of the ISSET table, the system no longer attempts to cope with assignment of DEBUGLEVEL, and the full class table is always available (rather than just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup. It is also no longer confusingly described as a hack, but as the initial table. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Mar 1 04:32:12 CET 2011 on sn-devel-104
* s3-param: Make "rlimit_max below minimum Windows limit" notification less scaryJonathan Nieder2011-02-251-2/+2
| | | | | | | | | | | | | | | | | The fix to bug #6837 results in messages from testparm that look like a misconfiguration even though they aren't: rlimit_max: rlimit_max (8192) below minimum Windows limit (16384) Apply a slight change in wording ("increasing rlimit_max to minimum Windows limit") to make it clearer that the user has done nothing wrong. (Similarly for sysctl_max.) Reported-by: Miguel Medalha <miguelmedalha@sapo.pt> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Feb 25 03:56:40 CET 2011 on sn-devel-104
* s3: no need to globally include intl.h.Günther Deschner2011-02-151-1/+1
| | | | Guenther
* s3:loadparm: skip leading spaces in parameter values from the command lineMichael Adam2011-02-091-1/+6
|
* s3: Make _lp_maxprotocol staticVolker Lendecke2011-01-291-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Jan 29 16:07:28 CET 2011 on sn-devel-104
* Change "security=share" to downgrade to SMB1 from SMB2, rather than trying ↵Jeremy Allison2011-01-271-1/+12
| | | | to fake it.
* s3:winbind: Fork multiple children per domainVolker Lendecke2011-01-211-0/+24
| | | | | | | | | | | | This makes us scale better with many simultaneous winbind requests, some of which might be slow. This implementation breaks offline logons, as the cached credentials are maintained in a child (this needs fixing). So, if the offline logons are active, only allow one DC connection. Probably the offline logon and the scalable file server cases are separate enough so that this patch is useful even with the restriction.
* s3-param: Fixed code block in max_open_files().Andreas Schneider2011-01-191-1/+1
| | | | | | | | When the HAVE_GETRLIMIT and RLIMIT_NOFILE macros are defined the block isn't closed. Autobuild-User: Andreas Schneider <asn@samba.org> Autobuild-Date: Wed Jan 19 23:10:50 CET 2011 on sn-devel-104
* Change strict allocate to default to true. (cherry picked from commit ↵Jeremy Allison2010-12-151-1/+1
| | | | 820ea22a07b062b1717d35de8fa7051fc1067c3f)
* Add a SMB2 crediting algorithm, by default the same as Windows. Defaults to ↵Jeremy Allison2010-12-101-4/+21
| | | | | | 128 credits. Jeremy.
* s3-client Use NTLMv2 by default in the Samba clientAndrew Bartlett2010-12-101-2/+2
| | | | | | This matches the improved security measures of Windows Vista. Andrew Bartlett
* s3-smbd Don't send SPNEGO principal (rfc4178 hint) by defaultAndrew Bartlett2010-12-101-0/+11
| | | | | | | | | | | | | | This patch, based on the suggestion by Goldberg, Neil R. <ngoldber@mitre.org> turns off the sending of the principal in the negprot by default, matching Windows 2008 behaviour. This slowly works us back from this hack, which from an RFC perspective was never the right thing to do in the first place, but we traditionally follow windows behaviour. It also discourages client implmentations from relying on it, as if they do they are more open to man-in-the-middle attacks. Andrew Bartlett