summaryrefslogtreecommitdiffstats
path: root/lib/param
Commit message (Collapse)AuthorAgeFilesLines
* lib/param: simplfy lp_find_security()Andrew Bartlett2012-06-111-5/+0
| | | | | | All the roles other than ROLE_DOMAIN_MEMBER map to SEC_USER. Andrew Bartlett
* lib/param: Put common FN_ macros into param_functions.cAndrew Bartlett2012-05-303-256/+257
| | | | | | | This will in turn make it possible to put the actual parameter definitions in common. Andrew Bartlett
* lib/param: Add a few more s3 parametersAndrew Bartlett2012-05-301-0/+4
|
* lib/param: Import s3 parameters into lib/param to allow the parameter lists ↵Andrew Bartlett2012-05-301-0/+164
| | | | | | | | | | | | merge This will allow us to create just one list of the FN_ macros, included into both parameter systems. This will in turn allow the actual parameter definitions to be merged in a similar way. Andrew Bartlett
* lib/param: Mark a few more parameters const (matching s3)Andrew Bartlett2012-05-301-12/+13
| | | | | | | While this makes no difference in the lib/param code, this allows the C files to be compared and merged. Andrew Bartlett
* param: mark realm parameter as constAndrew Bartlett2012-05-301-1/+1
|
* param: Sort global param functions macros to ease the s3/s4 mergeAndrew Bartlett2012-05-301-81/+78
| | | | | | | This makes it easier to them merge these two function lists without changing the meaning of the output. Andrew Bartlett
* lib/param: Add .flags to max/min protocol to match s3Andrew Bartlett2012-05-301-4/+8
| | | | | | This reduces the difference in the parameter tables. Andrew Bartlett
* lib/param: Add .flags to wins parameters to match s3Andrew Bartlett2012-05-301-2/+4
| | | | | | This reduces the difference in the parameter tables. Andrew Bartlett
* lib/param: Harmonise 'password server' parameter between s3 and s4Andrew Bartlett2012-05-301-3/+3
|
* s3-auth: remove "security=server" (depricated since 3.6)Stefan Metzmacher2012-05-152-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | "security=server" has a lot of problems in the world with modern security (ntlmv2 and krb5). It was also not very reliable, as it needed a stable connection to the password server for the lifetime of the whole client connection! Please use "security=domain" or "security=ads" is you authentication against remote servers (domain controllers). metze -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SERVER | | security=server | | | | | | 12 May | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
* lib/param: add support for "SMB3_00"Stefan Metzmacher2012-05-061-0/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun May 6 16:38:00 CEST 2012 on sn-devel-104
* loadparm: Add helper function to fetch default lifetime policiesSimo Sorce2012-04-192-0/+24
| | | | | | This use long to fetch time_t quantities, because there are architectures were time_t is a signed long but long != int, So long is the proper way to deal with it.
* loadparm: Add convenience function to return long integersSimo Sorce2012-04-191-0/+25
|
* loadparm: Fix broken lp_ulong utility functionSimo Sorce2012-04-191-2/+2
|
* Move README file in the right place.Simo Sorce2012-04-191-0/+4
| | | | Someone forgot to move the README when they moved the code ...
* param: harmonise wins parametersAndrew Bartlett2012-04-161-8/+8
|
* lib/param: swap preferred name for 'lock dir' to match s3Andrew Bartlett2012-04-161-2/+2
|
* param: Merge common param elements by adding .flagsAndrew Bartlett2012-04-161-40/+80
| | | | | | | This removes the difference between many of the key elements of the global parameters table, and makes it easier to merge the two tables. Andrew Bartlett
* param: harmonsise logfile parameterAndrew Bartlett2012-04-161-1/+2
|
* param: Merge common param elements by adding .flagsAndrew Bartlett2012-04-161-17/+34
| | | | | | | This removes the difference between many of the key elements of the global parameters table, and makes it easier to merge the two tables. Andrew Bartlett
* s3:param convert kernel oplocks to share parameterChristian Ambach2012-04-111-0/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s4 dns: Check smb.conf if we should allow recursionKai Blin2012-03-271-0/+21
|
* s3-auth: Remove security=share (depricated since 3.6).Andrew Bartlett2012-03-042-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes security=share, which Samba implemented by matching the per-share password provided by the client in the Tree Connect with a selection of usernames supplied by the client, the smb.conf or guessed from the environment. The rationale for the removal is that for the bulk of security=share users, we just we need a very simple way to run a 'trust the network' Samba server, where users mark shares as guest ok. This is still supported, and the smb.conf options are documented at https://wiki.samba.org/index.php/Public_Samba_Server At the same time, this closes the door on one of the most arcane areas of Samba authentication. Naturally, full user-name/password authentication remain available in security=user and above. This includes documentation updates for username and only user, which now only do a small amount of what they used to do. Andrew Bartlett -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SHARE | | security=share | | | | | | 5 March | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
* s3-param: Align lp_{max,min}protocol with lib/param namesAndrew Bartlett2012-02-271-0/+24
| | | | | | | | | | This adds an alisas to ensure that both our loadparm systems know all the names. I would like to move to the 'server ..' name as canonical, and this will be raised on the list. Andrew Bartlett
* loadparm: handle P_SEP in switches (silences warning with clang).Jelmer Vernooij2012-02-071-0/+5
|
* param: handle P_BYTES in more placesAndrew Bartlett2012-01-211-0/+1
|
* lib/param: avoid talloc_reference() in copy_service()Stefan Metzmacher2012-01-111-3/+3
| | | | | | | | | | | The memory reduction compared of talloc_reference() over talloc_strdup() is typically very low. As the strings are typically short compared to the talloc header overhead. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 11 16:13:50 CET 2012 on sn-devel-104
* gensec: Allow an alternate set of modules to be specifiedAndrew Bartlett2011-12-281-1/+1
| | | | | | | This will allow s3 to specify modules to use as a list, rather than needing to start the individual module with gensec_start_mech_by_ops() Andrew Bartlett
* lib/param: add support for "SMB2_24" in smb.conf optionsStefan Metzmacher2011-12-221-0/+1
| | | | metze
* param: domain_logons and domain_master are of type enum_bool_autoAmitay Isaacs2011-12-223-3/+3
| | | | | | | | These parameters should be defined as int and not bool. This fixes the test failures on big endian machines. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Dec 22 10:37:42 CET 2011 on sn-devel-104
* param: Fix the data type for bAvailableAmitay Isaacs2011-12-221-1/+1
| | | | | | | | This causes the copy_service() to not copy bAvailable boolean on big endian machines causing tests to fail. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Dec 22 05:30:49 CET 2011 on sn-devel-104
* s4 dns: Allow updates based on smb.conf settingKai Blin2011-12-173-0/+21
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sat Dec 17 04:19:40 CET 2011 on sn-devel-104
* lib/param: Set s4 "host msdfs = true" by defaultAndrew Bartlett2011-12-161-0/+2
| | | | | | | | | | | This matches the s3 loadparm, and makes this feature available by default for our users in a DC environment. (This is needed for the correct operation of GPOs). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Dec 16 01:08:34 CET 2011 on sn-devel-104
* loadparm: fixed service list handlingAndrew Tridgell2011-12-151-14/+4
| | | | | | | | | | | when you have: server services = +smb -s3fs and 'smb' is already in the list, then this should not be an error. This ensures that a config that specifically sets the services it wants doesn't generate an error if the service list being set happens to be the default
* Add samba_kcc load parameterDave Craft2011-12-081-0/+11
| | | | | | | | Configures parameter to enumerate name of python KCC topology generator for subsequent use by samba_runcmd_send() invocation from kcc task Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/param: add "SMB2_22" to enum_protocolStefan Metzmacher2011-11-201-0/+1
| | | | metze
* lib/param simplify server role values specified in smb.confAndrew Bartlett2011-11-171-5/+1
| | | | | | | | | The pdc/bdc split is only in smb.conf for Samba3 DCs, and so is too confusing to document in this paramter. It will be clearer to sort out "domain master" into a "pdc emulator" paramter to conver this distinction. Andrew Bartlett
* param: use lp_is_security_and_server_role_valid()Andrew Bartlett2011-11-171-5/+11
| | | | | | | This also permits a few more valid combinations, due to the layer at which this is being used. Andrew Bartlett
* param: Check if server role and security parameters are conflictingAmitay Isaacs2011-11-172-0/+40
|
* param: Connect lp_security to the lib/param code to allow testsAndrew Bartlett2011-11-171-0/+10
| | | | Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* param: Move enum values into a common (included) .c fileAndrew Bartlett2011-11-172-81/+113
| | | | | | | | | This #include hack is required as it is not possible to declare a compile-time sized array in a header file. Andrew Bartlett Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* param: move server role helpers into loadparm.hAndrew Bartlett2011-11-174-33/+5
| | | | Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* param: calculate server role from security, and security from server roleAndrew Bartlett2011-11-174-7/+201
| | | | | | | | | | | | | This allows smb.conf files from either the samba3 or samba4 tradition to come to the same value of server role, using the information in the smb.conf file. This is important so that tools like 'net getlocalsid' work against a Samba4 AD installation (yes, users have tried this). Andrew Bartlett Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* s3-param remove lp_domain_logons(), always use IS_DCAndrew Bartlett2011-11-171-1/+1
| | | | | | | | This makes the code internally consistant. Andrew Bartlett Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* param: make server role list common and include auto (for the new default)Andrew Bartlett2011-11-171-1/+9
| | | | Pair-Programmed-With: Amitay Isaacs <amitay@samba.org>
* param: Add "domain logons" and "domain master" parametersAmitay Isaacs2011-11-171-0/+20
| | | | | This makes parsing of config files with s3 loadparm code and s4 loadparm code consistent.
* param: Remove duplicate initialization of 'share backend' parameterAmitay Isaacs2011-11-081-2/+0
|
* lib/param: use SMB_SIGNING_IF_REQUIRED instead of SMB_SIGNING_SUPPORTEDStefan Metzmacher2011-11-031-6/+7
| | | | metze
* lib/param: map "* signing = auto" to SMB_SIGNING_SUPPORTEDStefan Metzmacher2011-11-031-1/+1
| | | | metze