summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* dnsserver: Remove incorrect and not required include of ldb_private.hAndrew Bartlett2015-08-241-1/+0
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* winbind: Remove "have_idmap_config" from winbindd_domainVolker Lendecke2015-08-242-40/+0
| | | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464 Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Aug 24 19:19:31 CEST 2015 on sn-devel-104
* winbind: Do not look for the domain in wb_gid2sidVolker Lendecke2015-08-241-13/+0
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* winbind: Do not look for the domain in wb_uid2sidVolker Lendecke2015-08-241-13/+0
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* idmap: Remove dom_name from wbint_Gid2SidVolker Lendecke2015-08-242-2/+1
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* idmap: Remove dom_name from wbint_Uid2SidVolker Lendecke2015-08-242-2/+1
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* idmap: Remove "domname" from idmap_gid_to_sidVolker Lendecke2015-08-243-6/+4
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* idmap: Remove "domname" from idmap_uid_to_sidVolker Lendecke2015-08-243-6/+4
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* idmap: Remove "domname" from idmap_backends_unixid_to_sidVolker Lendecke2015-08-244-9/+7
| | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* idmap: Use a range search in idmap_backends_unixid_to_sidVolker Lendecke2015-08-241-1/+11
| | | | | | | | This obsoletes the domain name in the xid2sid calls Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* idmap: Initialize all idmap domains at startupVolker Lendecke2015-08-241-90/+109
| | | | | | | | | | | | | | | | | | | | So far we have initialized idmap domains on demand indexed by name. For sid2xid this works okay, because we could do lookupsids before and thus get the name. For xid2sid this is more problematic. We have to rely on enumtrustdoms to work completely, and we have to look at the list of winbind domains in the parent to get the domain name. Relying on domain->have_idmap_config is not particularly nice. This patch re-works initialization of idmap domains by scanning all parametric parameters, scanning for :backend configuration settings. This way we get a complete list of :range definitions. This means we can rely on the idmap domain array to be complete. This in turn means we can live without the domain name to find a domain, we can do a range search by uid or gid. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* idmap: Move idmap_init() under the static varsVolker Lendecke2015-08-241-15/+15
| | | | | | | | Just moving code, idmap_init will need to reference the variables Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* loadparm3: Add lp_wi_scan_global_parametrics()Volker Lendecke2015-08-242-0/+82
| | | | | | | | | | | This routine takes a regex and goes through all parametric parameters in [global], matching the regex. It can easily be extended to also look at shares, but right now it will only be used to list all idmap config domain names. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
* uwrap: Bump version to 1.1.1Andreas Schneider2015-08-211-1/+1
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Aug 21 17:48:45 CEST 2015 on sn-devel-104
* uwrap: Removed double newlineAndreas Schneider2015-08-211-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* uwrap: Fix build if getres(uid|gid) are not available.Andreas Schneider2015-08-211-4/+4
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3-auth: Fix a memory leak in make_server_info_info3()Andreas Schneider2015-08-211-12/+23
| | | | | | | | | | | We call make_server_info(NULL) and it is possible that we do not free it, because server_info is not allocated on the memory context we pass to the function. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9862 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s3-auth: Pass nt_username to check_account()Andreas Schneider2015-08-211-3/+6
| | | | | | | | | We set nt_username above but do not use it in this function. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9862 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* s3-auth: Fix 'map to guest = Bad Uid' supportAndreas Schneider2015-08-211-0/+8
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=9862 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
* param: Use talloc_pooled_objectVolker Lendecke2015-08-211-9/+3
| | | | | | | | | | Reduce memory fragmentation a bit and obsolete NULL checks Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Aug 21 14:45:58 CEST 2015 on sn-devel-104
* param: Simplify set_param_opt()Volker Lendecke2015-08-211-20/+16
| | | | | | | | "not_added" is not a very good boolean flag concept... An early return serves the same purpose just as well. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* lib: Remove unused parmlist codeVolker Lendecke2015-08-217-279/+14
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* vfs_scannedonly: Remove vfs_scannedonly from samba source tree.Robin Hack2015-08-216-1298/+1
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11459 Signed-off-by: Robin Hack <hack.robin@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Aug 21 07:17:35 CEST 2015 on sn-devel-104
* script/autobuild.py: make sure --nonshared-binary=smbtorture,smbd/smbd keeps ↵Stefan Metzmacher2015-08-201-1/+6
| | | | | | | | | | | | | | working - It's very useful to have a static smbtorture binary that can be copied arround. - It's sometimes also useful to have a static smbd binary in order avoid runtime overhead via do_lookup_x() (in ld*.so), note that Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Thu Aug 20 19:10:19 CEST 2015 on sn-devel-104
* script/autobuild.py: test some --with-{static,shared}-modules combinationsStefan Metzmacher2015-08-201-1/+16
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* script/autobuild.py: use -Wmissing-prototypes and --picky-developer for ↵Stefan Metzmacher2015-08-201-1/+2
| | | | | | | samba-libs* Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* script/autobuild.py: split out a samba_libs_configure variableStefan Metzmacher2015-08-201-5/+11
| | | | | | | The avoids too long lines. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:wscript: make --with-{static,shared}-modules options more flexibleStefan Metzmacher2015-08-201-26/+94
| | | | | | | | | | | | | | | | | | | | | | '!module' disables a non-required module for a static/shared build. '!DEFAULT' disables all modules defaulting to a static/shared build. '!FORCED' disables all (non-required) modules forced to a static/shared build. 'ALL' switches the default for all non forced modules from static to shared or from shared to static. The most specific specification wins e.g. --with-static-modules='!FORCED,!DEFAULT' --with-shared-modules='!FORCED,!DEFAULT' will only build modules which are required for the compilation. Might be useful if someone only wants to use client utils. --with-static-modules=ALL will build all modules statically linked. --with-static-modules='!DEFAULT,ALL' --with-shared-modules='!DEFAULT,ALL' might be useful for testing, it reverses the default build for all modules which can be build shared or static. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:wscript: simplify ABI matching for pdb_*_init()Stefan Metzmacher2015-08-201-10/+1
| | | | | | | The init functions of all static modules should be ignored. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:winbindd/idmap_*: make function prototypes available via static_decl_idmap;Stefan Metzmacher2015-08-207-0/+7
| | | | | | | This allows the static build of the modules. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:modules/perfcount_*: make function prototypes available via ↵Stefan Metzmacher2015-08-201-0/+1
| | | | | | | | | static_decl_perfcount; This allows the static build of the modules. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:modules/vfs_*: make function prototypes available via static_decl_vfs;Stefan Metzmacher2015-08-2012-1/+12
| | | | | | | This allows the static build of the modules. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* examples/VFS: make function prototypes available via static_decl_vfs;Stefan Metzmacher2015-08-203-0/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* examples/pdb: fix and validate pdb_test_init() prototype via static_decl_pdb;Stefan Metzmacher2015-08-201-2/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s4:ntvfs/posix: fix forward declaration of struct pvfs_stateStefan Metzmacher2015-08-201-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:wscript: remove leftover from vfs_notify_famStefan Metzmacher2015-08-202-7/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:idmap: we need to allow undefined symbols in idmap_tdbStefan Metzmacher2015-08-201-0/+1
| | | | | | | | When idmap_tdb is build as shared module we need to allow undefined symbols which callback into winbindd code. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:wscript: fix the build without any idmap moduleStefan Metzmacher2015-08-203-9/+11
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* smbd: Remove an unnecessary else branchVolker Lendecke2015-08-201-2/+1
| | | | | | | | | | "goto out;" is sufficient before Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Aug 20 15:52:20 CEST 2015 on sn-devel-104
* vfs: Add some {}Volker Lendecke2015-08-201-1/+2
| | | | | | | | The "mode = " from a very casual view looked as if it was part of the if-condition Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* lib: Use dom_sid_equal where appropriateVolker Lendecke2015-08-201-1/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* ctdb: Use talloc_report_str in ctdbVolker Lendecke2015-08-203-34/+24
| | | | | | | This fixes CID 1125620 Insecure temporary file Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* lib: Add the pointer itself to talloc_report_strVolker Lendecke2015-08-201-2/+2
| | | | | | | A ctdb test found this discrepancy to talloc_report_full :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* gensec: Fix CID 242642 Unchecked return valueVolker Lendecke2015-08-201-1/+6
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
* replace: Fix bug 11455Volker Lendecke2015-08-191-0/+1
| | | | | | | | | | | | Don't call rep_strtoull recursively Bug: https://bugzilla.samba.org/show_bug.cgi?id=11455 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Wed Aug 19 11:22:38 CEST 2015 on sn-devel-104
* ctdb: Fix some clang uninitialized errorsVolker Lendecke2015-08-191-4/+4
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* ctdb: Fix the build on FreeBSD 10.1Volker Lendecke2015-08-191-1/+1
| | | | | | | We get sockaddr_in directly in parse_ipv4 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s4:torture/rpc: fix ndr_security.h include in fsrvp.cStefan Metzmacher2015-08-171-1/+1
| | | | | | | | | | | | We should not include ndr_security.c This allows ./configure --nonshared-binary=smbtorture again. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Mon Aug 17 20:53:10 CEST 2015 on sn-devel-104
* release-scripts/build-manpages-nogit: run make realdistclean at the endStefan Metzmacher2015-08-171-0/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3:smb2_negprot: prefer AES128_CCM if the client supports itStefan Metzmacher2015-08-171-4/+14
| | | | | | | | | | | | Callgrind showed that we use 28,165,720,719 cpu cycles to send a 100MB file to a client using aes-ccm. With aes-gcm this is raises up to 723,094,413,831 cpu cycles. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11451 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>