summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for TCP_DEFER_ACCEPTVolker Lendecke2011-12-161-0/+3
| | | | | | | | | | | | | "man tcp" on Linux says: TCP_DEFER_ACCEPT Allows a listener to be awakened only when data arrives on the socket. Takes an integer value (seconds), this can bound the maximum number of attempts TCP will make to complete the connection. This option should not be used in code intended to be portable. This might reduce the 139/445 forks a bit on high-load servers
* s3: Slightly simplify delay_for_exclusive_oplocksVolker Lendecke2011-12-161-9/+15
|
* s3: Slightly simplify delay_for_batch_oplocksVolker Lendecke2011-12-161-6/+6
|
* Third part of fix for bug #8663 - deleting a symlink fails if the symlink ↵Jeremy Allison2011-12-161-0/+8
| | | | | | | | | target is outside of the share. smbd_check_access_rights() - we can always delete a symlink. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Dec 16 03:32:15 CET 2011 on sn-devel-104
* Second part of fix for bug #8663 - deleting a symlink fails if the symlink ↵Jeremy Allison2011-12-151-1/+6
| | | | | | | target is outside of the share. Ensure we use UCF_UNIX_NAME_LOOKUP flags on filename_convert() when doing a UNIX infolevel in trans2setfilepathinfo().
* First part of fix for bug #8663 - deleting a symlink fails if the symlink ↵Jeremy Allison2011-12-151-12/+0
| | | | | | | target is outside of the share. Remove two unneeded check_name() calls. They have already been done in order to get here.
* lib/param: Set s4 "host msdfs = true" by defaultAndrew Bartlett2011-12-161-0/+2
| | | | | | | | | | | This matches the s3 loadparm, and makes this feature available by default for our users in a DC environment. (This is needed for the correct operation of GPOs). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Dec 16 01:08:34 CET 2011 on sn-devel-104
* loadparm: fixed service list handlingAndrew Tridgell2011-12-151-14/+4
| | | | | | | | | | | when you have: server services = +smb -s3fs and 'smb' is already in the list, then this should not be an error. This ensures that a config that specifically sets the services it wants doesn't generate an error if the service list being set happens to be the default
* pidfile: use set_close_on_exec()Andrew Tridgell2011-12-151-0/+2
| | | | this prevents a fd leak to child processes
* s4-socket: use set_close_on_exec()Andrew Tridgell2011-12-152-0/+8
| | | | this prevents a fd leak to child processes
* genrand: use set_close_on_exec()Andrew Tridgell2011-12-151-0/+9
| | | | this prevents a fd leak to child processes
* lib/util: added set_close_on_exec()Andrew Tridgell2011-12-152-0/+23
| | | | | this was already in tevent_util.c, but library layering prevented us from using it in some other libraries
* dynconfig: added SBINDIR and BINDIR as updated dynconfig variablesAndrew Tridgell2011-12-151-0/+2
| | | | | this allows these to work correctly in a build environment, pointing at bin/
* s3: Fix a typoVolker Lendecke2011-12-151-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Dec 15 23:35:28 CET 2011 on sn-devel-104
* s3:vfs fix up vfs_gpfs after function pointer renamesChristian Ambach2011-12-151-25/+25
| | | | | | | In 422494a8e630e2ca89386344eaa5346388698a32, vfs_gpfs.c was forgotten Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Thu Dec 15 21:08:02 CET 2011 on sn-devel-104
* s3-libsmb: Don't duplicate kerberos service tickets.Andreas Schneider2011-12-151-5/+0
| | | | | | | | | | | This fixes bug #8628. Each time we do a client connection. Each time we call to function to get the service ticket from the cache we duplicate it. So with each connection we end up with one or three duplicated tickets. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Dec 15 19:30:42 CET 2011 on sn-devel-104
* s3-dbwrap: All relevant backends provide parse_record(). Remove the fallback.Volker Lendecke2011-12-151-37/+0
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Dec 15 17:41:53 CET 2011 on sn-devel-104
* s3-dbwrap: Remove the "fetch" db_context callbackVolker Lendecke2011-12-155-113/+0
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Rewrite dbwrap_fetch in terms of dbwrap_parse_recordVolker Lendecke2011-12-151-3/+30
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Rewrite dbwrap_fallback_parse_record based on dbwrap_fetch_lockedVolker Lendecke2011-12-151-4/+13
| | | | | | This is in preparation to remove the db_context->fetch function pointer Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: For nostalgic reasons, make dbwrap_file.c compile at leastVolker Lendecke2011-12-151-9/+14
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Fix some blank line endingsVolker Lendecke2011-12-151-5/+5
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Implement db_ctdb_parse_record in terms of db_ctdb_fetchVolker Lendecke2011-12-151-0/+19
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Make dbwrap_parse_record return NTSTATUSVolker Lendecke2011-12-156-41/+68
| | | | | | | Also, the parser now returns void. The parser is called if and only if dbwrap_parse_record returns NT_STATUS_OK. Signed-off-by: Michael Adam <obnox@samba.org>
* s3:smbd/globals: remove unused msg_ctx_to_sconn()Stefan Metzmacher2011-12-152-15/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Dec 15 14:24:59 CET 2011 on sn-devel-104
* s3:smbd: pass smbd_server_connection and a snumused function pointer to ↵Stefan Metzmacher2011-12-1510-30/+39
| | | | | | reload_services() metze
* s3:printing/spoolssd: pass event and messaging context to check_updater_child()Stefan Metzmacher2011-12-151-5/+4
| | | | metze
* s3:rpc_server/spoolss: remove reload_services check from delete_printer_hook()Stefan Metzmacher2011-12-151-8/+0
| | | | | | | | | | | | | As the spoolss code can run embedded or external relative to the smbd file server process, it's very tricky to verify if a share is still in use. Checking the result of the "deleteprinter command" command should be enough to check for success. We should not return WERR_ACCESS_DENIED if the share is still in use, by the current client, as the primary printer definition is already deleted. metze
* s3:smbd: split smb_conf_updated into parent and child versionsStefan Metzmacher2011-12-152-12/+30
| | | | metze
* s3:smbd: split ID_CACHE_* message handling into parent and child partsStefan Metzmacher2011-12-156-181/+161
| | | | metze
* lib/ccan: Fix some typos in libccan.m4Martin Schwenke2011-12-151-2/+2
| | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Dec 15 07:40:33 CET 2011 on sn-devel-104
* lib/ccan: fix m4 tests for builtin_expect and compound literals.Rusty Russell2011-12-151-9/+10
| | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-includes: remove PRIMARY_* SID_INDEX defines defined elsewhere already.Günther Deschner2011-12-141-13/+0
| | | | | | | | | They really do not belong to smb.h. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Dec 14 21:15:39 CET 2011 on sn-devel-104
* s3: Fix raw.mux after UNUSED_SHARE_MODE_ENTRY was removedVolker Lendecke2011-12-141-5/+55
| | | | | | | See the large comment in notify_deferred_opens for an explanation Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Dec 14 19:08:30 CET 2011 on sn-devel-104
* s3: Slightly simplify the logic in defer_openVolker Lendecke2011-12-141-5/+3
| | | | | Doing 3 &&ed conditions in a single if-statement is easier to understand to me than continuing out separately.
* s3: Remove UNUSED_SHARE_MODE_ENTRYVolker Lendecke2011-12-144-49/+22
|
* s3: Remove a call to procid_self()Volker Lendecke2011-12-141-1/+1
|
* s3: Remove nmbd_messaging_context()Volker Lendecke2011-12-141-31/+18
|
* s3: Fix some pointless staticsVolker Lendecke2011-12-141-5/+5
|
* s3: Remove a call to procid_self()Volker Lendecke2011-12-141-6/+8
| | | | Pass messaging_context through the SIGHUP handler
* s3: Remove a call to procid_self()Volker Lendecke2011-12-141-7/+10
| | | | Pass messaging_context through the SIGTERM handler
* s3: Pass messaging_context to nmbd/process()Volker Lendecke2011-12-141-4/+3
|
* s3: Make nmbd_messaging_context staticVolker Lendecke2011-12-142-2/+1
|
* s3: Centralize nmbd_messaging_context in nmbd.cVolker Lendecke2011-12-144-13/+12
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-12-141-4/+4
|
* s4-smbtorture: make sure we can successfully run the schannel test against ↵Günther Deschner2011-12-141-16/+30
| | | | | | | | | | | | windows. lsa lookupsids3/lookupnames4 is only available over schannel sealed ncacn_ip_tcp. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Dec 14 17:28:29 CET 2011 on sn-devel-104
* s4-torture: LookupSids3 is only available over NCACN_IP_TCP.Andreas Schneider2011-12-141-1/+2
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Dec 14 15:39:58 CET 2011 on sn-devel-104
* s4-torture: Fix schannel test against win2k8.Andreas Schneider2011-12-141-4/+4
|
* s4-librpc: Fix NETLOGON credential chain with Windows 2008.Andreas Schneider2011-12-143-11/+45
| | | | | | | | | | Windows Server 2008 returns NT_STATUS_DOWNGRADE_DETECTED if you call netrServerAuthenticate2 during a domain join without setting the strong keys flag (128bit crypto). Only for NT4 we need to do a downgrade to the returned negotiate flags. See also 0970369ca0cb9ae465cff40e5c75739824daf1d0.
* s3:smb2_lock: use talloc_get_type_abort() as private_data can't be NULLStefan Metzmacher2011-12-141-5/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 14 13:34:25 CET 2011 on sn-devel-104