summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* docs: Fix variable list in man vfs_crossrename.Karolin Seeger2013-08-201-9/+11
| | | | | | | | | | | | | | The varlist entries need a paragraph, otherwise the list is broken and the list entries end with ".RE". Fix bug #10076 - varlist in man vfs_crossrename broken. Signed-off-by: Karolin Seeger <kseeger@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Aug 20 04:19:42 CEST 2013 on sn-devel-104 (cherry picked from commit 1808316b1245290fd4a4aa87a801410899e4c1e3)
* s3-libads: Print a message if no realm has been specified.Andreas Schneider2013-08-141-1/+7
| | | | | | | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Aug 5 12:24:44 CEST 2013 on sn-devel-104 (cherry picked from commit 6659f0164c6b8d7ad522bcd6c2c6748c3d9bca81) The last 2 patches address bug #10073 - net ads join - segmentation fault in create_local_private_krb5_conf_for_domain.
* s3-libads: Fail create_local_private_krb5_conf_for_domain() if parameters ↵Günther Deschner2013-08-141-0/+4
| | | | | | | | | | | missing. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 6dc7c63efa95d0c04b542667d9b6a6621c8139bf)
* s3-winbind: Do not delete an existing valid credential cache.Andreas Schneider2013-08-141-0/+8
| | | | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=9994 Thanks to David Woodhouse <dwmw2@infradead.org>. Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Jul 15 12:48:46 CEST 2013 on sn-devel-104 (cherry picked from commit 0529b59fbe3f96509893fc4e93a75d6928b5a532)
* WHATWNEW: Start release notes for Samba 3.6.19.Karolin Seeger2013-08-141-2/+44
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* VERSION: Bump version up to 3.6.19.Karolin Seeger2013-08-141-1/+1
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* WHATSNEW: Prepare release notes for Samba 3.6.18.Karolin Seeger2013-08-121-4/+19
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* Ensure gpfs kernel leases are wrapped in a become_root()/unbecome_root() pair.Ralph Wuerthner2013-08-071-0/+6
| | | | | | | | | | | | | | Ensures correct lease owner for signal delivery. Signed-off-by: Ralph Wuerthner <ralphw@de.ibm.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Simo Sorce <idra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Aug 1 03:57:11 CEST 2013 on sn-devel-104 The last 2 patches address bug #10064 - Linux kernel oplock breaks can miss signals.
* Wrap setting leases in become_root()/unbecome_root() to ensure correct ↵Jeremy Allison2013-08-071-13/+20
| | | | | | | | | | delivery of signals. Remove workaround for Linux kernel bug https://bugzilla.kernel.org/show_bug.cgi?id=43336 as we don't need to set capabilities when we're already root. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Simo Sorce <idra@samba.org>
* Fix bug 9678 - Windows 8 Roaming profiles failGregor Beck2013-08-051-7/+2
| | | | | | | | Windows 8 tries to set 'ATTRIBUTE_SECURITY_INFORMATION' on some dirs. Ignoring it makes roaming profiles work again. Just like w2k3 gracefully ignore all the other bits. Signed-off-by: Gregor Beck <gbeck@sernet.de>
* security.idl: add new security_secinfo bitsGregor Beck2013-08-051-0/+3
| | | | | | [MS-DTYP].pdf 2.4.7 Signed-off-by: Gregor Beck <gbeck@sernet.de>
* WHATSNEW: Start release notes for Samba 3.6.18.Karolin Seeger2013-08-051-2/+44
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* VERSION: Bump version number up to 3.6.18.Karolin Seeger2013-08-051-1/+1
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* WHATSNEW: Add release notes for Samba 3.6.17.Karolin Seeger2013-08-051-4/+19
| | | | | Signed-off-by: Karolin Seeger <kseeger@samba.org> (cherry picked from commit e03ad1401fd1cca54f9f5c4c1e98ec9ad87b5565)
* Fix bug #10010 - Missing integer wrap protection in EA list reading can ↵Jeremy Allison2013-08-051-0/+12
| | | | | | | | | | cause server to loop with DOS. Ensure we never wrap whilst adding client provided input. CVE-2013-4124 Signed-off-by: Jeremy Allison <jra@samba.org> (cherry picked from commit efdbcabbe97a594572d71d714d258a5854c5d8ce)
* build:autoconf: fix output of syslog-facility checkBjörn Jacke2013-07-181-1/+4
| | | | | | | | thanks to Thomas Bork for reporting! Signed-off-by: Bjoern Jacke <bj@sernet.de> Fix bug #9983 - configure and syslog facility and disk-quotas support.
* PIDL: fix parsing linemarkers in preprocessor outputAlexander Bokovoy2013-07-042-2/+6
| | | | | | | | | | | | | | | | | | | | | | | When PIDL calls out to C preprocessor to expand IDL files and parse the output, it filters out linemarkers and line control information as described in http://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html and http://gcc.gnu.org/onlinedocs/cpp/Line-Control.html#Line-Control With gcc 4.8 stdc-predef.h is included automatically and linemarker for the file has extended flags that PIDL couldn't parse ('system header that needs to be extern "C" protected for C++') Thanks to Jakub Jelinek <jakub@redhat.com> for explanation of the linemarker format. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=906517 Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 6ba7ab5c14801aecae96373d5a9db7ab82957526) Signed-off-by: Andreas Schneider <asn@samba.org> Fix bug #9636 - pidl can't parse new linemarkers in preprocessor output. (cherry picked from commit 643571470f2e4cd2f58bd60ac7189abb826d33cc)
* libreplace: add a missing "eval" to the AC_VERIFY_C_PROTOTYPE macroMichael Adam2013-07-031-1/+1
| | | | | | | | Without this eval, upon test success the corresponding actions (like defining corresponding variables) are not taken. Found by Timur I. Bakeyev, and based on his patch for 3.5. (cherry picked from commit 0ef506d4f31d206c300e4f3f326edac2b60bdc15)
* docs: mention AD prerequirements for using idmap_adBjörn Jacke2013-06-191-3/+6
| | | | | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit c3057f69a274f0d8e0e66183bd5e8be7703b6750) Reviewed-by: David Disseldorp <ddiss@samba.org> The last 2 patches address bug #9880 - Use of wrong RFC2307 primary group field.
* winbind/idmap_ad: be verbose about the user that we fail to mapBjörn Jacke2013-06-191-2/+3
| | | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit f08205be7003f6c0a15fd5fd99d01951164ad15c) Reviewed-by: David Disseldorp <ddiss@samba.org>
* Ensure we test the dirsort module in make test.Jeremy Allison2013-06-191-0/+2
| | | | | | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Apr 11 21:17:21 CEST 2013 on sn-devel-104 The last 10 patches address bug #9777 - vfs_dirsort uses non-stackable calls, dirfd(), malloc instead of talloc and doesn't cope with directories being modified whilst reading.
* Remove unneeded initializations (we already talloc_zero).Jeremy Allison2013-06-191-5/+0
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Remove the use of dirfd inside the vfs_dirsort.c.Jeremy Allison2013-06-191-9/+23
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Convert mtime from a time_t to a struct timespec.Jeremy Allison2013-06-191-15/+26
| | | | | | | | In preparation for removing the dirfd and using fsp_stat() and VFS_STAT functions. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Check SMB_VFS_NEXT_OPENDIR return in dirsort_opendir().Jeremy Allison2013-06-191-0/+5
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Clean error paths in opendir and fd_opendir by only setting handle data on ↵Jeremy Allison2013-06-191-10/+13
| | | | | | | | | | success. Pass extra struct dirsort_privates * to open_and_sort_dir() function to avoid it having to re-read the handle data. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Protect open_and_sort_dir() from the directory changing size.Jeremy Allison2013-06-191-9/+15
| | | | | | | | Otherwise there could be an error between initial count, allocation and re-read. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Use an index i rather than re-using a state variable.Jeremy Allison2013-06-191-5/+3
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Protect against early error in SMB_VFS_NEXT_READDIR.Jeremy Allison2013-06-191-0/+4
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Change source3/modules/vfs_dirsort.c from MALLOC -> TALLOC.Jeremy Allison2013-06-191-16/+8
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* WHATSNEW: Start release notes for Samba 3.6.17.Karolin Seeger2013-06-191-6/+41
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* VERSION: Bump version number up to 3.6.17.Karolin Seeger2013-06-191-1/+1
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* WHATSNEW: Add another fix since 3.6.15.Karolin Seeger2013-06-191-0/+4
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* s3-autoconf: Add missing libtevent dependency for dbwrap_torture.Michael Adam2013-06-191-2/+2
| | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Karolin Seeger <kseeger@samba.org> The last 3 patches are part of a fix for bug #9881 - Samba doesn't check for system libtevent.
* s3-autoconf: Add missing libtevent dependency to dbwrap_tool.Michael Adam2013-06-191-2/+2
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Karolin Seeger <kseeger@samba.org>
* s3-autoconf: Add missing libtevent dependency.Andreas Schneider2013-06-191-2/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* WHATSNEW: Add changes since 3.6.15.Karolin Seeger2013-06-171-2/+30
| | | | Signed-off-by: Karolin Seeger <kseeger@samba.org>
* Bug 8997: change libreplace GPL source to LGPLDavid Disseldorp2013-06-143-31/+43
| | | | | | | | | | | | | | | | | | | | | | | libreplace currently includes socket.c and getifaddrs.c both of which are GPL licensed. Although not required, talloc and tdb build alongside this source, leading to some ambiguity regarding their LGPL licences. The following copyright holders have agreed to the GPL->LGPL change: lib/replace/getifaddrs.c Copyright (C) Andrew Tridgell 1998 Copyright (C) Jeremy Allison 2007 Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007 lib/replace/test/getifaddrs.c lib/replace/socket.c * Copyright (C) Michael Adam <obnox@samba.org> 2008 Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 8a6743e4edcdff1c7860d150720483f19f3b33bb)
* When message-type is drvupgrade, MSG_DEBUG should be replaced with ↵Peng Haitao2013-06-101-1/+1
| | | | | | | | | MSG_PRINTER_DRVUPGRADE. Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Fix bug #9941 - Fix a bug of drvupgrade of smbcontrol.
* check_parent_exists() can change errno. Ensure we preserve it across calls.Anand Avati2013-06-061-1/+8
| | | | | | | | | | Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue Apr 30 11:00:11 CEST 2013 on sn-devel-104 Fix bug #9927 - errno gets overwritten in call to check_parent_exists().
* BUG 9881: Check for system libtevent.Andreas Schneider2013-06-062-95/+213
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* Fix bug #9822 - Samba crashing during Win8 sync.Jeremy Allison2013-06-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | When refactoring the dptr desctructor in the fix for bug: 9778 (Samba directory code uses dirfd() without vectoring through a VFS call) I removed the code to NULL out the struct smb_Dir * pointer inside the fsp struct by mistake. Re-add the NULLing out of that pointer when closing a directory pointer associated with an open file. Reporter confirms it fixes the crash. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Sat Apr 27 20:44:55 CEST 2013 on sn-devel-104 (cherry picked from commit 251767cde9a146d8122d76e257ab232c05ad452a)
* Remove dependency on detection of HAVE_DIRFD for use of fdopendir().Jeremy Allison2013-06-051-5/+3
| | | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Apr 12 16:21:10 CEST 2013 on sn-devel-104 (cherry picked from commit 7a4dd845958f1411daa8031ca242987001ab2f26)
* Remove the "Ugly hack" that was the second use of dirfd().Jeremy Allison2013-06-051-13/+5
| | | | | | | | The destructor does all the resource deallocation needed. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit 0fe894fb89f4867e266bb04670a58101311e0234)
* In the struct smb_Dir destructor, use the fsp back pointer to release resources.Jeremy Allison2013-06-051-10/+13
| | | | | | | | Removes one use of dirfd(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit ea14c9443178da9ae6ccbe71e573156396f6f699)
* Maintain a back-pointer to the fsp in struct smb_Dir when opening with ↵Jeremy Allison2013-06-051-1/+5
| | | | | | | | FDOPENDIR. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> (cherry picked from commit e89ec641fc98ffd7f7193deb3728b0a284a093eb)
* Fix bug 9900: is_printer_published GUID retrievalDavid Disseldorp2013-06-044-62/+128
| | | | | | | | | | Samba currently always responds to GetPrinter(level = 7) requests with DSPRINT_UNPUBLISH, regardless of the AD publish status tracked via the PRINTER_ATTRIBUTE_PUBLISHED flag. This is due to erroneous "objectGUID" unmarshalling in is_printer_published(). This change splits "objectGUID" retrieval into a separate function, and adds a pull_reg_sz() call to correctly unmarshall the GUID.
* printing: explicitly clear PUBLISHED attributeDavid Disseldorp2013-06-041-1/+1
| | | | | | Currently nt_printer_publish(DSPRINT_UNPUBLISH) flips (via xor) the info2->attributes PRINTER_ATTRIBUTE_PUBLISHED flag, rather than explicitly clearing it.
* printing: use const in is_printer_publishedDavid Disseldorp2013-06-042-3/+6
|
* s3-docs: Remove "experimental" label on "max protocol=SMB2" parameterSATOH Fumiyasu2013-05-161-2/+1
| | | | | | Fix bug #9688 - smb.conf(5) says: "max protocol=SMB2" is experimental. Signed-off-by: Karolin Seeger <kseeger@samba.org>