summaryrefslogtreecommitdiffstats
path: root/source/nmbd/nmbd.c
Commit message (Collapse)AuthorAgeFilesLines
* Make 'remote_machine' private to lib/substitute.c, and fix all the user to useAndrew Bartlett2002-08-111-2/+1
| | | | | | the new accessor functions. Andrew Bartlett
* make sure async dns nmbd child diesAndrew Tridgell2002-07-281-1/+7
| | | | samba-patches 898
* don't start the async dns process unless we actually need it!Andrew Tridgell2002-07-011-1/+1
| | | | (ie. check for lp_dns_proxy())
* The next phase in the WINS rewrite!Andrew Tridgell2002-06-271-11/+2
| | | | | | | | | | | | | | | | We now cope wiith multiple WINS groups and multiple failover servers for release and refresh as well as registration. We also do the regitrations in the same fashion as W2K does, where we don't try to register the next IP in the list for a name until the WINS server has acked the previos IP. This prevents us flooding the WINS server and also seems to make for much more reliable multi-homed registration. I also changed the dead WINS server code to mark pairs of IPs dead, not individual IPs. The idea is that a WINS server might be dead from the point of view of one of our interfaces, but not another, so we need to keep talking to it on one while moving onto a failover WINS server on the other interface. This copes much better with partial LAN outages and weird routing tables.
* compile warngin fixes merged from 2.2Gerald Carter2002-06-171-2/+2
|
* nmbd handle shutdown message.Jean-François Micouleau2002-03-291-0/+10
| | | | J.F.
* Cause nmbd to take signal processing in-band, rather than inJeremy Allison2002-03-011-339/+368
| | | | | signal handlers. THIS NEEDS TESTING ! Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-1/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* rewrote nmbd's wins backend to use a tdb instead of a flat text file.Jean-François Micouleau2002-01-251-0/+1
| | | | | | | | | | | | Changed the way the wins record are handled in memory. Now they are living much longer with the different states: active, released and tombstone. Also added a version ID, some wins flags and the wins owner ip address to the namrec->data struct, and a function to process messages sent by the wins replication daemon. the initiate_wins_processing() function is not correct, I'll fix it later. J.F.
* Ensure (C) message is output on startup.Jeremy Allison2002-01-181-2/+2
| | | | Jeremy.
* When running interactive we want to set our own process group forJeremy Allison2001-12-301-0/+9
| | | | | signal management. Jeremy.
* Fixup -i interactive modes.Jeremy Allison2001-12-291-5/+6
| | | | Jeremy.
* Removed global debugf. Replaced with lp_set_logfile(name).Jeremy Allison2001-12-201-5/+6
| | | | | Fixed winbindd to finally stop leaving log. file droppings :-). Jeremy.
* added -i option to nmbd, giving interactive mode (like winbindd)Andrew Tridgell2001-11-271-3/+8
|
* Got medieval on another pointless extern. Removed extern struct ipzeroTim Potter2001-11-261-2/+0
| | | | | | | and replaced with two functions: void zero_ip(struct in_adder *ip); BOOL is_zero_ip(struct in_addr ip);
* Removed TimeInit() call from every client program (except for one placeTim Potter2001-11-231-2/+0
| | | | | in smbd/process.c where the timezone is reinitialised. Was replaced with check for a static is_initialised boolean.
* LMHOSTSFILE is now dynamically configured too.Martin Pool2001-11-191-12/+3
|
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-7/+5
| | | | default, rather than in preprocessor macros.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-3/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-171-1/+1
|
* declare dbf in one spotAndrew Tridgell2001-09-101-1/+0
|
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-101-2/+2
| | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default.
* Instead of checking lp_wins_server() to see if a WINS server was specified,Christopher R. Hertel2001-08-261-5/+8
| | | | | | | | nmbd now calls wins_srv_count(). This returns the number of WINS servers specified in the 'wins server' parameter. The return value will be zero if 'wins server' is not specified. Quick change to make room for WINS failover.
* Fixes from Jens-Uwe.Walther@force.de to make the -l option behaveJeremy Allison2001-07-171-1/+1
| | | | | consistently. Jeremy.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-3/+3
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-4/+0
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* - sorry, forgot to test a pointerSimo Sorce2001-07-031-21/+26
|
* "netbios aliases" and "interfaces" options change from P_STRING to P_LISTSimo Sorce2001-07-011-13/+15
|
* fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef ↵Andrew Tridgell2001-06-251-1/+1
| | | | instead of a define
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-1/+1
| | | | Jeremy.
* added option "enhanced browsing"Andrew Tridgell2001-03-211-2/+6
| | | | | | this allows users to disable the cross-subnet browse extensions that I added to Samba a couple of years ago. This may be useful for getting rid of empty workgroups.
* samba/source/nmbd/nmbd.c change remote_machine name to nmbd insteadHerb Lewis2001-02-151-1/+1
| | | | | | | | | | | | of nmb so we write to same log file that was originally created as log.nmbd samba/source/smbd/server.c change remote_machine name to smbd instead of smb so we write to same log file that was originally created as log.smbd samba/source/lib/interface.c allow binding to all interface IP addresses even if on same subnet. This allows you to specify which IP's you want in interfaces line and use bind interfaces only
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-251-0/+6
| | | | | | | | | source/smbd/server.c source/nmbd/nmbd.c - Fixed a very subtle bug with signals. Seems that POSIX requires that the signal mask be inhereted. So, if you happen to kick off smbd/nmbd from code that has the mask set on SIGUSR1, you lose messages.
* Ignore SIGUSR2. Terminate nmbd if we have no interfaces.Jeremy Allison2000-10-121-5/+19
| | | | Jeremy.
* - changed the msg_type to be an int instead of an enum so that it isAndrew Tridgell2000-09-121-3/+4
| | | | | | | easier to add new message types to messages.h without breaking old binaries - added a MSG_FORCE_ELECTION message to force nmbd to hold an election
* debug messages now work for nmbdAndrew Tridgell2000-09-111-0/+4
|
* the first cut of the internal messaging system.Andrew Tridgell2000-09-111-19/+0
| | | | | The motivation for this system is to replace the UDP message for oplocks, but this commit only does the "set debug level" message.
* more mergingAndrew Tridgell2000-05-101-2/+1
| | | | | it is now at the stage that winbindd can compile in the head branch, but not link
* Added sys_fork() and sys_getpid() functions to stop the overheadJeremy Allison2000-05-021-1/+1
| | | | | of doing a system call every time we want to just get our pid. Jeremy.
* finally got sick of the "extern int Client" code and the stupidAndrew Tridgell2000-04-111-1/+0
| | | | | | | | | | | | | | | | assumption that we have one socket everywhere while doing so I discovered a few bugs! 1) the clientgen session retarget code if used from smbd or nmbd would cause a crash as it called close_sockets() which closed our main socket! fixed by removing close_sockets() completely - it is unnecessary 2) the caching in client_addr() and client_name() was bogus - it could easily get fooled and give the wrong result. fixed. 3) the retarget could could recurse, allowing an easy denial of service attack on nmbd. fixed.
* Cause nmbd to ignore loopback interface when constructing its interface ↵Jeremy Allison2000-03-291-0/+14
| | | | | | | | list. This is done by default when interfaces are probed, but if someone explicitly adds 127.0.0.1 to the interfaces line for smbd, then nmbd would start to try and register names on it. This was not good :-(. Jeremy.
* rename static reload_services function to reload_nmbd_services becauseLuke Leighton2000-03-271-6/+6
| | | | it clashes with other reload_services definitions.
* merge from tng ...Andrew Tridgell2000-03-261-1/+1
| | | | reload services can be static
* this looks like a big commit, but it isn't really :)Andrew Tridgell2000-01-071-9/+2
| | | | | | | | This fixes our netbios scope handling. We now have a 'netbios scope' option in smb.conf and the scope option is removed from make_nmb_name() this was prompted by a bug in our PDC finding code where it didn't append the scope to the query of the '*' name.
* implemented talloc() as described on samba-technical. This fixes theAndrew Tridgell2000-01-051-0/+3
| | | | | | | lp_string() bug properly. we still need to add lp_talloc_free() calls in all the main event loops, I've only put it in smbd and nmbd thus far.
* got rid of mem_manAndrew Tridgell2000-01-031-2/+0
| | | | | | | yamd is much better, and doesn't require any source code changes if you haven't seen yamd then take a look at http://www3.hmc.edu/~neldredge/yamd/ its excellent!
* added the unexpected packet database (unexpected.tdb)Andrew Tridgell2000-01-031-0/+5
| | | | | | | | | | | | this means "nmblookup -S" now always works, even with broken servers the database stores all unexpected replies and these can be accessed by any client. while doing this I cleaned up a couple of functions, and put in place a better trn_id generator. in most places the code got quite a bit simpler due to the addition of simple helper functions. I haven't yet put the code in to take advantage of this for pdc replies - that will be next. Jeremys pdc finding code will then work :)
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-36/+127
|
* oops, util_pwdb.c appears to be included in PASSDB_OBJ not LIB_OBJ.Luke Leighton1998-12-091-1/+1
|
* need to initialise global_myworkgroupLuke Leighton1998-12-091-0/+5
|