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

305 Commits

Author SHA1 Message Date
Andrew Bartlett
015aa4244b 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
(This used to be commit 83c2d79774)
2001-11-02 11:31:49 +00:00
Jim McDonough
11d830c533 Remove xstrdup since it was added to lib/util.c. Caused compile failure
(This used to be commit 43c384fa78)
2001-10-24 17:58:03 +00:00
Jeremy Allison
b49b5b9481 client : Fixed error return.
uid.c: Added missing void.
Jeremy.
(This used to be commit c2e06ed221)
2001-10-19 00:02:36 +00:00
Andrew Tridgell
9f7cb41f11 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
(This used to be commit 076aa97bee)
2001-10-12 04:49:42 +00:00
Andrew Tridgell
8cec5cf35f first step in converting the head branch to use lang_tdb.c instead
of gettext for internationalisation support. There is more to do
(This used to be commit ab7f67677a)
2001-10-11 08:40:42 +00:00
Andrew Tridgell
81f56139b6 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
(This used to be commit d330575856)
2001-10-11 07:42:52 +00:00
Simo Sorce
e1e689debc ops, remove my test code, sorry.
fix some return codes missed in previous commit.
(This used to be commit de70a56e04)
2001-10-10 07:51:20 +00:00
Simo Sorce
52341e94a8 initial support to error report in smbclient, useful when using smbclient -c in scripts.
Thanks to Claudio Cicali aka FleXer for the initial patch
(This used to be commit 53b95b3c0f)
2001-10-09 19:12:18 +00:00
Tim Potter
dc1fc3ee8e Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.
(This used to be commit 2d0922b0ea)
2001-10-02 04:29:50 +00:00
Christopher R. Hertel
9a22ac94a4 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 -)-----
(This used to be commit 14bfd9107a)
2001-09-30 06:49:44 +00:00
Jeremy Allison
b54692bea7 smbmount fixes from Urban.
Jeremy.
(This used to be commit 73ec939239)
2001-09-20 21:06:02 +00:00
Simo Sorce
77bdea1b95 move to SAFE_FREE()
(This used to be commit 29db6ef7a7)
2001-09-17 00:52:47 +00:00
Simo Sorce
e2d393bd24 introduce SAFE_FREE() macro as suggested by andreas moroder.
(This used to be commit b7edd55885)
2001-09-17 00:47:40 +00:00
Andrew Bartlett
b0c3915d5e Fix compile warnings on IRIX's cc.
(This used to be commit 5b369bce69)
2001-09-16 08:29:03 +00:00
Andrew Tridgell
b12a4dd9b6 declare dbf in one spot
(This used to be commit f41c3bb80f)
2001-09-10 12:14:18 +00:00
Andrew Tridgell
b30e75692d 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.
(This used to be commit 1af8bf34f1)
2001-09-10 11:08:57 +00:00
Andrew Tridgell
381b245d79 fixed typo
(This used to be commit 160906b57d)
2001-09-09 03:18:23 +00:00
Andrew Tridgell
444a01d265 removed pointless parameter from readfile()
(This used to be commit 0742342ec4)
2001-09-09 02:43:30 +00:00
Andrew Tridgell
5573a1c739 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
(This used to be commit 266d8e6766)
2001-09-07 14:14:57 +00:00
Andrew Tridgell
19fea3242c the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but the client code still needs some work
(This used to be commit dcd6e735f7)
2001-09-04 07:13:01 +00:00
Andrew Tridgell
464237cdb8 fixed handling of 139/445 in clients
(This used to be commit 22b372f8a7)
2001-08-24 20:11:09 +00:00
Andrew Tridgell
11ce0f4d2d 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
(This used to be commit 3eba9606f7)
2001-08-20 05:15:26 +00:00
Simo Sorce
2e783a4707 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.
(This used to be commit fa8e55b8b4)
2001-08-12 17:30:01 +00:00
Simo Sorce
2f844bf447 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)
(This used to be commit 7f33c01688)
2001-08-08 16:54:16 +00:00
Tim Potter
afa7300006 Changed instances of TRUE, FALSE to True, False as some compilers don't
have the first set of symbols.
(This used to be commit ad0cbfbd79)
2001-07-12 22:27:00 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b 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.
(This used to be commit debb471267)
2001-07-04 07:15:53 +00:00
Jeremy Allison
6daea198a8 Applied Michael Sweet's patch, with one minor signal change.
Jeremy.
(This used to be commit 8d1dab74c2)
2001-07-03 00:52:56 +00:00
Andrew Tridgell
91b8a8d1d2 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
(This used to be commit 674ee2f1d1)
2001-06-21 09:10:42 +00:00
Andrew Tridgell
9d5348c758 removed need for scandir in client.c
fixed possible bug with readdirname on systems with NAMELEN != strlen
(This used to be commit 78f448b7d4)
2001-05-07 05:19:52 +00:00
Andrew Tridgell
a636c642b5 new mput code from idra that doesn't need a call to find
(This used to be commit 5dac4cdee4)
2001-05-07 01:51:56 +00:00
Jeremy Allison
8f11c24b74 More gcc compile on solaris tidyups.
Jeremy.
(This used to be commit 956201c4fb)
2001-04-27 22:42:10 +00:00
Andrew Tridgell
d3e438d54f a couple of minor merges from 2_2
(This used to be commit 67aa587eb2)
2001-04-22 03:16:04 +00:00
Tim Potter
af08cd21eb Getting medieval with compiler warnings as Jeremy puts it.
(This used to be commit d05c3cf0f4)
2001-04-16 02:35:35 +00:00
Jeremy Allison
c9f2c1fc5e Fix from Tony Butt - shouldn't set got_pass for -c option.
Jeremy.
(This used to be commit 83aa762058)
2001-04-15 20:40:08 +00:00
John Terpstra
548ca26bd5 Patch from Mandrakesoft to ensure we close all files.
(This used to be commit 8051406588)
2001-04-14 18:39:32 +00:00
Jeremy Allison
6578fd8742 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.
(This used to be commit 9b32b8a8cf)
2001-04-11 23:19:08 +00:00
Jeremy Allison
f9a15ce1a6 Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
(This used to be commit 94747b4639)
2001-04-08 20:22:39 +00:00
Jeremy Allison
4e35283a8b Fix for smbtar race condition from Glenn Burkhardt <glenn@aoi.ultranet.com>.
Jeremy.
(This used to be commit 0c9a92a055)
2001-03-26 22:34:25 +00:00
Jeremy Allison
7adb11393e Missed a cli_set_port on message code connect.
Jeremy.
(This used to be commit 799e043ae3)
2001-03-26 22:28:12 +00:00
Andrew Tridgell
e17e7b6417 added basic command completion support
(This used to be commit 386fdff2df)
2001-03-19 00:22:52 +00:00
Andrew Tridgell
bc25293f96 much simpler readline code
should work with readline 2.x
(This used to be commit 7940b6b0cf)
2001-03-18 23:41:53 +00:00
Andrew Tridgell
9c4927d362 much better readline support from Simo Sorce, with some mods from me
to make it a bit simpler
(This used to be commit e1487eb2c4)
2001-03-18 13:24:57 +00:00
Jeremy Allison
5b45f4a6a6 Updates for CUPS 1.1 from Michael Sweet.
Jeremy.
(This used to be commit 4e76f33869)
2001-03-16 19:17:04 +00:00
Jeremy Allison
a9855dedea Sync up Urbans changes from 2.2 into HEAD.
Jeremy.
(This used to be commit d0fcd91443)
2001-03-10 19:50:36 +00:00
Jeremy Allison
00ab9021b0 Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.
We were reading the endainness in the RPC header and then never propagating
it to the internal parse_structs used to parse the data.
Also removed the "align" argument to prs_init as it was *always* set to
4, and if needed can be set differently on a case by case basis.
Now ready for AS/U testing when Herb gets it set up :-).
Jeremy.
(This used to be commit 0cd37c831d)
2001-03-09 23:48:58 +00:00
Richard Sharpe
632ed01166 Fixes to testsmbc to ensure it will compile on SGI ...
(This used to be commit ad3a21b281)
2001-03-09 03:59:45 +00:00
Andrew Tridgell
4d6e45e41b the -m option to the client is back
(This used to be commit 69c13434f6)
2001-02-25 23:45:06 +00:00
Richard Sharpe
b206b16cb3 Fix a small problem where tree.c was using the creation time to display, rather than modification time. Creation time is not returned by the SMB protocol.
(This used to be commit d7f3793a2b)
2001-02-20 04:40:49 +00:00
Richard Sharpe
0ea6c2473b Improve the sample GTK+ client program to make it a bit more functional.
(This used to be commit 3e8366c58c)
2001-02-19 02:19:03 +00:00