1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

300 Commits

Author SHA1 Message Date
Martin Pool
098905bea2 Add assertions that kill() is never accidentally passed a non-positive
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
0001-01-01 00:00:00 +00:00
Tim Potter
472acd89b2 Removed unused static function. 0001-01-01 00:00:00 +00:00
Jeremy Allison
166d2a6144 Cause nmbd to take signal processing in-band, rather than in
signal handlers. THIS NEEDS TESTING !
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
3af16ade17 Fix from Michael Steffens <michael_steffens@hp.com> to make signal
processing work correctly in winbindd. This is a really good patch
that gives full select semantics to the Samba modified select.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
b902e087d0 rewrote nmbd's wins backend to use a tdb instead of a flat text file.
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.
0001-01-01 00:00:00 +00:00
Jean-François Micouleau
ca7665c6b3 remove unused variable
J.F.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7d05175494 Ensure (C) message is output on startup.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
85da18e46e Tidyup & code refactoring from Martin.Sheppard@csiro.au.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4e41780c21 Fix name register bug with non-existent wins server.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
01ff6ce496 Same fix as went into 2.2 (I'm waiting for jerry to finish some code).
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
fffae94dd5 When running interactive we want to set our own process group for
signal management.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9343b613d3 Fixup -i interactive modes.
Jeremy.
0001-01-01 00:00:00 +00:00
Martin Pool
22e510ea0d Add an output parameter to message_send_all that says how many
messages were sent, so you know how many replies to expect.

Const and doc religion.
0001-01-01 00:00:00 +00:00
Jeremy Allison
0bea6cf79a Removed global debugf. Replaced with lp_set_logfile(name).
Fixed winbindd to finally stop leaving log. file droppings :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
1a30efdc2c added -i option to nmbd, giving interactive mode (like winbindd) 0001-01-01 00:00:00 +00:00
Tim Potter
778f5f77a6 Got medieval on another pointless extern. Removed extern struct ipzero
and replaced with two functions:

	void zero_ip(struct in_adder *ip);
	BOOL is_zero_ip(struct in_addr ip);
0001-01-01 00:00:00 +00:00
Tim Potter
8fc772c9e5 Removed TimeInit() call from every client program (except for one place
in smbd/process.c where the timezone is reinitialised.  Was replaced with
check for a static is_initialised boolean.
0001-01-01 00:00:00 +00:00
Martin Pool
a779710fff LMHOSTSFILE is now dynamically configured too. 0001-01-01 00:00:00 +00:00
Martin Pool
79ec88f0da Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
0001-01-01 00:00:00 +00:00
Jeremy Allison
129c640810 Fixed WINS re-registration bug. Don't ask..... :-(. It was in my code :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
Volker Lendecke
69a3277fc5 How often did I read the CVS commit message
"Always compile before commit" :-((

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
50ea73426f From 2.2.
Volker
0001-01-01 00:00:00 +00:00
Simo Sorce
1446a1562b move to SAFE_FREE() 0001-01-01 00:00:00 +00:00
Andrew Tridgell
fd24265c06 convert more code to use XFILE 0001-01-01 00:00:00 +00:00
Andrew Tridgell
fe6679dffb convert more code to use XFILE 0001-01-01 00:00:00 +00:00
Andrew Tridgell
f41c3bb80f declare dbf in one spot 0001-01-01 00:00:00 +00:00
Andrew Tridgell
1af8bf34f1 replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c26e0d3f27 got rid of USE_TDB_MMAP_FLAG as its not needed any more 0001-01-01 00:00:00 +00:00
Herb Lewis
c105859304 merge profile data changes from 2.2 0001-01-01 00:00:00 +00:00
Tim Potter
b7cf14bf84 Send a MSG_SMB_SAM_REPL when a UAS/SAM change netlogon message is
received.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
5b975d3a9c Same as nmbd.c. These now test wins_srv_count() instead of lp_wins_server
to determine whether the 'wins server' parameter is set.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
0777ebc04b Instead of checking lp_wins_server() to see if a WINS server was specified,
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.
0001-01-01 00:00:00 +00:00
Tim Potter
efcbcfaa48 Process the SAM/UAS change notification message. 0001-01-01 00:00:00 +00:00
Tim Potter
b8fe147430 Only register the #1b name if we are ROLE_DOMAIN_PDC rather than
lp_domain_master()
0001-01-01 00:00:00 +00:00
Jeremy Allison
c13b77eb35 Fixes for varargs problems with std c.
Fix from Rick Lake <rwlake@anp.nl> for QNX.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f591ca9f25 Fixes from Jens-Uwe.Walther@force.de to make the -l option behave
consistently.
Jeremy.
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
bbf14e2d4e Andrew B and I were commiting the same fix at the same time in different
trees.  This change simply brings HEAD and 2.2 in line with one another.
Otherwise the code would be differnt but the meaning would be the same,
which is awkward.
Chris 'fifty-seven commits per line changed' Hertel -)-----
0001-01-01 00:00:00 +00:00
Andrew Bartlett
cad6f53433 Fix tree breakage, the last change was entirly non-portable, and we already
have this nice variable to do exactly this...
0001-01-01 00:00:00 +00:00
Christopher R. Hertel
22ea0770d8 Fix from John Malmberg. When I added the additional information to the
debug block that reports multiple query responses I did not notice that
the local answer_ip variable was only selectively set.

Chris -)-----
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
debb471267 The big character set handling changeover!
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.
0001-01-01 00:00:00 +00:00
Simo Sorce
1aef522452 - sorry, forgot to test a pointer 0001-01-01 00:00:00 +00:00
Simo Sorce
db36ed1d80 "netbios aliases" and "interfaces" options change from P_STRING to P_LIST 0001-01-01 00:00:00 +00:00
Christopher R. Hertel
8f2f09af0a Added info to some of the debug messages to get a better handle on a problem
people are reporting regarding multiple responses to queries on <1D> names.

There should only ever be one LMB but some users are seeing multiple replies
to queries for the LMB name.  This is probably due to nodes on the LAN that
have NetBIOS over NetBEUI and/or IPX enabled.  Previously, the debug message
did not include the IP address associated with the name.  It *did* include
the source address of the packet, but in the examples I've seen all of these
were the same, eg:

[2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (2) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
 [2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (3) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
 [2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (4) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24
[2000/06/22 11:58:25, 0] nmbd/nmbd_namequery.c:query_name_response(93)
query_name_response: Multiple (5) responses received for a query on subnet
129.130.10.136 for name NT.CIS.KSU.EDU<1d>. This response was from IP
129.130.10.24

Note that all of the above are reported as having come from 129.130.10.24.
This should never happen.  If 129.130.10.24 is a WINS server it should
send a Negative Name Query Response for a <1D> name query (wierd but true).

So, are all of the above coming from different systems, all of which
think are the LMB?  Are they all coming from one system that is, for some
strange reason, replying five times to the same query?

Anyway, I needed more info so I've changed the debug messages.

Chris -)-----
0001-01-01 00:00:00 +00:00
Andrew Tridgell
e2ecff419f fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead of a define 0001-01-01 00:00:00 +00:00
Jeremy Allison
d57feb2c85 Mismatched format and args.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
53f35a71c6 More paranioa fixes against nmbd lengths.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
8bd27845f0 Fix bad length in dgram.
Jeremy.
0001-01-01 00:00:00 +00:00