summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-spoolss: use driver level info8 everywhere in spoolss server internally.Günther Deschner2009-12-085-211/+318
| | | | Guenther
* s3: allocate only "new" space, not "old" sparse space in the posix_fallocate ↵Björn Jacke2009-12-081-2/+3
| | | | | | path this makes the posix_fallocate path work analogous to the manual allocate path.
* parent_sd can never be null in this function, so don'tJeremy Allison2009-12-071-1/+5
| | | | | | check for it. Jeremy.
* Hopefullt final fix for 6802 - acl_xattr.c module: A created folder does not ↵Jeremy Allison2009-12-073-267/+168
| | | | | | | | | | properly inherit permissions from parent and 6938 - No hook exists to check creation rights when using acl_xattr module Volker was right (dammit :-). It's much easier to catch this case in the create_file() vfs call instead of trying to do everything inside open() and mkdir(). Hook all these functions to gain the desired effect. Jeremy.
* s3: let gencache_init() use tdb_check()Stefan Metzmacher2009-12-071-0/+25
| | | | | | | If the check fails we try to clear the tdb and start with an empty cache. metze
* s3: let netsamlogon_cache_init() use tdb_check()Stefan Metzmacher2009-12-071-4/+42
| | | | | | | If the check fails we try to unlink the old file and start with an empty cache. metze
* s3: let tdb_validate_child() use tdb_check()Stefan Metzmacher2009-12-071-0/+11
| | | | metze
* s3: require tdb 1.1.7 with tdb_check()Stefan Metzmacher2009-12-071-1/+1
| | | | metze
* s3: de-deprecate "write cache size" to prevent its removal without a proper ↵Volker Lendecke2009-12-071-1/+1
| | | | alternative
* s3: fix net and rpcclient after setprinterdataex changes.Günther Deschner2009-12-072-19/+17
| | | | Guenther
* s3-spoolss: let _spoolss_DeletePrinterData call into ↵Günther Deschner2009-12-071-38/+5
| | | | | | _spoolss_DeletePrinterDataEx. Guenther
* s3-spoolss: let _spoolss_SetPrinterData call into _spoolss_SetPrinterDataEx.Günther Deschner2009-12-071-74/+30
| | | | Guenther
* s3-spoolss: let _spoolss_GetPrinterData call into _spoolss_GetPrinterDataEx.Günther Deschner2009-12-071-101/+44
| | | | Guenther
* s3-spoolss: a default printer should have at least a "PrintDriverData" key.Günther Deschner2009-12-071-0/+7
| | | | Guenther
* s3-winreg: fill in some inline comments.Günther Deschner2009-12-071-10/+38
| | | | Guenther
* s3-winreg: remove trailing whitespace.Günther Deschner2009-12-071-40/+40
| | | | Guenther
* s3:auth: Fix typo in debug message.Karolin Seeger2009-12-071-2/+2
| | | | Karolin
* streamline some log levels for invalid servicenamesChristian Ambach2009-12-062-2/+2
| | | | | | | | | | | | I don't think we need to log the fact that a user gave a wrong sharename in Explorer with the highest log level. The level of this was not very consistent: service.c: DEBUG(3,("find_service() failed to find service %s\n", service)); service.c: DEBUG(0,("%s (%s) couldn't find service %s\n", smb2_tcon.c: DEBUG(1,("smbd_smb2_tree_connect: couldn't find service %s\n", This changes the last two to 3 as the first one. Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
* s3: Fix a const discard warningVolker Lendecke2009-12-061-7/+9
|
* s3: talloc_array_length deals file with a NULL argumentVolker Lendecke2009-12-061-3/+3
|
* s3: Small simplification: qsort deals fine with just one entryVolker Lendecke2009-12-061-7/+2
|
* s3: Simplify usr_info_cmp by calling timeval_compare()Volker Lendecke2009-12-061-3/+1
|
* s3: Add rpcclient wkssvc_enumerateusersVolker Lendecke2009-12-061-0/+51
|
* s3: Complete support for NetWkstaGetInfo/NetWkstaEnumUsersIan Puleston2009-12-061-22/+380
|
* s3: First cut at _wkssvc_NetWkstaEnumUsersVolker Lendecke2009-12-061-3/+52
| | | | This needs access checks!
* s3: Support NetWkstaGetInfo 101 and 102Volker Lendecke2009-12-062-16/+114
|
* s3:dbwrap_ctdb: increase the number of commit retries 5-->100Michael Adam2009-12-051-1/+1
| | | | | | | | This is to cope with timeouts when recoveries and transactions collide. Maybe 100 is too hight, but 10 or even 20 have been too low in a very busy environment. Michael
* s3:dbwrap_ctdb: increase the rsn of the __transaction_lock__ when storingMichael Adam2009-12-051-0/+2
| | | | | | | so that it is correctly handled by recoveries. Also set the dmaster explicitly. Michael
* s3: Fix explicit stat64 supportVolker Lendecke2009-12-051-3/+12
|
* s3: check if glibc has broken posix_fallocateBjörn Jacke2009-12-042-1/+17
|
* Make Samba3 pass the RAW-LOCK test as Windows.Jeremy Allison2009-12-042-0/+29
| | | | | | | Implement the win7 NT_STATUS_INVALID_LOCK_RANGE. Make smbd behave as Windows does in canceling locks. Jeremy.
* s3: bug #6967: Prevent glibc error on net ads join:Jim McDonough2009-12-041-1/+1
| | | | | | talloc()ed memory should not be SAFE_FREE()ed. Signed-off-by: Jim McDonough <jmcd@samba.org>
* s3 aclocal.m4: Fix iconv checks, clean up m4 codeKai Blin2009-12-041-27/+30
| | | | | | | | | | | | | The check for iconv requiring giconv.h and libgiconv as well as the check for iconv requiring biconv.h and libbiconv were using the wrong variable to check for previous successful test results. This caused the checks to always fall back to libbiconv on systems where that library was available. In the course of fixing this, I had to clean up the indentation in that piece of code, and I also rewrote/added some comments. Many thanks to Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> for the initial patch and diagnosis.
* Make sure we're not using the old smb_fname data.Jeremy Allison2009-12-031-1/+1
| | | | Jeremy.
* Remove smb_fname duplicates that just keep the same information as in ↵Jeremy Allison2009-12-033-24/+11
| | | | | | | | fsp->fsp_name. Moving towards making VFS_OPEN/VFS_MKDIR/VFS_RMDIR handle based... Jeremy.
* s3-spoolss: handle SEC_FLAG_MAXIMUM_ALLOWED in spoolss_OpenPrinterEx.Günther Deschner2009-12-031-0/+4
| | | | | | | In case someone (smbtorture4) requests SEC_FLAG_MAXIMUM_ALLOWED, translate it to a request of PRINTER_ACCESS_ADMINISTER. Guenther
* Refactor reply_rmdir to use handle based code. AllJeremy Allison2009-12-033-265/+298
| | | | | | calls are now handle based. Put rmdir into close.c and make it private. Jeremy.
* s3: Fix crash in winbindd;(bug#6879).Bo Yang2009-12-031-2/+8
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* Remove unneeded argument from can_set_delete_on_close(). EnsureJeremy Allison2009-12-026-38/+23
| | | | | | can_set_delete_on_close() is correctly called before any setting of the disposition bit (clean up the do_unlink() call). Jeremy.
* ѕ3: remove superfluous option checkBjörn Jacke2009-12-031-13/+10
| | | | this function is only called when strict alloc is set, no reason to check that twice.
* s3-selftest: run LOCAL-NDR when running make selftest.Günther Deschner2009-12-031-1/+1
| | | | Guenther
* s3:build: remove redundant qnx block size definitionBjörn Jacke2009-12-031-3/+0
|
* Restructure the ACL code some more, get the internal semanticsJeremy Allison2009-12-023-169/+151
| | | | | | | | | | | | | | | | | right. The previous bugs were due to the fact that get_nt_acl_internal() could return an NTSTATUS error if there was no stored ACL blob, but otherwise would return the underlying ACL from the filysystem. Fix this so it always returns a valid acl if it can, and if it does not its an error to be reported back to the client. This then changes the inherit acl code. Previously we were trying to match Windows by setting a minimal ACL on a new file that didn't inherit anything from a parent directory. This is silly - the returned ACL wouldn't match the underlying UNIX permissions. The current code will correctly inherit from a parent if a parent has any inheritable ACE entries that apply to the new object, but will return a mapping from the underlying UNIX permissions if the parent has no inheritable entries. This makes much more sense for new files/directories. Jeremy.
* s3:build: fix shared library build on QNXBjörn Jacke2009-12-031-3/+4
| | | | Fixes #6860. Thanks to Matt Kraai!
* Ensure check_parent_acl_common() only looks at storedJeremy Allison2009-12-021-2/+16
| | | | | blobs - returns NT_STATUS_OK if there aren't any. Jeremy.
* s3: prefer posix_fallocate for doing "strict allocate"Björn Jacke2009-12-024-5/+37
| | | | | | | | | | | | | | | | posix_fallocate is more efficient than manual zero'ing the file. When preallocation in kernel space is supported it's extremely fast. Support for preallocation at fs layer via posix_fallocate and fallocate at kernel site can be found in Linux kernel 2.6.23/glibc 2.10 with ext4, XFS and OCFS2. Other systems that I know of which support fast preallocation in kernel space are AIX 6.1 with JFS2 and recent Solaris versions with ZFS maybe UFS2, too. People who have a system with preallocation in kernel space might want to set "strict allocate = yes". This reduces file fragentation and it's also safer for setups with quota being turned on. As of today most systems still don't have preallocation in kernel space, and that's why "strict allocate = no" will stay the default for now.
* Ensure get_nt_acl_internal() only looks at the ACL blobs, notJeremy Allison2009-12-022-19/+23
| | | | | | | reads off the underlying filesystem. Ensure that vfs_acl_tdb.c returns NT_STATUS_NOT_FOUND, not NT_STATUS_OBJECT_NAME_NOT_FOUND when it can't find a blob matching the file. Jeremy.
* Fix bug #6837 - "Too many open files" when trying to access large number of ↵Jeremy Allison2009-12-023-3/+35
| | | | | | | | files from Windows 7. Original patch by me fixed up with the correct open files number by jmaggard10@hotmail.com. Jeremy.
* samba-spoolss: use spoolss_StringArray2 in spoolss_EnumPrinterKey.Günther Deschner2009-12-022-21/+5
| | | | | | | This should finally resolve the endian issues we were seeing on sparc and is much cleaner for spoolss clients and servers. Guenther
* s3-spoolss: move MAXDEVICENAME to spoolss idl.Günther Deschner2009-12-021-2/+0
| | | | Guenther