1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

322 Commits

Author SHA1 Message Date
Andrew Bartlett
fbb46da79c Merge from HEAD:
- NTLMSSP over SPENGO (sesssion-setup-and-x) cleanup and code refactor.
  - also consequential changes to the NTLMSSP and SPNEGO parsing functions
  - and the client code that uses the same functions
 - Add ntlm_auth, a NTLMSSP authentication interface for use by applications
   like Squid and Apache.
  - also consquential changes to use common code for base64 encode/decode.
 - Winbind changes to support ntlm_auth (I don't want this program to need
   to read smb.conf, instead getting all it's details over the pipe).
 - nmbd changes for fstrcat() instead of fstrcpy().

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
0fb724b321 *lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
0001-01-01 00:00:00 +00:00
Andrew Bartlett
9b70fa868e Merge from HEAD:
- fstring/pstring mixups
 - the detection code that found them (disabled)
 - a bit of whitespace
 - a static

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
a8db1b611d patch to include support for daemontools from Michael Handler 0001-01-01 00:00:00 +00:00
Andrew Bartlett
3a7458f947 Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
09a218a9f6 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4bc49cc943 Protect nmbd against malformed reply packets. Some reports on the lists showing
these.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
bdb6e76ab5 Merge of #include <smb.h> removals. 0001-01-01 00:00:00 +00:00
Jim McDonough
e707e2cc7c Stop using hacks for dns host/domain names. 0001-01-01 00:00:00 +00:00
Jeremy Allison
5d5762d178 Lots of fixes for error paths where tdb_fetch() data need freeing.
Found via a post from Arcady Chernyak <Arcady.Chernyak@efi.com>.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
7d9552e9c5 Fix from "Stefan (metze) Metzmacher" <metze@metzemix.de> for nmbd 1c group
release.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f755711df8 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
1175b62337 Last sync with HEAD 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
1a25dc776d Sync with HEAD 0001-01-01 00:00:00 +00:00
Jeremy Allison
e1ea20d2d1 Ensure we register the 1c name on the unicast subnet.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
5959f35db6 Merging tridge's wins fixes. Tridge - we're supposed to be keeping 3.0 up
to date :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
65e7b5273b sync'ing up for 3.0alpha20 release 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
3928578b52 sync 3.0 branch with head 0001-01-01 00:00:00 +00:00
Andrew Tridgell
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 0001-01-01 00:00:00 +00:00
Jean-François Micouleau
c33459f701 nmbd handle shutdown message.
J.F.
0001-01-01 00:00:00 +00:00
Jeremy Allison
f25fcd99fa Fix to stop PERMANENT_NAMES being added when nmbd starts up and WINS
server is down. Keep adding refreshible names instead.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
1c4a00dcc1 Make winbindd_idmap tdb endian independent. This is very important for
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.
0001-01-01 00:00:00 +00:00
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