summaryrefslogtreecommitdiffstats
path: root/source/nmbd
Commit message (Collapse)AuthorAgeFilesLines
* fix build warning.Günther Deschner2008-08-201-1/+1
| | | | Guenther
* 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.
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-131-4/+0
|
* 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
* nmbd_packets: make queue_packet() public.Michael Adam2008-08-091-3/+1
| | | | Michael
* nmbd: untangle logic in nmbd_messaging_context() slightly.Michael Adam2008-06-261-2/+5
| | | | Michael
* nmbd: don't panic if messaging_init() fails - return NULL instead.Michael Adam2008-06-261-1/+1
| | | | Michael
* 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 :-)
* cldap: avoid duplicate definitions so remove ads_cldap.h.Günther Deschner2008-04-211-2/+2
| | | | Guenther
* nmbd: create the messaging conntext earlierStefan Metzmacher2008-04-181-3/+12
| | | | metze
* nmbd: call reinit_after_fork() in all needed casesStefan Metzmacher2008-04-182-0/+10
| | | | metze
* dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbinddStefan Metzmacher2008-04-121-0/+8
| | | | metze
* Fix bug #5386, don't keep printing the same waitingJeremy Allison2008-04-111-3/+6
| | | | | error message. Jeremy.
* Fix the last reported debian problem with nmbd not waitingJeremy Allison2008-04-101-10/+22
| | | | | until interfaces come up. Jeremy.
* Fix for termination problems when no interfaces found - bug #5267.Jeremy Allison2008-03-271-6/+15
| | | | Jeremy.
* Fix bug #5267 - nmbd shuts down when network interfaces go down.Jeremy Allison2008-03-061-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.
* Patch to fix the "Invalid read of size 4" errors. Bug #3617.Jeremy Allison2008-02-291-0/+18
| | | | Jeremy.
* Fix part of bug #3617 from valgrind trace.Jeremy Allison2008-02-292-3/+4
| | | | | "Invalid read of size 1" errors. Jeremy.
* Convert read_data() to NTSTATUSVolker Lendecke2008-02-021-7/+12
|
* Fix Coverity ID 454Volker Lendecke2008-01-241-1/+8
|
* Fix Coverity ID 465Volker Lendecke2008-01-241-0/+2
|
* strtok -> strtok_rVolker Lendecke2008-01-231-1/+2
|
* Fix CID 475. work should not be checked against NULLJeremy Allison2008-01-111-2/+2
| | | | | here as it can never be null. Jeremy.
* Ensure we don't take address of one past buffer.Jeremy Allison2008-01-091-1/+1
| | | | Jeremy.
* More logical operation on bool.Jeremy Allison2008-01-041-1/+3
| | | | Jeremy.
* Attempt to fix bug #3617. Mix of patches from Volker andJeremy Allison2008-01-022-22/+7
| | | | | myself. Use standard dlinklist macros. Jeremy.
* Add SMB encryption. Still fixing client decrypt butJeremy Allison2007-12-261-1/+1
| | | | | negotiation works. Jeremy.
* Arg. The fix for CVE-2007-6015 hadn't been merged into 3.2.Jeremy Allison2007-12-131-0/+6
| | | | | Do so now.... Jeremy.
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-102-8/+11
| | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy.
* Fix two incompatible pointer warningsVolker Lendecke2007-12-081-1/+1
| | | | Jeremy, please check
* Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2007-12-073-30/+51
| | | | | No more temptations to use static length strings. Jeremy.
* Don't build rpctorture anymore - not maintained. Just remove.Jeremy Allison2007-12-071-1/+1
| | | | | | Remove all vestiges of pstring (except for smbctool as noted in previous commit). Jeremy
* Remove PSTRING_LEN from smbd/ nmbd/.Jeremy Allison2007-11-291-4/+4
| | | | | | | Remove pstring from libsmb/clidfs.c except for a nasty hack (that will be removed when pstrings are gone from client/). Jeremy.
* Remove pstring from nmbd.Jeremy Allison2007-11-1910-111/+154
| | | | Jeremy.
* Fix bug noticed by kukks <linux@kukkukk.com> whereJeremy Allison2007-11-151-1/+9
| | | | | | | ip list didn't match namelist added to subnetdb. Could cause bogus IP addresses to be reported for the __SAMBA__ name. Jeremy.
* More pstring removal. This one was tricky. I had to addJeremy Allison2007-11-151-0/+2
| | | | | | one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy.
* Fix for CVE-2007-5398.Gerald (Jerry) Carter2007-11-151-0/+6
| | | | | | | | | | | | | | | == Subject: Remote code execution in Samba's WINS == server daemon (nmbd) when processing name == registration followed name query requests. == == CVE ID#: CVE-2007-5398 == == Versions: Samba 3.0.0 - 3.0.26a (inclusive) ... Secunia Research reported a vulnerability that allows for the execution of arbitrary code in nmbd. This defect may only be exploited when the "wins support" parameter has been enabled in smb.conf.
* Remove more static fstring/pstrings. Fix socket optionJeremy Allison2007-11-091-3/+1
| | | | | set on wrong fd (-1). Jeremy.
* Remove more pstring/fstrings.Jeremy Allison2007-11-081-2/+7
| | | | Jeremy.
* Remove more fstring/pstring bad useage. Go talloc !Jeremy Allison2007-11-081-2/+7
| | | | Jeremy.
* Remove the horror that was the global smb_rw_error.Jeremy Allison2007-11-051-2/+2
| | | | | | | | | | Each cli struct has it's own local copy of this variable, so use that in client code. In the smbd server, add one static to smbd/proccess.c and use that inside smbd. Fix a bunch of places where smb_rw_error could be set by calling read_data() in places where we weren't reading from the SMB client socket (ie. winbindd). Jeremy.
* Remove more static data from lib/util_sock.c andJeremy Allison2007-11-033-12/+19
| | | | | callers. Jeremy.
* Patch 2 of 3 from Debian Samba packagers:Gerald (Jerry) Carter2007-11-011-2/+2
| | | | | | | | | | | | | | | | | The point is doing the following associations: - non discardable state data (all TDB files that may need to be backed up) go to statedir - shared data (codepage stuff) go to codepagedir The patch *does not change* the default location for these directories. So, there is no behaviour change when applying it. The main change is for samba developers who have to think when dealing with files that previously pertained to libdir whether they: - go in statedir - go in codepagedir - stay in libdir
* start smbd, nmbd and winbindd with the same startup messageStefan Metzmacher2007-10-301-2/+2
| | | | | | at debug level 0. metze
* This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2007-10-2410-46/+80
| | | | | | | | | | | | | 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 move to OPT_LOG_STDOUTStefan Metzmacher2007-10-201-1/+1
| | | | metze
* Fix the popt / bool issues. Some places we used BOOLJeremy Allison2007-10-191-9/+32
| | | | | | where we meant int. Fix this. Thanks to metze for pointing this out. Jeremy.
* fix startup of smbd, nmbd, winbinddStefan Metzmacher2007-10-191-11/+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
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-1822-118/+118
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison2007-10-1014-81/+149
| | | | | | | | | | IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy.