summaryrefslogtreecommitdiffstats
path: root/source3/nmbd/nmbd.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge Jelmer's popt updates from HEAD.Tim Potter2003-04-141-12/+3
| | | | (This used to be commit 98e84b3e83d2a365c818ea64f9418edb29d690f2)
* update copyright notice since it we are now almost 4 months into 2003Gerald Carter2003-03-301-1/+1
| | | | (This used to be commit 0751d2f117b4274dd19388d856de75d9fc739865)
* Add an extra parameter to our 'set_remote_machine_name' andAndrew Bartlett2003-03-181-1/+1
| | | | | | | | | | 'set_local_machine_name' so that the client can't change it from under us. (.NET RC2 and WinXP install calls the machine 'machinename' during NTLMSSP on the domain join). Andrew Bartlett (This used to be commit 4c7163e7c2cc09bd95faa05156ee480957a7a4d8)
* patch to include support for daemontools from Michael HandlerGerald Carter2003-01-031-3/+21
| | | | (This used to be commit a8db1b611d83bfd8dcf60f1e6d8fcbf57c798528)
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-0/+20
| | | | | | named. Ensure we can query them. Jeremy. (This used to be commit 09a218a9f6fb0bd922940467bf8500eb4f1bcf84)
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-121-100/+2
| | | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy. (This used to be commit f755711df8f74f9b8e8c1a2b0d07d02a931eeb89)
* Last sync with HEADJelmer Vernooij2002-11-091-5/+0
| | | | (This used to be commit 1175b62337f5c29954cd5e8dfdc2327c9c80748c)
* Sync with HEADJelmer Vernooij2002-11-091-101/+29
| | | | (This used to be commit 1a25dc776ddc36de9a214e023becff1ceb10290c)
* sync 3.0 branch with headJelmer Vernooij2002-08-171-3/+8
| | | | (This used to be commit 3928578b52cfc949be5e0ef444fce1558d75f290)
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-14/+5
| | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* nmbd handle shutdown message.Jean-François Micouleau2002-03-291-0/+10
| | | | | J.F. (This used to be commit c33459f7018a2522158b20261ab8c100fdde9034)
* Cause nmbd to take signal processing in-band, rather than inJeremy Allison2002-03-011-339/+368
| | | | | | signal handlers. THIS NEEDS TESTING ! Jeremy. (This used to be commit 166d2a6144f929baecd83bdd855f6ada06cb51a6)
* Removed version number from file header.Tim Potter2002-01-301-1/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* 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. (This used to be commit b902e087d06c32797af19021a7f56895d86d7364)
* Ensure (C) message is output on startup.Jeremy Allison2002-01-181-2/+2
| | | | | Jeremy. (This used to be commit 7d05175494227bf30d098e04ec91c4f0a7b7184c)
* When running interactive we want to set our own process group forJeremy Allison2001-12-301-0/+9
| | | | | | signal management. Jeremy. (This used to be commit fffae94dd5699f44c0b1c8081587deafd89b3fc0)
* Fixup -i interactive modes.Jeremy Allison2001-12-291-5/+6
| | | | | Jeremy. (This used to be commit 9343b613d3778b0330bc4d610d3befd363797360)
* 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. (This used to be commit 0bea6cf79a44f79fa3a4f2c8381e898e79c66509)
* added -i option to nmbd, giving interactive mode (like winbindd)Andrew Tridgell2001-11-271-3/+8
| | | | (This used to be commit 1a30efdc2c7e5b385197bbfbcebac6a7305929b8)
* 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); (This used to be commit 778f5f77a66cda76348a7c6f64cd63afe2bfe077)
* 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. (This used to be commit 8fc772c9e5770cd3a8857670214dcff033ebae32)
* LMHOSTSFILE is now dynamically configured too.Martin Pool2001-11-191-12/+3
| | | | (This used to be commit a779710fff5fddcbf65a8ddc8e9169b586b85481)
* Store some path names in global variables initialized to configureMartin Pool2001-11-191-7/+5
| | | | | default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58)
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-3/+0
| | | | (This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
* move to SAFE_FREE()Simo Sorce2001-09-171-1/+1
| | | | (This used to be commit 1446a1562b1c618c023b056f476e26da7ee3d532)
* declare dbf in one spotAndrew Tridgell2001-09-101-1/+0
| | | | (This used to be commit f41c3bb80f1e498a9d27f6e236b0ff3a742764c9)
* 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. (This used to be commit 1af8bf34f1caa3e7ec312d8109c07d32a945a448)
* 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. (This used to be commit 0777ebc04b838b6b9036a5d0a6e0565bb0a65d9f)
* Fixes from Jens-Uwe.Walther@force.de to make the -l option behaveJeremy Allison2001-07-171-1/+1
| | | | | | consistently. Jeremy. (This used to be commit f591ca9f25c54d3cdd0b76df472411e44c95ea47)
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-3/+3
| | | | | | can't redefine them. damn. (This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
* 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. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
* - sorry, forgot to test a pointerSimo Sorce2001-07-031-21/+26
| | | | (This used to be commit 1aef52245229741bc24c3e8147fa86eaa20fe9b2)
* "netbios aliases" and "interfaces" options change from P_STRING to P_LISTSimo Sorce2001-07-011-13/+15
| | | | (This used to be commit db36ed1d80fcbee16d0a0b5f226e56961f3bf1ec)
* 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 (This used to be commit e2ecff419fdc0a0dc7551b33b377dc11061ef2a3)
* Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison2001-04-081-1/+1
| | | | | Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
* 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. (This used to be commit 978980050e599d3830d0474bc9a8003bfe227719)
* 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 (This used to be commit 01dfd59712f3730498784d7632da8fe0113d55b6)
* 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. (This used to be commit b4c98196fc65e8b3bce928296e854987622eae78)
* Ignore SIGUSR2. Terminate nmbd if we have no interfaces.Jeremy Allison2000-10-121-5/+19
| | | | | Jeremy. (This used to be commit 580e2e044cfd1d011d9f28f0f49ef60ca6ba8d32)
* - 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 (This used to be commit f1c49ca7ce56bc39259041a71479e84ebf53eeca)
* debug messages now work for nmbdAndrew Tridgell2000-09-111-0/+4
| | | | (This used to be commit 6a503f95b10f6661b089f30f2b5ffebead32685c)
* 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. (This used to be commit 2a34ee95f3929cff131db6c5a2b4820194c05b2d)
* more mergingAndrew Tridgell2000-05-101-2/+1
| | | | | | it is now at the stage that winbindd can compile in the head branch, but not link (This used to be commit d178c00aae77710ae6ff20a7f54a30e3bd8232bb)
* 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. (This used to be commit 148628b616b5c29ba6340d65fc3ddbcabba6e67a)
* 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. (This used to be commit 5937ab14d222696e40a3fc6f0e6a536f2d7305d3)
* 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. (This used to be commit cc3ad825214686ad03dd4176d0c55290d1de6221)
* rename static reload_services function to reload_nmbd_services becauseLuke Leighton2000-03-271-6/+6
| | | | | it clashes with other reload_services definitions. (This used to be commit affaf9c5411e533a77621574d356e886eea93465)
* merge from tng ...Andrew Tridgell2000-03-261-1/+1
| | | | | reload services can be static (This used to be commit b13a903720a6ef789ee7d688c05be2e77584580e)
* 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. (This used to be commit b563be824b8c3141c49558eced7829b48d4ab26f)
* 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. (This used to be commit aa7f81552540f5dca2c146f5edd805611d5b390f)