summaryrefslogtreecommitdiffstats
path: root/source/nmbd
Commit message (Collapse)AuthorAgeFilesLines
* The unused variable was actually needed. The correct fix is to moveTim Potter2002-08-151-1/+1
| | | | | it inside an #ifdef HAVE_ADS to avoid the warning and breaking the build. (-:
* Removed unused variable.Tim Potter2002-08-151-1/+0
|
* 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
* Add AD version of samlogon replies for getdc. ATM it will only functionJim McDonough2002-08-061-11/+103
| | | | if you have an ADS DC.
* Fix length on mailslots. Looks like it should have been 0x17, not decimal 17.Jim McDonough2002-08-021-1/+1
|
* this is an interim fix for nmbd not registering DOMAIN#1b with WINSAndrew Tridgell2002-07-281-1/+20
| | | | | | when a PDC. The fix does not iterate over all WINS tags, which it should do, but after having looked at doing that it gets *very* messy to do with our current code base.
* make sure async dns nmbd child diesAndrew Tridgell2002-07-282-1/+8
| | | | samba-patches 898
* fix minor nits in nmbd from adtam@cup.hp.comAndrew Tridgell2002-07-283-13/+13
| | | | samba-patches 959
* I think this makes the debug statement clearer.Andrew Bartlett2002-07-261-1/+1
| | | | | | (but assumes that 'myip' is indeed our local IP...) Andrew Bartlett
* the last WINS update broke self registration when we are a WINSAndrew Tridgell2002-07-091-3/+4
| | | | | | | | | | | | | server. The real problem is all the special cases we had for when we are a wins server as opposed to when we are using a 'real' wins server. This patch removes the special cases. We now accept non-broadcast packets from ourselves and we use ourselves as a wins server when we are one. This gets rid of the special cases and simplifies things quite a bit. It all seems to work, but there are bound to be problems found later.
* fixed multi-homed re-registration of names when we are a WINSAndrew Tridgell2002-07-011-1/+11
| | | | server. We were rejecting them, leaving the name unregistered!
* 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-279-829/+802
| | | | | | | | | | | | | | | | 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.
* This commit finally gives us multiple wins server groups. We nowAndrew Tridgell2002-06-262-171/+224
| | | | | | | | | | | | | | | | | | | | | | | | accept an extended syntax for 'wins server' like this: wins server = group1:192.168.2.10 group2:192.168.3.99 group1:192.168.0.1 The tags before the IPs don't mean anything, they are just a way of grouping IPs together. If you use the old syntax (ie. no ':') then an implicit group name of '*' is used. In general I'd recommend people use interface names for the group names, but it doesn't matter much. When we register in nmbd we try to register all our IPs with each group of WINS servers. We keep trying until all of them are registered with every group, falling back to the failover WINS servers for each group as we go. When we do a WINS lookup we try each of the WINS servers for each group. If a WINS server for a group gives a negative answer then we give up on that group and move to the next group. If it times out then we move to the next failover wins server in the group. In either case, if a WINS server doesn't respond then we mark it dead for 10 minutes, to prevent lengthy waits for dead servers.
* we never pass any userdata when doing name registrations on theAndrew Tridgell2002-06-261-54/+51
| | | | | | unicast subnet, so remove that parameter. That frees up userdata so I can start using it to indicate which wins server tag we are registering (more about wins 'tags' later ...)
* - completely rewrote the wins_srv.c code. It is now much simpler, andAndrew Tridgell2002-06-263-7/+29
| | | | | | | | | | | | | | gives us a good grounding to properly support multiple wins servers for different interfaces (which will be coming soon ...) - fixed our wins registration failover code to actually do failover! We were not trying to register with a secondary wins server at all when the primary was down. We now fallback correctly. - fixed the multi-homed name registration packets so that they work even in a non-connected network (ie. when one of our interfaces is not routable from the wins server. Yes, this really happens in the real world).
* when nmbd starts up it is possible that dhcp hasn't started the localAndrew Tridgell2002-06-191-4/+9
| | | | | interfaces yet. Instead of giving up, nmbd will now wait for some interfaces to appear
* compile warngin fixes merged from 2.2Gerald Carter2002-06-171-2/+2
|
* merge from 2.2Gerald Carter2002-05-281-1/+1
|
* nmbd handle shutdown message.Jean-François Micouleau2002-03-291-0/+10
| | | | J.F.
* Fix to stop PERMANENT_NAMES being added when nmbd starts up and WINSJeremy Allison2002-03-291-5/+34
| | | | | server is down. Keep adding refreshible names instead. Jeremy.
* Make winbindd_idmap tdb endian independent. This is very important forJeremy Allison2002-03-211-5/+5
| | | | | | | | sharing between machines with rsync. Finally removed tdb_store_int/tdb_fetch_int. Now only tdb_store_int32/tdb_fetch_int32 which are endian independent are allowed. Jeremy.
* Add assertions that kill() is never accidentally passed a non-positiveMartin Pool2002-03-201-2/+3
| | | | | | | | | pid. This follows a bug in rsync where it would accidentally kill(-1), removing all the user's processes. I can't see any way this would directly happen in Samba, but having the assertions seems beneficial. http://cvs.samba.org/cgi-bin/cvsweb/rsync/util.c.diff?r1=1.108&r2=1.109&f=h
* Removed unused static function.Tim Potter2002-03-051-18/+0
|
* Cause nmbd to take signal processing in-band, rather than inJeremy Allison2002-03-011-339/+368
| | | | | signal handlers. THIS NEEDS TESTING ! Jeremy.
* Fix from Michael Steffens <michael_steffens@hp.com> to make signalJeremy Allison2002-01-311-1/+1
| | | | | | processing work correctly in winbindd. This is a really good patch that gives full select semantics to the Samba modified select. Jeremy.
* Removed version number from file header.Tim Potter2002-01-3027-52/+27
| | | | 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-253-267/+627
| | | | | | | | | | | | 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.
* remove unused variableJean-François Micouleau2002-01-251-1/+0
| | | | J.F.
* Ensure (C) message is output on startup.Jeremy Allison2002-01-181-2/+2
| | | | Jeremy.
* Tidyup & code refactoring from Martin.Sheppard@csiro.au.Jeremy Allison2002-01-181-26/+23
| | | | Jeremy.
* Fix name register bug with non-existent wins server.Jeremy Allison2002-01-161-32/+29
| | | | Jeremy.
* Same fix as went into 2.2 (I'm waiting for jerry to finish some code).Jeremy Allison2002-01-114-15/+15
| | | | 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.
* Add an output parameter to message_send_all that says how manyMartin Pool2001-12-211-1/+1
| | | | | | messages were sent, so you know how many replies to expect. Const and doc religion.
* 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-269-22/+13
| | | | | | | 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.
* Fixed WINS re-registration bug. Don't ask..... :-(. It was in my code :-).Jeremy Allison2001-10-082-2/+3
| | | | Jeremy.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-0227-50/+0
|
* How often did I read the CVS commit messageVolker Lendecke2001-09-271-1/+1
| | | | | | "Always compile before commit" :-(( Volker
* From 2.2.Volker Lendecke2001-09-261-0/+6
| | | | Volker
* move to SAFE_FREE()Simo Sorce2001-09-1714-39/+37
|
* convert more code to use XFILEAndrew Tridgell2001-09-104-46/+45
|
* convert more code to use XFILEAndrew Tridgell2001-09-103-10/+10
|
* declare dbf in one spotAndrew Tridgell2001-09-101-1/+0
|