summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s3: Add SERVERID_UNIQUE_ID_NOT_TO_VERIFY, bug 8760Volker Lendecke2012-02-154-6/+40
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Feb 15 21:10:22 CET 2012 on sn-devel-104
* s3-printing: fix crash in printer_list_set_printer()David Disseldorp2012-02-151-1/+1
| | | | | | | | | | | | | | | | The printer list database format was recently changed to accommodate for the printcap location field. One of the tdb_pack calls is not provided with a location string argument, this causes a crash on some platforms. https://bugzilla.samba.org/show_bug.cgi?id=8762 Signed-off-by: Günther Deschner <gd@samba.org> Signed-off-by: Jim McDonough <jmcd@samba.org> Signed-off-by: Lars Müller <lars@samba.org> Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Wed Feb 15 19:34:38 CET 2012 on sn-devel-104
* tevent_signal: Fix a valgrind errorVolker Lendecke2012-02-151-1/+2
| | | | | | | | | | | This fixes an uninitialized read introduced by my fix for the tevent_signal destructors. From looking at the code you might believe that this kicks in only when talloc failed. But with -O3 I do see it in normal operations. Sorry for that. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Feb 15 17:58:37 CET 2012 on sn-devel-104
* s3: files_struct->mode is only written, remove itVolker Lendecke2012-02-144-5/+0
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Feb 14 19:14:29 CET 2012 on sn-devel-104
* tdb: build and run unit tests in tdb/test/Rusty Russell2012-02-141-7/+87
| | | | | | | | | | | | | | | | | | | | Now we can build the test binaries: the CCAN style is to compile everything called "compile_ok*.c", compile and run everything called "run*.c", compile, link with the module, and run everything called "api*.c", and link any other C files (presumably test helpers) into all the tests. Unfortunately, actually passing that between the various parts of wscript is painful, so I open-coded the names. Also, the tests expect to be run in a (temporary) directory they can pollute, with the test directory found in test/ (to find the canned TDB files, for example). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Feb 14 06:53:46 CET 2012 on sn-devel-104
* tdb/test: fix up tests for use in SAMBA tdb code.Rusty Russell2012-02-145-13/+16
| | | | | | | | | | | 1) Make sure we include "tdb_private.h" first, to get the right headers (esp. the correct setting of _FILE_OFFSET_BITS before unistd.h). 2) Fix 3G file test since expand logic has changed. 3) Fix nested transaction test, since default is to allow nesting. 4) Capture fdatasync, which was slowing down transaction expand. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: wean CCAN-style unit tests off of tap.Rusty Russell2012-02-1425-23/+64
| | | | | | | | We could use subunit, but that's overkill. Just print messages when we fail, and use exit status. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: import unit tests from CCAN into tdb/test/Rusty Russell2012-02-1435-1/+2567
| | | | | | | | | | | I pulled tdb into CCAN as an experiment a while ago; it doesn't belong there, but it has accumulated some important unit tests. These are copied from CCAN version init-1486-gc438ec1 with #include "../" changed to #include "../common/". Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: make tdb_private.h idempotent.Rusty Russell2012-02-141-0/+3
| | | | | | | | | | The most convenient way to write unit tests in C is to directly #include the C files (CCAN uses this, for example). That works quite well, but it means that tdb_private.h now needs to be protected against multiple inclusions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s4:torture: add another SMB2 rename testChristian Ambach2012-02-132-0/+131
| | | | | | | this mimics Word 2010 saving a file Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Mon Feb 13 18:33:43 CET 2012 on sn-devel-104
* libndr: Add ndr_map_error2errnoVolker Lendecke2012-02-132-0/+26
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 13 15:06:29 CET 2012 on sn-devel-104
* s3-auth: On successful user mapping set mapped_to_guest to false.Sumit Bose2012-02-131-0/+1
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon Feb 13 13:09:10 CET 2012 on sn-devel-104
* s3-selftest: Do not assume $USERNAME is the same as $DC_USERNAMEAndrew Bartlett2012-02-131-3/+3
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Feb 13 06:13:38 CET 2012 on sn-devel-104
* selftest: Allow setup_env() to signal that an environment name is unknownAndrew Bartlett2012-02-134-5/+12
| | | | | | | This will allow us to skip samba4 environments that may be mentioned in the source3/selftest/tests.py file. Andrew Bartlett
* s3-build: expliticly require gssapi for HAVE_KRB5 and remove HAVE_GSSAPIAndrew Bartlett2012-02-133-7/+1
| | | | | | | The requirement for gss functions already make this happen, but this is clearer. No code depends on HAVE_GSSAPI any more. Andrew Bartlett
* s3-libads: Move to using only the HAVE_KRB5 defineAndrew Bartlett2012-02-133-15/+13
| | | | | | HAVE_KRB5 already implies that GSSAPI is present as well. Andrew Bartlett
* s3-lib/addns: Move to system/kerberos.h and HAVE_KRB5Andrew Bartlett2012-02-132-18/+3
|
* s4-dsdb: Check if metadata.tdb exists, before trying to open itAmitay Isaacs2012-02-131-0/+6
| | | | | | | | | | This fixes the error output from tdb2 when metadata module tries to create metadata.tdb first time. This error is reported since metadata module tries to check if tdb exists by trying to open tdb file. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Mon Feb 13 03:02:09 CET 2012 on sn-devel-104
* auth: Pass in the SMB username (for %U) into generate_session_infoAndrew Bartlett2012-02-136-6/+16
| | | | | | | | | This matches what Samba3 does. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Feb 13 01:25:59 CET 2012 on sn-devel-104
* s4:join python code - "msDS-KeyVersionNumber" does not exist on Win2kMatthias Dieter Wallnöfer2012-02-131-2/+6
| | | | | | | | No problem since "secretsdb_self_join()" then chooses 1 as a default value. Fix case sensitivity for "msDS-KeyVersionNumber". Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* LDB:pyldb.c - use always the case insensitive comparison for attribute namesMatthias Dieter Wallnöfer2012-02-131-2/+2
| | | | | | We can make no assumptions about our users Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* wafsamba: Add tests for dict_concat.Jelmer Vernooij2012-02-121-1/+20
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Feb 12 20:17:54 CET 2012 on sn-devel-104
* wafsamba: Add tests for unique_list, subst_vars_error.Jelmer Vernooij2012-02-122-3/+38
|
* waf: Add initial unit test for samba_utils.Jelmer Vernooij2012-02-124-0/+55
|
* gitignore: Ignore waf cache files.Jelmer Vernooij2012-02-121-0/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Feb 12 16:14:49 CET 2012 on sn-devel-104
* mkversion: Add quotes around various version stringsAmitay Isaacs2012-02-111-3/+3
| | | | | | | This fixes compilation errors when VENDOR strings are specified. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Sat Feb 11 09:07:54 CET 2012 on sn-devel-104
* s3-waf: add dependency on talloc or it won't build if talloc.h is not in the ↵Matthieu Patou2012-02-103-6/+11
| | | | | | | | | | default include path The problem occurs only if talloc, tdb and ldb are used as system libraries and talloc is not installed in a default. Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri Feb 10 23:27:29 CET 2012 on sn-devel-104
* s3-winbindd: set the can_do_validation6 also for trusted domainMatthieu Patou2012-02-101-0/+2
| | | | | | | The flag can_do_validation6 was only set for the domain to which winbindd is the member. Setting this flag in other domains (trusted domain) if it's active directory domain is a good idea as it allow to do level 6 validation also when winbindd is querying them directly.
* s3:smbd/oplock_linux: don't overwrite private_dataStefan Metzmacher2012-02-101-2/+0
| | | | | | | | | | | | | We set ctx->private_data = sconn a few lines above and expect 'sconn' in the signal event handler. Thanks to Christian Ambach <ambi@samba.org> for the bug report. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Feb 10 21:48:18 CET 2012 on sn-devel-104
* s3:vfs_gpfs:quieten an expectable warning messageChristian Ambach2012-02-101-1/+5
| | | | | Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Fri Feb 10 20:14:12 CET 2012 on sn-devel-104
* s3:vfs_gpfs: fix a compiler warningChristian Ambach2012-02-101-1/+2
|
* s3:vfs_gpfs:Fix query of creation time from GPFSChristof Schmitt2012-02-101-0/+3
| | | | | | | | | | | | | | Setting the creation time through SetFileTime on a GPFS file system and querying it with GetFileTime shows a mismatch. The vfs_gpfs module first retrieves the information from the operating system and the flag st_ex_calculated_birthtime is set to false. When vfs_gpfs retrieves the birthtime from GPFS the flag st_ex_calculated_birthtime has to be set to true. Otherwise the birth time will get overwritten by a call to update_stat_ex_mtime, reporting the wrong time to a client system. Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:vfs_gpfs: make "gpfs:getrealfilename" a per share optionStefan Metzmacher2012-02-102-7/+15
| | | | | | metze Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:vfs_gpfs: make "gpfs:ftruncate" a per share optionStefan Metzmacher2012-02-102-3/+14
| | | | | | metze Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:vfs_gpfs: make "gpfs:winattr" a per share optionStefan Metzmacher2012-02-102-5/+73
| | | | | | metze Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:vfs_gpfs: be less verbose in get/set_xattr functionsStefan Metzmacher2012-02-101-2/+2
| | | | | | metze Signed-off-by: Christian Ambach <ambi@samba.org>
* s3-smb2: Use the correct indicator if a request was deferredVolker Lendecke2012-02-101-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Feb 10 16:44:23 CET 2012 on sn-devel-104
* s3-smb2: Make sure we have a subreq setVolker Lendecke2012-02-101-0/+1
|
* selftest: add smb2.rename to testsuiteChristian Ambach2012-02-102-1/+11
| | | | | Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Fri Feb 10 15:02:51 CET 2012 on sn-devel-104
* s4:torture: add some SMB2 renaming testsChristian Ambach2012-02-103-1/+843
|
* gensec: explain gensec_use_kerberos_mechs() logicAndrew Bartlett2012-02-101-1/+16
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 10 12:36:23 CET 2012 on sn-devel-104
* gensec: set flag to continue in outer for loop in gensec_use_kerberos_mechsAndrew Bartlett2012-02-101-1/+5
| | | | | | | | | This should be the correct fix for the valgrind erorr Volker found in 744ed53a62037a659133ccd4de2065491208ae7d. This fix avoids putting SPNEGO into the list twice when we are in the CRED_DONT_USE_KERBEROS case. Andrew Bartlett
* Revert "gensec: Fix a memory corruption in gensec_use_kerberos_mechs"Andrew Bartlett2012-02-101-2/+1
| | | | | | | | | This reverts commit 744ed53a62037a659133ccd4de2065491208ae7d. The real bug here is that the second half of the outer loop should not have been run once we found spnego. Andrew Bartlett
* selftest: mark posix_s3.rpc.spoolss.printer as flakey testStefan Metzmacher2012-02-101-0/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Feb 10 10:04:15 CET 2012 on sn-devel-104
* s4-nbt_server: remove unused winsdb_get_seqnumber()Andrew Bartlett2012-02-101-26/+0
| | | | | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 10 08:21:41 CET 2012 on sn-devel-104
* s3-libsmb: Remove unused kerberos_set_creds_enctype()Andrew Bartlett2012-02-104-40/+0
| | | | | | | | Also remove the unused configure tests for krb5_c_enctype_compare. Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* s3-libsmb: Remove unused kerberos_compatible_enctypesAndrew Bartlett2012-02-104-21/+1
| | | | | | | | Also remove the unused configure tests for krb5_c_enctype_compare. Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* s3-lib: Remove unused is_myworkgroup()Andrew Bartlett2012-02-102-18/+0
| | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* s3-charcnv: Remove unused rpcstr_push()Andrew Bartlett2012-02-102-9/+0
| | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* s3-libsmb: Remove unused smb_krb5_mk_error()Andrew Bartlett2012-02-104-58/+0
| | | | | | | | Also remove now-unused configure checks for krb5_mk_error(). Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett