summaryrefslogtreecommitdiffstats
path: root/source3/param
Commit message (Collapse)AuthorAgeFilesLines
* loadparm: use lp_printername ctx param instead of tosDavid Disseldorp2013-11-201-1/+1
| | | | | | | | | | lp_printername() takes a TALLOC_CTX argument, but proceeds to use talloc_tos() in a subsequent lp__printername call. Fix it to use the parameter - most callers use talloc_tos() as the argument, the others have a temporary context around. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* param: Autogenerate s3 lp_ctx glue tableAndrew Bartlett2013-10-162-63/+6
| | | | | | | | This allows us to use more lpcfg_ functions without adding them manually. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3/param: Autogenerate parameters prototypes again after proto.h was frozenAndrew Bartlett2013-10-161-0/+5
| | | | | | | | | | | This autogenerates the parameters so that we can keep everything in sync easier, particularly when adding new parameters. This will also make it easier to move to a fully autogenerated system in the future, as it reduces special cases. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* build: Move loadparm-related build rules to source3/param/wscript_buildAndrew Bartlett2013-10-161-0/+32
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* lib/param: lp_magicchar takes a const struct share_params *p so should be ↵Andrew Bartlett2013-10-161-1/+1
| | | | | | | | | | | FN_LOCAL_PARM_CHAR This was found when trying to autogenerate prototypes for lp_ functions again. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3-winbindd: Remove undocumented winbindd:socket dir parameterAndrew Bartlett2013-10-151-0/+1
| | | | | | | | | | | | | | | | This uses the documeted "winbindd socket directory" parameter instead. This came about due to the merge of the two smb.conf tables in s3 and s4 for the Samba 4.0 release. The s4 code used a real parameter, which caused this to be documented, whereas no automatic procedure existed to notice the parametric option and the need to document that. The fact that this was not used consistently in both codebases is one of the many areas of technical debt we still need to pay off here. Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* param: disable print notify backchannel by defaultDavid Disseldorp2013-10-141-1/+1
| | | | | | | | | | | | | | | | | | In handling RemoteFindFirstPrinterChangeNotifyEx requests, the spoolss server can establish a "backchannel" connection to the print client, as a mechanism for sending print notifications. This behaviour is governed by the "print notify backchannel" smb.conf parameter. This change sets "print notify backchannel" to "no" by default, which sees Samba respond to RemoteFindFirstPrinterChangeNotifyEx requests with WERR_SERVER_UNAVAILABLE. In recieving such a response, print clients can fall back to polling for print queue changes. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Mon Oct 14 18:49:41 CEST 2013 on sn-devel-104
* Remove dead code. Now we have no SWAT we don't use the invalid_services ↵Jeremy Allison2013-10-031-37/+12
| | | | | | | | | | array or associated counter. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@suse.de> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Oct 3 03:22:36 CEST 2013 on sn-devel-104
* loadparm: add new parameter "acl allow execute always"Michael Adam2013-09-101-0/+1
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* s3:param: Correctly set up cli_maxprotocol, cli_minprotocol in our parameter ↵Jeremy Allison2013-08-151-0/+2
| | | | | | | | | | | block. Set to PROTOCOL_NT1, PROTOCOL_CORE by default. Bug: https://bugzilla.samba.org/show_bug.cgi?id=9829 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* auth: Remove "password level"Andrew Bartlett2013-06-111-1/+0
| | | | | | | | | | | We now only lowercase the password, we do not attempt to find another case combination that the password might be in. This option is already depricated, so it is now time to remove it. Andrew Bartlett Reviewed-by: Simo Sorce <idra@samba.org>
* swat: Remove swat.Kai Blin2013-05-181-1/+1
| | | | | | | | Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Sat May 18 16:32:38 CEST 2013 on sn-devel-104
* s3: remove some dead code (for setdir command)Christian Ambach2013-03-121-1/+0
| | | | | | | | | | | set dir seems to have been a special SMB command used by Pathworks clients the supporting code for it was already removed in 2007, so just remove all remnants related to it (smb.conf parameter, documentation, ...) Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 12 01:03:37 CET 2013 on sn-devel-104
* param: Remove incorrectly added defaults in AD DC allowing WORLD WRITABLE filesAndrew Bartlett2013-03-101-2/+0
| | | | | | | | | | | | | | | | | | | | | | | These defaults were incorrectly added in fc5caffbc139d63cab1ec105884863f73772586f in what turns out to be an incorrect fix for bug #9462, which was in turn introduced by the swapping of security mask (default 0777) for create mask (0755) in 6adc7dad96b8c7366da042f0d93b28c1ecb092eb. While the permissions on sysvol and netlogon (the default shares) were fixed by provision, any additional shares that did not yet have an explit ACL set would create world-writable files by default. Administrators will need to manually correct the file permissions on any additional shares that were created after installation of the AD DC. Andrew Bartlett Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sun Mar 10 12:00:31 CET 2013 on sn-devel-104
* s3-param: Don't leak file descriptor.Andreas Schneider2013-02-221-0/+1
| | | | Reviewed-by: Alexander Bokovoy <ab@samba.org>
* param: 'use ntdb' flag (off by default).Rusty Russell2013-02-201-0/+1
| | | | | | | | For simplicity, we use this in the caller to choose between filenames. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:param: add new lp_idmap_default_backend()Michael Adam2013-02-051-0/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: introduce new lp_idmap_backend() that takes the domainMichael Adam2013-02-051-0/+27
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: add a commentMichael Adam2013-02-051-0/+4
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: remove unused function lp_idmap_backend()Michael Adam2013-02-051-0/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: remove unused functions lp_idmap_uid() and lp_idmap_gid()Michael Adam2013-02-051-47/+0
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: add utility function lp_idmap_default_range()Michael Adam2013-02-051-0/+5
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: add a utility function lp_idmap_range() to get the configured ↵Michael Adam2013-02-051-0/+40
| | | | | | | range for a given domain. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: remove an old comment (that is not up-to date any more)Michael Adam2013-02-051-2/+0
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Christian Ambach <ambi@samba.org>
* s3:param: set "map archive = no" in ROLE_ACTIVE_DIRECTORY_DCStefan Metzmacher2012-11-201-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:param: make init_locals() static.Michael Adam2012-11-161-1/+1
| | | | | | | | | | it is only used in loadparm.c Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Nov 16 03:33:34 CET 2012 on sn-devel-104
* s3-param: Handle setting default AD DC per-share settings in init_locals()Andrew Bartlett2012-11-161-19/+37
| | | | | | | | | | | | | | | | | | | This function is helpfully called between when we finish processing the globals and when we start processing the individual shares. This means that the "vfs objects" and other per-share settings we specify here become the defaults for (eg) [netlogon] and [sysvol] but the admin can override these on a per-share basis or (as we must in make test) for the whole server. This broke setting and fetching of group policy objects from Windows clients, since this setting was moved from fileserver.conf in 8518dd6406c0132dfd8c44e084c2b39792974f2c, and wasn't found in 'make test' because we have to override the vfs objects to insert the xattr_tdb and fake_acl modules. Andrew Bartlett Reviewed-by: Michael Adam <obnox@samba.org>
* s3-param: Move the options needed for running smbd in the AD DC to loadparmAndrew Bartlett2012-11-011-0/+17
| | | | | | | | | | | | | | | | | | This avoids the whole fileserver.conf thing, and simply handles everything in C. The main challenge is that if s3fs is enabled in a member server configuration (unlikely) then these options will not be set, and it overrides any other attempt to set these as globals. (The previous approach essentially just changed defaults, because the include = of smb.conf was after the values were set in fileserver.conf). Andrew Bartlett Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Nov 1 11:47:22 CET 2012 on sn-devel-104
* Remove the parameters:Jeremy Allison2012-10-041-4/+0
| | | | | | | | | security mask force security mode directory security mask force directory security mode and update the docs.
* Revert "Add functions to programatically set the security mask and directory ↵Jeremy Allison2012-10-041-14/+0
| | | | | | | | security mask parameters." This reverts commit 8f0ecbbbeebff0174579a78827d384067cd4cbb7. Not now needed as part of the move to remove security mask parameters.
* Add functions to programatically set the security mask and directory ↵Jeremy Allison2012-10-021-0/+14
| | | | security mask parameters.
* panic action is defined as GLOBAL_VAR(szPanicAction) not ↵Matthieu Patou2012-09-181-1/+0
| | | | | | | | | GLOBAL_VAR(panic_action) Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Sep 18 06:12:00 CEST 2012 on sn-devel-104
* s3: introduce a new share config option "durable handles" defaulting to "yes"Michael Adam2012-09-081-0/+1
| | | | | | | | | | | | | | | This is in order to be able to turn durable handles off and on on a per share basis. Note: This is only used in combination with: kernel share modes = no kernel oplocks = no posix locking = no Which means CIFS/SMB2 only access. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: add an option "kernel share modes" to be able to switch off using kernel ↵Michael Adam2012-09-081-0/+1
| | | | | | flocks Signed-off-by: Stefan Metzmacher <metze@samba.org>
* loadparm: remove remnants of removed option "share modes"Michael Adam2012-09-081-3/+0
| | | | | | (This completes commit d0878b3b8179b1cf061e1058bacbe670363b51c6) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:param: change "server max protocol" to "SMB3"Stefan Metzmacher2012-09-081-1/+1
| | | | metze
* s3-printing: Restrict printing=cups to systems with cups development headers ↵Andrew Bartlett2012-09-061-14/+0
| | | | | | | | | at build time This means that instead of failing due to the default commandline values not being quite correct that we clearly fail at loadparm and testparm time when parsing the printing= line. Andrew Bartlett
* s3-passdb: Rename pdb_samba4 to samba_dsdb and autoconfigure when we are a AD DCAndrew Bartlett2012-09-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The name samba_dsdb is not ideal, but it matches the primary ldb module we use, and more importantly it avoids having '4' in the name. We should slowly avoid using the term samba4 in long-term places like the smb.conf because it is confusing to users given we are shipping Samba 4.0 as an AD DC as well as all the other supported roles (domain member/standalone server/classic DC) Additionally, samba4 will be an odd name when we eventually release Samba 5.0! samba4 remains accepted as an alias to ensure existing smb.conf files load, but to allow changes here in the future, we set the value during the smb.conf load, and not during the provision when we are an AD DC. This simplifies the default smb.conf for the vast majority of our users and reduces the number of things listed in smb.conf files that we later have to work around if we wish to change the name/implementation of the passdb glue module again. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Sep 4 04:45:16 CEST 2012 on sn-devel-104
* s3-param: Avoid assert on use of talloc_tos() without stackframeAndrew Bartlett2012-08-281-2/+3
| | | | | | This is hit during samba-tool domain classicupgrade Andrew Bartlett
* file_server: Move default VFS module settings to loadparm.cAndrew Bartlett2012-08-231-0/+13
| | | | | | | | | | This means that any utility that calls into the VFS layer will get the right modules. Because we use the fake_acls backend we need to override this whole list in Samba4.pm however. Andrew Bartlett
* build: Remove special case for the build farmAndrew Bartlett2012-08-211-1/+1
| | | | | | | | | | | Except in the formatting of the selftest output, this removes the special case of the build farm, so that an autobuild, a manual make test and the build farm are more similar. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 21 06:39:04 CEST 2012 on sn-devel-104
* s3:smbd: lp_smb_encrypt() returns SMB_SIGNING_* valuesStefan Metzmacher2012-08-171-1/+1
| | | | metze
* s3:param: fix compiler warnings with FN_GLOBAL_CONST_STRING()Stefan Metzmacher2012-08-101-1/+1
| | | | metze
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-092-2/+7
|
* s3-param: Remove never-reached condition for popts == NULLAndrew Bartlett2012-08-071-4/+0
| | | | | | | | | All the callers provide a parametric options pointer to fill in. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Aug 7 17:16:38 CEST 2012 on sn-devel-104
* s3-param: Remove never-reached condition for opt_list == NULLAndrew Bartlett2012-08-071-4/+0
| | | | | | All the callers provide a parametric options pointer to fill in. Andrew Bartlett
* source3/loadparm.c: Move string_set/string_free inside.Rusty Russell2012-08-071-0/+52
| | | | | | | The only user, so make them static inside loadparm.c Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* source3/loadparm: make struct loadparm_service a talloc object.Rusty Russell2012-08-071-1/+2
| | | | | | | This gives us a place to allocate members from. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* loadparm: Add ctx member to struct loadparm_global.Rusty Russell2012-08-071-0/+3
| | | | | | | | Rather than tallocing global parameters off NULL, keep it neat by having a Global.ctx member. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* lib/param: move enum dns_update_settings to lib/paramChristian Ambach2012-08-061-1/+0
|