summaryrefslogtreecommitdiff
path: root/source3/nmbd
AgeCommit message (Collapse)AuthorFilesLines
2009-05-28s3:nmbd: fix typoBjörn Jacke1-1/+1
2009-05-27s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen2-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>
2009-04-23Fix Coverity bug #902, uninitialized variable.Jeremy Allison2-2/+4
Jeremy.
2009-04-14Solve some of the conflict between Samba3 and Samba4 push_stringAndrew Bartlett1-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.
2009-03-26Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs ↵Jeremy Allison1-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.
2009-03-21s3:nmbd: implement a MAILSLOT => CLDAP proxy for NETLOGON_SAMLOGON requestsStefan Metzmacher2-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
2009-03-12Fix bug #6186 - map readonly does not workJeremy Allison1-0/+8
Jeremy.
2009-02-23More warning fixes for Solaris.Jeremy Allison1-7/+7
Jeremy.
2009-02-13Replace get_myname() with the talloc version from v3-3-testVolker Lendecke1-1/+1
2009-02-04Have nmbd check all available interfaces for WINS before failingAravind Srinivasan2-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.
2009-01-30Make cli_tcon_andx asyncVolker Lendecke1-1/+1
2009-01-27s3:nmbd: handle SIG_TERM and SIGHUP via teventStefan Metzmacher1-48/+67
metze
2009-01-27s3:nmbd: as the sig_term() handler only sets a flag we don't need to block ↵Stefan Metzmacher3-23/+0
SIGTERM The arguments of commit d98bea900ee694cdba83149620c65bd7f8765f26 are no longer valid. metze
2009-01-27s3:nmbd: install the SIG_DFL handler for SIGTERM while we're waiting for ↵Stefan Metzmacher1-12/+4
interfaces We should handle all 3 cases where we actively wait for interfaces in the same way. metze
2009-01-22s3:nmbd: we don't need to call message_dispatch() anymore it's event ↵Stefan Metzmacher1-4/+0
triggered now metze
2009-01-22s3: always call run_events() before and after sys_select()Stefan Metzmacher1-9/+7
And always setup the fd events. metze
2009-01-21Memory leaks and other fixes found by Coveritytodd stecher2-3/+3
2009-01-16s3:put the browse list into cache_dir, not lock_dir.Michael Adam1-8/+1
Michael
2009-01-16s3:nmbd: don't leak state_path() to talloc_tos() in wins_write_database()Michael Adam1-1/+1
Michael
2009-01-15s3: make better use of ccache by not including version.h in every C-file.Michael Adam1-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
2009-01-14Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison1-4/+1
the connections list and authentication structures to worry about. Jeremy
2009-01-12Covert several persistant tdb files to use state_path() instead of lock_path()Steven Danneman1-1/+1
2009-01-12Audit usage of get_dyn_STATEDIR() and replace with state_path()Steven Danneman1-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().
2009-01-05s3:events: change event_add_timed() prototype to match samba4Stefan Metzmacher1-2/+1
metze
2009-01-05clean event context after child is forked.Bo Yang2-2/+4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-19Make cli_negprot return NTSTATUS instead of boolVolker Lendecke1-1/+2
2008-11-03s3: fix a few "shadows a global declaration" warningsTim Prouty1-4/+4
2008-10-23Use common net utility code (address and sockaddr manipulation).Jelmer Vernooij3-11/+12
2008-10-23Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij4-5/+5
otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
2008-10-18Use separate make variables for libutil and libcrypto.Jelmer Vernooij2-3/+3
2008-10-14Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij1-3/+3
2008-09-25s3-nbt: remove double nbt netlogon opcodes.Günther Deschner1-15/+15
Guenther
2008-08-20fix build warning.Günther Deschner1-1/+1
Guenther (This used to be commit a75055be5ff7ebe3476cfac86c6597a56a843c23)
2008-08-19Fix bug 5697 nmbd spins in reload_interfaces when only loopback has an IPv4 ↵Jeremy Allison2-7/+8
address reported by Ted Percival <ted@midg3t.net>. Jeremy. (This used to be commit ab06efccf31fbc899536d2681a2076e6dfd65b9e)
2008-08-13first cut at adding full transactions for ctdb to samba3Andrew Tridgell1-4/+0
(This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
2008-08-09nmbd: add support for delayed initial samlogon packages.Michael Adam1-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)
2008-08-09nmbd_packets: make queue_packet() public.Michael Adam1-3/+1
Michael (This used to be commit 363eb90ce8380ce1bbc74673936ba1e6d7eee23b)
2008-06-26nmbd: untangle logic in nmbd_messaging_context() slightly.Michael Adam1-2/+5
Michael (This used to be commit 3baf9eb6a2cc6a4a153303b457d3a7067948495e)
2008-06-26nmbd: don't panic if messaging_init() fails - return NULL instead.Michael Adam1-1/+1
Michael (This used to be commit e6a403209c29bd2ec2242d654ad45276de02cb44)
2008-04-23Fix CLEAR_IF_FIRST handling of messages.tdbVolker Lendecke2-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)
2008-04-21cldap: avoid duplicate definitions so remove ads_cldap.h.Günther Deschner1-2/+2
Guenther (This used to be commit 538eefe22ad69540b9f73ffaa613d6be045de199)
2008-04-18nmbd: create the messaging conntext earlierStefan Metzmacher1-3/+12
metze (This used to be commit 056ff094ad2c59992cfdb8b29696c08dab4113d7)
2008-04-18nmbd: call reinit_after_fork() in all needed casesStefan Metzmacher2-0/+10
metze (This used to be commit f68829ff14c457bfa98cb2ef9e8ec2e1a0b1d64d)
2008-04-12dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbinddStefan Metzmacher1-0/+8
metze (This used to be commit 64450cc1e441355aa8925b7183e90872eeab20b1)
2008-04-11Fix bug #5386, don't keep printing the same waitingJeremy Allison1-3/+6
error message. Jeremy. (This used to be commit 12e6818df1c77810a59a2896f8c44c91fc24e7ae)
2008-04-10Fix the last reported debian problem with nmbd not waitingJeremy Allison1-10/+22
until interfaces come up. Jeremy. (This used to be commit 59a2f0873c789822d46f862042921a8ba8f2bd28)
2008-03-27Fix for termination problems when no interfaces found - bug #5267.Jeremy Allison1-6/+15
Jeremy. (This used to be commit 4b03f4eb2da7a523967ace3d13e79406ade07d47)
2008-03-06Fix bug #5267 - nmbd shuts down when network interfaces go down.Jeremy Allison1-29/+39
Cause nmbd to wait for an interface, in a mode where SIGTERM will kills us (same way we wait on startup for an interface). Jeremy. (This used to be commit 5440c752ff270cc674d46f2dfa2ceb47dac030f6)
2008-02-29Patch to fix the "Invalid read of size 4" errors. Bug #3617.Jeremy Allison1-0/+18
Jeremy. (This used to be commit fa12667ec284fdda45b79cbf6bf548ab0faae34f)
2008-02-29Fix part of bug #3617 from valgrind trace.Jeremy Allison2-3/+4
"Invalid read of size 1" errors. Jeremy. (This used to be commit d954a4954ba8ed6cb2c6074176a6008cfa398dd7)