summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* tdb: raise version to 1.2.1tdb-1.2.1Simo Sorce2010-02-061-1/+1
| | | | | after recent fixes we need to raise the version to 1.2.1 so that we can require also the right patched version.
* Fix trailing whitespace errors I added (sorry).Jeremy Allison2010-02-052-5/+5
| | | | Jeremy.
* s3-events: make the old timed events compatible with teventAndrew Tridgell2010-02-051-2/+19
| | | | | | | | | | | | tevent ensures that a timed event is only called once. The old events code relied on the called handler removing the event itself. If the handler removed the event after calling a function which invoked the event loop then the timed event could loop forever. This change makes the two timed event systems more compatible, by allowing the handler to free the te if it wants to, but ensuring it is off the linked list of events before the handler is called, and ensuring it is freed even if the handler doesn't free it.
* s3-smbd: add a rate limited cleanup of brl, connections and locking dbAndrew Tridgell2010-02-051-6/+42
| | | | | | | | | | | On unclean shutdown we can end up with stale entries in the brlock, connections and locking db. Previously we would do the cleanup on every unclean exit, but that can cause smbd to be completely unavailable for several minutes when a large number of child smbd processes exit. This adds a rate limited cleanup of the databases, with the default that cleanup happens at most every 20s
* s3-brlock: we don't need these MSG_SMB_UNLOCK calls nowAndrew Tridgell2010-02-052-10/+0
| | | | These have been replaced with the min timeout in blocking.c
* s3-brlock: add a minimim retry time for pending blocking locksAndrew Tridgell2010-02-051-0/+20
| | | | | | | | | | | | | | | | | When we are waiting on a pending byte range lock, another smbd might exit uncleanly, and therefore not notify us of the removal of the lock, and thus not trigger the lock to be retried. We coped with this up to now by adding a message_send_all() in the SIGCHLD and cluster reconfigure handlers to send a MSG_SMB_UNLOCK to all smbd processes. That would generate O(N^2) work when a large number of clients disconnected at once (such as on a network outage), which could leave the whole system unusable for a very long time (many minutes, or even longer). By adding a minimum re-check time for pending byte range locks we avoid this problem by ensuring that pending locks are retried at a more regular interval.
* Remove now unused variable.Jeremy Allison2010-02-051-1/+0
| | | | Jeremy.
* Fix bug 7104 - "wide links" and "unix extensions" are incompatible.Jeremy Allison2010-02-054-38/+10
| | | | | | | | | | | | | | | Change parameter "wide links" to default to "no". Ensure "wide links = no" if "unix extensions = yes" on a share. Fix man pages to refect this. Remove "within share" checks for a UNIX symlink set - even if widelinks = no. The server will not follow that link anyway. Correct DEBUG message in check_reduced_name() to add missing "\n" so it's really clear when a path is being denied as it's outside the enclosing share path. Jeremy.
* s3: Make use of ZERO_STRUCTPVolker Lendecke2010-02-051-1/+2
|
* s3: Remove a pointless if-statementVolker Lendecke2010-02-051-1/+1
|
* s3: Make guest_user_info() staticVolker Lendecke2010-02-052-2/+1
|
* s3: Hide some uses of pdb_get_init_flags (which I would love to remove...)Volker Lendecke2010-02-052-2/+2
|
* s3: Fix some nonempty blank linesVolker Lendecke2010-02-052-35/+34
|
* s3: normalize "Changing password for" msg IDs and STRsLars Müller2010-02-0518-30/+30
| | | | | An additional space at the end of the "Changing password for" msgid lead to untranslated pam_winnind messages.
* Fix bug 7075 - bug in vfs_scannedonly rmdir implementation.Jeremy Allison2010-02-041-1/+5
| | | | | | Check for NULL on opendir, correctly call next rmdir. Jeremy.
* s3:passdb: fix a type Domain Users has RID -513Stefan Metzmacher2010-02-041-1/+1
| | | | metze
* s3:libsmb: don't reuse the callers stype variable in cli_NetServerEnum()Stefan Metzmacher2010-02-041-2/+3
| | | | | | | When we need to do more than one network operation to get the browse list we need to use the same 'stype' value each time. metze
* s3:nsswitch: also use pthread CFLAGS for the nsswitch modules that might ↵Björn Jacke2010-02-041-1/+1
| | | | require it
* s3: fix build on Tru64 after it broke with deactivating pthread pool supportBjörn Jacke2010-02-041-3/+6
|
* s3:vfs_scannedonly: fix build on HP-UXBjörn Jacke2010-02-041-0/+6
|
* s3: Simplify the code a bit: Catch (len==0) earlyVolker Lendecke2010-02-031-7/+4
|
* Fix bug 7081 - vfs_expand_msdfs doesn't work correctly (with fix identified)Jeremy Allison2010-02-021-3/+16
| | | | | | Fix inspired by idea from Eric Horst <erich@cac.washington.edu>. Jeremy.
* Fix bug 7063 - Samba 3.4.5 on ubuntu 8.04 64 bit - Core dumps.Jeremy Allison2010-02-021-2/+9
| | | | | | | | Reported and found by Martin Hochreiter <linuxbox@wavenet.at>. Ensure we copy the right amount of registry data into the outgoing buffer. Jeremy.
* s3:configure: check complete set of EA functions only when we found at least oneBjörn Jacke2010-02-021-28/+18
| | | | this saves us some time in configure
* Change uint_t to unsigned int in source3Matt Kraai2010-02-022-8/+8
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Add debug to make it clear when EA dosmode set is invoked.Jeremy Allison2010-02-011-0/+5
| | | | Jeremy.
* Fix bug #7084 - Create time on directories not stored properly in an EA in ↵Jeremy Allison2010-02-011-7/+0
| | | | | | | | | | new create time code. Remove erroneous optimisation that caused no EA to be set if calculated btime matched st_ex btime, and calculated DOS attribute matched existing file attribute. Jeremy.
* Torture test for bug 7084 - Create time on directories not stored properly ↵Jeremy Allison2010-02-012-1/+88
| | | | | | | | in an EA in new create time code. Ensure new files in a directory don't reset the create time. Jeremy.
* Arg. Got the sense of the test reversed to fix bug #7080 - Quota only shown ↵Jeremy Allison2010-02-011-1/+1
| | | | | | when logged as root.. Doh ! Jeremy.
* Fix bug #7080 - Quota only shown when logged as root.Jeremy Allison2010-02-011-1/+1
| | | | | | | | | | | conn->server_info->utok.uid == 0 isn't the correct check to see if we're root anymore. As rpc_samr_nt.c does, the correct check is : geteuid() == sec_initial_uid() Jeremy.
* s3: Fix some DEBUG messagesVolker Lendecke2010-01-311-3/+3
|
* Fix bug #7079 - cliconnect gets realm wrong with trusted domains.Jeremy Allison2010-01-304-3/+91
| | | | | | | | | | | Passing NULL as dest_realm for cli_session_setup_spnego() was always using our own realm (as for a NetBIOS name). Change this to look for the mapped realm using krb5_get_host_realm() if the destination machine name is a DNS name (contains a '.'). Could get fancier with DNS name detection (length, etc.) but this will do for now. Jeremy.
* s3/smbd: Fix string buffer overflow causing heap corruptionSteven Danneman2010-01-301-1/+2
| | | | | | | | | | | | | The destname malloc size was not taking into account the 1 extra byte needed if a string without a leading '/' was passed in and that slash was added. This would cause the '\0' byte to be written past the end of the malloced destname string and corrupt whatever heap memory was there. This problem would be hit if a share name was given in smb.conf without a leading '/' and if it was the exact size of the allocated STRDUP memory which in some implementations of malloc is a power of 2.
* Fix a really interesting problem found by Volker's conversion of ↵Jeremy Allison2010-01-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | sessionsetup SPNEGO to asynchronous code. Normally clistr_push_fn() can depend upon cli->outbuf being initialized by negprot and sessionsetup packets, and cli->outbuf[smb_flgs2] being correctly set with FLAGS2_UNICODE_STRINGS when cli_setup_packet() is called. When all the sessionsetups are async, then cli_setup_packet() is never called, the async code uses cli_setup_packet_buf() - which initializes the allocated async buffer, not the cli->outbuf one. So the first time clistr_push_fn() is called is from libsmb/clidfs.c:cli_dfs_get_referral(), just after the connection and tconX. In this case cli->outbuf has never been initialized, and cli->outbuf[smb_flgs2] = 0 so the DFS query pushes ASCII on the wire, which is not what we want :-). Remove the dependency on cli->outbuf[smb_flgs2] in clistr_push_fn(), and fake up a SVAL(cli->outbuf, smb_flg2) value using cli_ucs2(cli) function instead, which has been initialized. We only care about the FLAGS2_UNICODE_STRINGS bit anyway. I don't think this is an issue for 3.5.0 as the sessionsetup is still synchronous there, but Volker PLEASE CHECK ! Jeremy.
* s3: link thread objects in libsmbclient only and adjust linker flagsBjörn Jacke2010-01-291-8/+10
|
* AIX doesn't have MSG_DONTWAITolivier2010-01-291-1/+1
|
* s3: by default don't use pthread pool supportBjörn Jacke2010-01-291-5/+5
|
* Fix bug #7069 - smbget does not return an error status after some errorsJeremy Allison2010-01-281-38/+45
| | | | | | | A combination patch from Johannes Poehlmann <johannes@lst.de> and Jeremy. Fix the return codes from smb_download_file() and smb_download_dir(). Jeremy.
* s3/winbind_ccache: Fix typo in debug message.Karolin Seeger2010-01-281-1/+1
| | | | Karolin
* Second part of fix for bug #7072 - Accounts can't be unlocked from ldap.Jeremy Allison2010-01-271-1/+2
| | | | | | Missed read of entry_timestamp (was entry->entry_timestamp). Jeremy.
* Fix bug #7072 - Accounts can't be unlocked from ldap.Jeremy Allison2010-01-271-7/+15
| | | | | | | | | | | | Fix suggested by Andy Hanton <andyhanton@gmail.com>. The LOGIN_CACHE struct contains two time_t entries, but was being written to and read from via tdb_pack/tdb_unpack functions using explicit 32-bit int specifiers. This would break on machines with a 64-bit time_t. Use correct int sizes for tdb_pack/tdb_unpack. We have to fix this properly before 2037 :-). Jeremy.
* s3: syntax fixBjörn Jacke2010-01-271-1/+1
|
* s3: Install and uninstall the static version of libwbclientLars Müller2010-01-271-0/+2
| | | | | This requires to call configure with --enable-static which isn't the case by default.
* s3: get pthread detection also on HP-UX rightBjörn Jacke2010-01-271-1/+12
|
* s3-selftest: try to get RPC-SPOOLSS-NOTIFY running during make test on the ↵Günther Deschner2010-01-271-1/+3
| | | | | | buildfarm. Guenther
* Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail to ↵Jeremy Allison2010-01-263-5/+71
| | | | | | | | | respond to a read or write. Only works on Linux kernels 2.6.26 and above. Grants CAP_KILL capability to allow Linux threads under different euids to send signals to each other. Jeremy.
* Add dependency of bin/smbfilter to libwbclient.Lars Müller2010-01-261-1/+1
|
* s3: Enable use of ccache by default for libsmbclientVolker Lendecke2010-01-261-0/+3
| | | | | | Disable this by setting the environment variable LIBSMBCLIENT_NO_CCACHE, which has the advantage over an smb.conf option to be easily settable per application.
* Correct fix for unused variable return from ndr_decode. Use it :-).Jeremy Allison2010-01-251-0/+8
| | | | Jeremy.
* Revert "s3: remove unused Variable"Jeremy Allison2010-01-251-0/+4
| | | | | | | | | This reverts commit 9536d94d5478b63fc05047964b40d8786a7246c4. Bjorn, your change removed the ndr_decoding of the dos attribute. Not a good idea :-). Jeremy.