summaryrefslogtreecommitdiffstats
path: root/source/smbd/server.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix for bug #5688 from SATOH Fumiyasu <fumiyas@osstech.co.jp>. LPQ process ↵Jeremy Allison2008-08-141-1/+2
| | | | | | | is orphaned if socket address parameter is invalid. If the "socket address" parameter is a null string that is an invalid value for Samba 3.2 but valid for Samba 3.0. Jeremy.
* smbd: prevent smbd from panicing with "clustering = no" but ↵Michael Adam2008-08-131-1/+3
| | | | | | --with-cluster-support Michael
* added a explanatory comment on tcon checkAndrew Tridgell2008-08-131-0/+4
|
* ensure we exit with non-zero status on EOF on socket, so the parentAndrew Tridgell2008-08-131-3/+8
| | | | can trigger a brlock db cleanup
* fixed child exit handling and IP release handlingAndrew Tridgell2008-08-131-1/+3
|
* log unclean shutdownsAndrew Tridgell2008-08-131-0/+1
|
* register the ctdbd reconfigure messageAndrew Tridgell2008-08-131-0/+4
|
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-131-7/+0
|
* smbd: untangle logic in smbd_messaging_context() slightly.Michael Adam2008-06-261-2/+5
| | | | Michael
* smbd: don't panic if messaging_init() fails but return NULLMichael Adam2008-06-261-1/+1
| | | | | | | | | leaving panic or more appropriate action to callers. This can for instance happen in a clustered setup, when ctdb is not running. This allows for a more defined behaviour, reducing chicken-egg-problems. Michael
* Allow server manager to close open files selected by id.Jeremy Allison2008-05-271-0/+2
| | | | Jeremy.
* Fix CLEAR_IF_FIRST handling of messages.tdbVolker Lendecke2008-04-231-2/+3
| | | | | | | We now open messages.tdb even before we do the become_daemon. become_daemon() involves a fork and an immediate exit of the parent, thus the parent_is_longlived argument must be set to false in this case. The parent is not really long lived :-)
* smbd: create the messaging conntext earlierStefan Metzmacher2008-04-181-11/+16
| | | | metze
* smbd: call reinit_after_fork() in the needed placesStefan Metzmacher2008-04-181-16/+6
| | | | metze
* smbd: merge "smbd:backgroundqueue=no" option from the v3-0-ctdb treeStefan Metzmacher2008-04-181-2/+4
| | | | metze
* registry: rename init_registry() to registry_init_full() for consistency.Michael Adam2008-04-131-1/+1
| | | | Michael
* registry: change init_registry() to return WERROR instead of bool.Michael Adam2008-04-131-1/+1
| | | | Michael
* dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbinddStefan Metzmacher2008-04-121-1/+5
| | | | metze
* Destroy DMAPI session when main smbd daemon exits.Alexander Bokovoy2008-04-081-0/+9
| | | | | | | DMAPI session is precious resource maintained at kernel level. We open one of them and use across multiple smbd daemons but once last of them exits, DMAPI session needs to be destroyed. There are some HSM implementations which fail to shutdown when opened DMAPI sessions left. Ensure we shutdown our session when it is really not needed anymore. This is what recommended by DMAPI specification anyway.
* Port 3c1f1f0797e from 3-0-ctdbroot2008-03-201-3/+57
| | | | | We need to inform ctdb about the client's TCP connection so that after a fail over ctdbd can trigger the client to reconnect very quickly
* [samba-3-0-ctdb.tridge @ tridge@samba.org-20070602053809-kpw5kjkcyjs8yjbl]Andrew Tridgell2008-03-181-1/+1
| | | | | suppress that darn message (cherry picked from commit 542e46a21898f6fcc8a0aeb63925607a60e0b99f)
* Check return code of secrets_init() function.Tim Potter2008-02-181-1/+2
|
* Merge DMAPI fixes from CTDB SambaAlexander Bokovoy2008-01-181-6/+0
|
* Merge CTDB-related fixes from samba-ctdb 3.0 branch ↵Alexander Bokovoy2008-01-161-3/+64
| | | | | (http://samba.org/~tridge/3_0-ctdb) Signed-off-by: Alexander Bokovoy <ab@samba.org>
* Don't print out debug messages at level 0 if we can'tJeremy Allison2008-01-101-4/+10
| | | | | | | | | | | | bind to a socket if we've already bound to one (this prevents : bind failed on port 445 socket_addr = 0.0.0.0. Error = Address already in use bind failed on port 139 socket_addr = 0.0.0.0. Error = Address already in use messages when trying to bind to an IPv4 address when we've already bound to the IPv6 equivalent. Jeremy.
* Add a global cacheVolker Lendecke2007-12-211-0/+6
| | | | | | It hurts, but I think this global variable is necessary for transition, and it has the potential to remove quite a few other global variables without messing with APIs too much.
* Remove last_message completely as it's no longer used.Jeremy Allison2007-12-181-6/+0
| | | | Jeremy.
* Add a in-memory cacheVolker Lendecke2007-12-181-0/+13
| | | | | | | | | | | This is a more general API that caches data with a LRU scheme. See include/cache.h. No comments yet, I'm still working on it. But Jeremy has given me a hint in one of his checkins that he would like to make use of this now. The idea is that we get rid of all our silly little caches and merge them all into one cache that we can then very easily trim, for example even with a smbcontrol message if someone decides memory is tight. The main user is the stat cache, this patch also converts the getwd cache. More caches to come.
* Register the smb service with mDNS if mSDN is supported.Rishi Srivatsavai2007-12-131-9/+41
| | | | | | If mDNS is supported, attempt to register the first port we are listening on for the _smb._tcp service. This provides more reliable service discovery than NetBIOS browsing.
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-3/+3
| | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy.
* Tiny simplificationsVolker Lendecke2007-12-101-1/+1
| | | | | | locking.c:open_read_only was unused don't export the silly boolean flag locking_init(bool read_only)
* Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2007-12-071-9/+17
| | | | | No more temptations to use static length strings. Jeremy.
* Don't build rpctorture anymore - not maintained. Just remove.Jeremy Allison2007-12-071-3/+3
| | | | | | Remove all vestiges of pstring (except for smbctool as noted in previous commit). Jeremy
* More pstring removal. This one was tricky. I had to addJeremy Allison2007-11-151-1/+4
| | | | | | one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy.
* Three more pstring removals.Jeremy Allison2007-11-111-2/+1
| | | | Jeremy.
* Remove more static fstring/pstrings. Fix socket optionJeremy Allison2007-11-091-4/+2
| | | | | set on wrong fd (-1). Jeremy.
* Remove the silly "user_socket_options" global variableVolker Lendecke2007-11-091-6/+8
| | | | This is better done with a 'lp_do_parameter(-1, "socket options", ..);
* Remove most of the remaining globals out of lib/util_sock.c.Jeremy Allison2007-11-031-1/+4
| | | | | | I have a plan for dealing with the remaining..... Watch this space. Jeremy.
* I can't get away without a 'length' arg. :-).Jeremy Allison2007-11-031-2/+4
| | | | Jeremy.
* Stop get_peer_addr() and client_addr() from using globalJeremy Allison2007-11-031-1/+3
| | | | | statics. Part of my library cleanups. Jeremy.
* Fix vfstest link - move socket calls into smbd/process.cJeremy Allison2007-10-311-288/+0
| | | | | not smbd/server.c Jeremy
* Make explicit draining the socket on RECVFILE. AddJeremy Allison2007-10-311-1/+1
| | | | | | | | capability for large UNIX write if not signing and recvfile set. Cope with large UNIX write length on incoming processing. Stevef - we can now test 1-16Mb writes from CIFFS. Jeremy.
* Add new parameter, "min receivefile size" (by default setJeremy Allison2007-10-301-4/+295
| | | | | | | | | to zero). If non-zero, writeX calls greater than this value will be left in the socket buffer for later handling with recvfile (or userspace equivalent). Definition of recvfile for your system is left as an exercise for the reader (I'm working on getting splice working :-). Jeremy.
* start smbd, nmbd and winbindd with the same startup messageStefan Metzmacher2007-10-301-2/+2
| | | | | | at debug level 0. metze
* Two patchesVolker Lendecke2007-10-271-1/+1
| | | | | | | | | | | | | | | Hi! Can you check and push them? Thanks, Volker From b488af5905e2dee12a1a72a3b40801ae5c26f24f Mon Sep 17 00:00:00 2001 From: Volker Lendecke <vl@sernet.de> Date: Sat, 27 Oct 2007 14:20:09 +0200 Subject: [PATCH] Fix some warnings and errors
* Ensure we don't terminate if we fail to bind to a socket,Jeremy Allison2007-10-251-1/+6
| | | | | only fail if we can't bind to any socket. Jeremy.
* Don't terminate on an invalid address family.Jeremy Allison2007-10-241-1/+1
| | | | Jeremy.
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-241-71/+98
| | | | | | | | | | | | | to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy.
* Fix the popt / bool issues. Some places we used BOOLJeremy Allison2007-10-191-11/+32
| | | | | | where we meant int. Fix this. Thanks to metze for pointing this out. Jeremy.
* fix startup of smbd, nmbd, winbinddStefan Metzmacher2007-10-191-5/+5
| | | | | | | | | | | | | | jra: POPT_ARG_VAL arguments need int values. I assume there're more places like this in the cmdline tools. Please fix this properly, as my commit is just a hack to get make test working again. in samba4 we have a workaround for this see smbd/server.c metze