1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

313 Commits

Author SHA1 Message Date
Andrew Tridgell
23ef22f117 fixed some krb5 ifdefs -
Andrew Tridgell
e2ba2383c9 fix a bunch of places where we can double-free a cli structure -
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);
-
Tim Potter
bf491d2aa2 Fixed compiler warnings and dyn_CONFIGFILE related breakage. -
Andrew Tridgell
058a5aee90 added "net join" command
this completes the first stage of the smbd ADS support
-
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.
-
Martin Pool
32480d7aff Rename xmalloc, xmemdup, xstrdup to smb_$1 to avoid conflicts with the
versions defined by libreadline on SCO (!).
-
Martin Pool
79ec88f0da Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
-
Andrew Bartlett
83c2d79774 Return 1 (rather than 0) on failure. This may well help get the build farm
back into order, becouse its the inverse tests that are 'failing' - they get
error 0 back and think that we just let sombody in without a password and the
like.

Andrew Bartlett
-
Jim McDonough
43c384fa78 Remove xstrdup since it was added to lib/util.c. Caused compile failure -
Jeremy Allison
c2e06ed221 client : Fixed error return.
uid.c: Added missing void.
Jeremy.
-
Andrew Tridgell
076aa97bee added NTLMSSP authentication to libsmb. It seems to work well so I have enabled it by default if the server supports it. Let me know if this breaks anything. Choose kerberos with the -k flag to smbclient, otherwise it will use SPNEGO/NTLMSSP/NTLM -
Andrew Tridgell
ab7f67677a first step in converting the head branch to use lang_tdb.c instead
of gettext for internationalisation support. There is more to do
-
Andrew Tridgell
d330575856 initial kerberos/ADS/SPNEGO support in libsmb and smbclient. To
activate you need to:

- install krb5 libraries
- run configure
- build smbclient
- run kinit to get a TGT
- run smbclient with the -k option to choose kerberos auth
-
Simo Sorce
de70a56e04 ops, remove my test code, sorry.
fix some return codes missed in previous commit.
-
Simo Sorce
53b95b3c0f initial support to error report in smbclient, useful when using smbclient -c in scripts.
Thanks to Claudio Cicali aka FleXer for the initial patch
-
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. -
Christopher R. Hertel
14bfd9107a I told Jeremy at the CIFS conference that I would sort the command list
in smbclient.  Done.  I had a little trouble because the "!" command is
a special case and must be listed last.  Awkward.

Chris -)-----
-
Jeremy Allison
73ec939239 smbmount fixes from Urban.
Jeremy.
-
Simo Sorce
29db6ef7a7 move to SAFE_FREE() -
Simo Sorce
b7edd55885 introduce SAFE_FREE() macro as suggested by andreas moroder. -
Andrew Bartlett
5b369bce69 Fix compile warnings on IRIX's cc. -
Andrew Tridgell
f41c3bb80f declare dbf in one spot -
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.
-
Andrew Tridgell
160906b57d fixed typo -
Andrew Tridgell
0742342ec4 removed pointless parameter from readfile() -
Andrew Tridgell
266d8e6766 added "display charset" option in smb.conf, along with d_printf()
which should now be used instead of DEBUG(0) or printf() for
interactive messages

I have only converted client.c to use d_printf(), and the code hasn't
had much testing yet. Eventually we want all interactive code to use
d_printf(), plus SWAT
-
Andrew Tridgell
dcd6e735f7 the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work -
Andrew Tridgell
22b372f8a7 fixed handling of 139/445 in clients -
Andrew Tridgell
3eba9606f7 a bunch of fixes from the sflight to seattle
in particular:
 - fixed NT status code for a bunch of ops
 - fixed handling of protocol levels in ms_fnmatch
-
Simo Sorce
fa8e55b8b4 this is a big global fix for the ptr = Realloc(ptr, size) bug.
many possible mem leaks, and segfaults fixed.

someone should port this fix to 2.2 also.
-
Simo Sorce
7f33c01688 Change all realloc() statements to Realloc() (ecxept for tdb.c)
changed some code to exploit the fact that Realloc(NULL, size) == malloc(size)
fixed some possible mem leaks, or seg faults.

thanks to andreas moroder (mallocs not checked in client/client.c, client/smbumount.c)
-
Tim Potter
ad0cbfbd79 Changed instances of TRUE, FALSE to True, False as some compilers don't
have the first set of symbols.
-
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. -
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.
-
Jeremy Allison
8d1dab74c2 Applied Michael Sweet's patch, with one minor signal change.
Jeremy.
-
Andrew Tridgell
674ee2f1d1 next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
-
Andrew Tridgell
78f448b7d4 removed need for scandir in client.c
fixed possible bug with readdirname on systems with NAMELEN != strlen
-
Andrew Tridgell
5dac4cdee4 new mput code from idra that doesn't need a call to find -
Jeremy Allison
956201c4fb More gcc compile on solaris tidyups.
Jeremy.
-
Andrew Tridgell
67aa587eb2 a couple of minor merges from 2_2 -
Tim Potter
d05c3cf0f4 Getting medieval with compiler warnings as Jeremy puts it. -
Jeremy Allison
83aa762058 Fix from Tony Butt - shouldn't set got_pass for -c option.
Jeremy.
-
John Terpstra
8051406588 Patch from Mandrakesoft to ensure we close all files. -
Jeremy Allison
9b32b8a8cf To stop people complaining about the mktemp call, move it into lib/util.c. Thanks
to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke
XFS ACL code.
Jeremy.
-
Jeremy Allison
94747b4639 Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
-
Jeremy Allison
0c9a92a055 Fix for smbtar race condition from Glenn Burkhardt <glenn@aoi.ultranet.com>.
Jeremy.
-
Jeremy Allison
799e043ae3 Missed a cli_set_port on message code connect.
Jeremy.
-
Andrew Tridgell
386fdff2df added basic command completion support -
Andrew Tridgell
7940b6b0cf much simpler readline code
should work with readline 2.x
-