summaryrefslogtreecommitdiffstats
path: root/source3/nmbd
Commit message (Collapse)AuthorAgeFilesLines
* Reduce debug log level from 0 -> 7 on non-critical message.Jeremy Allison2009-09-241-1/+1
| | | | Jeremy.
* Make gencache more stableVolker Lendecke2009-07-151-0/+2
| | | | | | | | | | This provides a compromise between stability and performance: gencache is a persistent database these days that for performance reasons can not use tdb transactions for all writes. This patch splits up gencache into gencache.tdb and gencache_notrans.tdb. gencache_notrans is used with CLEAR_IF_FIRST, writes to it don't use transactions. By default every 5 minutes and when a program exits, all entries from _notrans.tdb are transferred to gencache.tdb in one transaction.
* Fix bug 4699: Remove pidfile on clean shutdownVolker Lendecke2009-06-181-0/+2
|
* s3:nmbd: fix typoBjörn Jacke2009-05-281-1/+1
|
* s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen2009-05-272-4/+4
| | | | | | | | | | When we run out of file descriptors for some reason, every new connection forks a child that immediately panics causing smbd to coredump. This seems unnecessarily harsh; with this code change we now catch that error and merely log a message about it and exit without the core dump. Signed-off-by: Tim Prouty <tprouty@samba.org>
* Fix Coverity bug #902, uninitialized variable.Jeremy Allison2009-04-232-2/+4
| | | | Jeremy.
* Solve some of the conflict between Samba3 and Samba4 push_stringAndrew Bartlett2009-04-141-5/+5
| | | | | | | | This renames push_string in Samba3 into push_string_base and push_string_check for the two different use cases. This should allow push_string to be imported from Samba4, using it's calling conventions.
* Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs ↵Jeremy Allison2009-03-261-3/+0
| | | | | | | | | to run elections Fix logic bug that causes nmbd to wait 5 minutes before looking for a master browser. This one is *old* :-). Thanks for Simo for bugging me on this. Jeremy.
* s3:nmbd: implement a MAILSLOT => CLDAP proxy for NETLOGON_SAMLOGON requestsStefan Metzmacher2009-03-212-0/+244
| | | | | | | | | | This will be used as part a the franky setup, where nmbd will forward the MAILSLOT requests to the local samba4 CLDAP server. "nmbd_proxy_logon:cldap_server = 127.0.0.1" would configure and activate this feature. metze
* Fix bug #6186 - map readonly does not workJeremy Allison2009-03-121-0/+8
| | | | Jeremy.
* More warning fixes for Solaris.Jeremy Allison2009-02-231-7/+7
| | | | Jeremy.
* Replace get_myname() with the talloc version from v3-3-testVolker Lendecke2009-02-131-1/+1
|
* Have nmbd check all available interfaces for WINS before failingAravind Srinivasan2009-02-042-2/+4
| | | | | | | | | When nmbd is acting as WINS, it picks the first interface's IP as WINS server's IP. If the first interface's IP is zero, we will just quit (even though we might have other interfaces with valid IPs). This patch makes nmbd look at all interfaces and pick the first interface with a valid IP as the WINS server's IP.
* Make cli_tcon_andx asyncVolker Lendecke2009-01-301-1/+1
|
* s3:nmbd: handle SIG_TERM and SIGHUP via teventStefan Metzmacher2009-01-271-48/+67
| | | | metze
* s3:nmbd: as the sig_term() handler only sets a flag we don't need to block ↵Stefan Metzmacher2009-01-273-23/+0
| | | | | | | | | SIGTERM The arguments of commit d98bea900ee694cdba83149620c65bd7f8765f26 are no longer valid. metze
* s3:nmbd: install the SIG_DFL handler for SIGTERM while we're waiting for ↵Stefan Metzmacher2009-01-271-12/+4
| | | | | | | | | interfaces We should handle all 3 cases where we actively wait for interfaces in the same way. metze
* s3:nmbd: we don't need to call message_dispatch() anymore it's event ↵Stefan Metzmacher2009-01-221-4/+0
| | | | | | triggered now metze
* s3: always call run_events() before and after sys_select()Stefan Metzmacher2009-01-221-9/+7
| | | | | | And always setup the fd events. metze
* Memory leaks and other fixes found by Coveritytodd stecher2009-01-212-3/+3
|
* s3:put the browse list into cache_dir, not lock_dir.Michael Adam2009-01-161-8/+1
| | | | Michael
* s3:nmbd: don't leak state_path() to talloc_tos() in wins_write_database()Michael Adam2009-01-161-1/+1
| | | | Michael
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison2009-01-141-4/+1
| | | | | the connections list and authentication structures to worry about. Jeremy
* Covert several persistant tdb files to use state_path() instead of lock_path()Steven Danneman2009-01-121-1/+1
|
* Audit usage of get_dyn_STATEDIR() and replace with state_path()Steven Danneman2009-01-121-2/+2
| | | | | The state directory is now run-time configurable through loadparm, so all references to it should be done through state_path() or lp_statedir().
* s3:events: change event_add_timed() prototype to match samba4Stefan Metzmacher2009-01-051-2/+1
| | | | metze
* clean event context after child is forked.Bo Yang2009-01-052-2/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Make cli_negprot return NTSTATUS instead of boolVolker Lendecke2008-12-191-1/+2
|
* s3: fix a few "shadows a global declaration" warningsTim Prouty2008-11-031-4/+4
|
* Use common net utility code (address and sockaddr manipulation).Jelmer Vernooij2008-10-233-11/+12
|
* Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij2008-10-234-5/+5
| | | | | otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
* Use separate make variables for libutil and libcrypto.Jelmer Vernooij2008-10-182-3/+3
|
* Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij2008-10-141-3/+3
|
* s3-nbt: remove double nbt netlogon opcodes.Günther Deschner2008-09-251-15/+15
| | | | Guenther
* fix build warning.Günther Deschner2008-08-201-1/+1
| | | | | Guenther (This used to be commit a75055be5ff7ebe3476cfac86c6597a56a843c23)
* Fix bug 5697 nmbd spins in reload_interfaces when only loopback has an IPv4 ↵Jeremy Allison2008-08-192-7/+8
| | | | | | | | address reported by Ted Percival <ted@midg3t.net>. Jeremy. (This used to be commit ab06efccf31fbc899536d2681a2076e6dfd65b9e)
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-131-4/+0
| | | | (This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
* nmbd: add support for delayed initial samlogon packages.Michael Adam2008-08-091-6/+86
| | | | | | | | | | | | | | The hosts or networks configured with "init logon delayed hosts" have their initial samlogon packages (empty username) delayed by the value configured with "init logon delay" (defaulting to 100 milliseconds). This gives the administrator some control over what clients would consider the preferred logon server: they choose the server that repsonds most quickly. Michael (This used to be commit d52b9beede1fb14e1d7e3acd9765d6cd14dfcc3d)
* nmbd_packets: make queue_packet() public.Michael Adam2008-08-091-3/+1
| | | | | Michael (This used to be commit 363eb90ce8380ce1bbc74673936ba1e6d7eee23b)
* nmbd: untangle logic in nmbd_messaging_context() slightly.Michael Adam2008-06-261-2/+5
| | | | | Michael (This used to be commit 3baf9eb6a2cc6a4a153303b457d3a7067948495e)
* nmbd: don't panic if messaging_init() fails - return NULL instead.Michael Adam2008-06-261-1/+1
| | | | | Michael (This used to be commit e6a403209c29bd2ec2242d654ad45276de02cb44)
* Fix CLEAR_IF_FIRST handling of messages.tdbVolker Lendecke2008-04-232-2/+2
| | | | | | | | 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 :-) (This used to be commit 4f4781c6d17fe2db34dd5945fec52a7685448aec)
* cldap: avoid duplicate definitions so remove ads_cldap.h.Günther Deschner2008-04-211-2/+2
| | | | | Guenther (This used to be commit 538eefe22ad69540b9f73ffaa613d6be045de199)
* nmbd: create the messaging conntext earlierStefan Metzmacher2008-04-181-3/+12
| | | | | metze (This used to be commit 056ff094ad2c59992cfdb8b29696c08dab4113d7)
* nmbd: call reinit_after_fork() in all needed casesStefan Metzmacher2008-04-182-0/+10
| | | | | metze (This used to be commit f68829ff14c457bfa98cb2ef9e8ec2e1a0b1d64d)
* dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbinddStefan Metzmacher2008-04-121-0/+8
| | | | | metze (This used to be commit 64450cc1e441355aa8925b7183e90872eeab20b1)
* Fix bug #5386, don't keep printing the same waitingJeremy Allison2008-04-111-3/+6
| | | | | | error message. Jeremy. (This used to be commit 12e6818df1c77810a59a2896f8c44c91fc24e7ae)
* Fix the last reported debian problem with nmbd not waitingJeremy Allison2008-04-101-10/+22
| | | | | | until interfaces come up. Jeremy. (This used to be commit 59a2f0873c789822d46f862042921a8ba8f2bd28)
* Fix for termination problems when no interfaces found - bug #5267.Jeremy Allison2008-03-271-6/+15
| | | | | Jeremy. (This used to be commit 4b03f4eb2da7a523967ace3d13e79406ade07d47)