1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

695 Commits

Author SHA1 Message Date
Simo Sorce
78581ad070 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-simo 2007-12-05 17:55:50 -05:00
Jeremy Allison
66e7e30b13 pstring removal.
Jeremy.
2007-12-05 14:55:08 -08:00
Simo Sorce
05bca093d1 Fix warning 2007-12-05 17:54:09 -05:00
Igor Mammedov
705f06a031 * helper source for handling cifs kernel module upcall for kerberos
authorization
* Added -c option to set service prefix to "cifs" in service principal by
default service prefix "host" is used
* replaced malloc/free/srtncpy with replacements from samba project

Signed-off-by: Igor Mammedov <niallain@gmail.com>
2007-12-05 14:33:29 -05:00
Jeremy Allison
905943137c More pstring removal.
Jeremy.
2007-12-04 18:47:20 -08:00
Jeremy Allison
750d26b7e9 Fix sample gtk code. Does this compile ?
Jeremy.
2007-12-04 18:24:19 -08:00
Jeremy Allison
cc257b71d1 Remove PSTRING_LEN from smbd/ nmbd/.
Remove pstring from libsmb/clidfs.c except for a nasty
hack (that will be removed when pstrings are gone from
client/).
Jeremy.
2007-11-29 17:25:41 -08:00
Jeremy Allison
b409f1c335 Ensure we have a talloc stackframe (found by Kukks).
Jeremy.
2007-11-20 17:54:01 -08:00
Jeremy Allison
f3bd5e828a Fix bug #4393 smbclient does not store files with zero filesize in tar-archives
from tometzky@batory.org.pl.
Jeremy.
2007-11-16 17:06:36 -08:00
Michael Adam
118fd6213d Fix for bug #4781: allow cleaning of /etc/mtab by canonicalizing mountpoint.
Canonicalize mountpoint by trimming trailing slashes before unmounting.
This allows for correct cleanup of /etc/mtab after unmounting.

Thanks to Steve Langasek <vorlon@debian.org>.

Michael
2007-11-16 22:26:26 +01:00
Jeremy Allison
1ea3ac8014 More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
2007-11-15 14:19:52 -08:00
Volker Lendecke
814bed029e Remove the silly "user_socket_options" global variable
This is better done with a 'lp_do_parameter(-1, "socket options", ..);
2007-11-09 15:11:54 +01:00
Jeremy Allison
7a1de5b44e Remove more pstring/fstrings.
Jeremy.
2007-11-08 18:50:07 -08:00
Jeremy Allison
255c2adf7b Remove the horror that was the global smb_rw_error.
Each cli struct has it's own local copy of this variable,
so use that in client code. In the smbd server, add one
static to smbd/proccess.c and use that inside smbd. Fix
a bunch of places where smb_rw_error could be set by
calling read_data() in places where we weren't reading
from the SMB client socket (ie. winbindd).
Jeremy.
2007-11-05 11:12:56 -08:00
Volker Lendecke
5b8ca7ebde Fix the smbmount build 2007-11-05 03:18:52 +01:00
Jeremy Allison
35aaa36f82 Remove more static data from lib/util_sock.c and
callers.
Jeremy.
2007-11-03 22:34:46 -07:00
Jeremy Allison
81ca5853b2 Change the client library to write directly out of
the incoming buffer in the non-signed case. Speeds
up writes by over 10% or so. Complete the server
recvfile implementation.
Jeremy.
2007-11-02 12:21:34 -07:00
Jeremy Allison
52f13d8495 Add printout of large read/write caps if detected.
Jeremy.
2007-10-31 14:12:50 -07:00
Jeremy Allison
2e92418a13 Change all occurrences of zero_addr(&ss,AF_INET) to
zero_addr(&ss). All current uses were always of the
AF_INET form, so simplify the call. If in the future
we need to zero an addr to AF_INET6 this can be
done separately.
Jeremy.
2007-10-27 20:29:36 -07:00
Jeremy Allison
9f82a57669 Fix zero_addr(&ip, INADDR_ANY); -> zero_addr(&ip, AF_INET)
from Volker's patch.
Jeremy.
2007-10-27 12:51:38 -07:00
Volker Lendecke
e17d3e10e8 Two patches
Hi!

Can you check and push them?

Thanks,

Volker

From b488af5905e2dee12a1a72a3b40801ae5c26f24f Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@sernet.de>
Date: Sat, 27 Oct 2007 14:20:09 +0200
Subject: [PATCH] Fix some warnings and errors
2007-10-27 12:50:36 -07:00
Jeremy Allison
98e154c312 This is a large patch (sorry). Migrate from struct in_addr
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
2007-10-24 14:16:54 -07:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Günter Kukkukk
29eb4d0e2d Latest ipv6 changes broke (deprecated) smbmount, smbmnt and smbctool
In addition some cleanup has been done to avoid compiler warnings.
2007-10-15 12:31:21 +02:00
Jeremy Allison
3f6bd0e1ec Add start of IPv6 implementation. Currently most of this is avoiding
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
2007-10-10 18:25:16 -07:00
Gerald (Jerry) Carter
5c6c8e1fe9 [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch. 2007-10-10 15:34:30 -05:00
Steve French
0202a84e3f r25355: IP address parsing did not allow for fully expanded ipv6 addresses
(which can be 12 bytes longer than we were allowing for).

Thanks to Dr. David Holder
2007-10-10 12:31:00 -05:00
Volker Lendecke
1a02226700 r25169: Fix bug 4028 2007-10-10 12:30:48 -05:00
Lars Müller
12cb06d6ad r24601: Fix if statements where we still expected cli_connect() to return BOOL. 2007-10-10 12:30:09 -05:00
Volker Lendecke
4863ff2899 r24223: Convert reply_echo to the new API 2007-10-10 12:29:17 -05:00
Jeremy Allison
cd66c133a1 r24036: Fix dfs rename bug in smbclient reported by Thomas Bork <tombork@web.de>.
Couldn't rename file as we weren't DFS enabling the target path.
Jeremy.
2007-10-10 12:28:58 -05:00
Volker Lendecke
4cdfc88754 r23989: For testing purposes, add "echo" to smbclient 2007-10-10 12:28:52 -05:00
Günther Deschner
c254c5e254 r23825: Add ".." command as an alias to "cd ..".
Guenther
2007-10-10 12:28:30 -05:00
Günther Deschner
cdec09956c r23824: Add ls alias for lazy typers like me.
Guenther
2007-10-10 12:28:30 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Volker Lendecke
4896b4ee55 r23596: Add notes about smbfs/cifs to usage() in smb[u]mount 2007-10-10 12:23:34 -05:00
Simo Sorce
d2846e6b90 r23571: Fix, parsing of multi byte share names.
Thanks to SATOH Fumiyasu
Fixes 4720

Jerry,
this is a showstopper for 3.0.25b, please grab it into
SAMBA_3_0_RELEASE before cuting the tarballs.

Simo.
2007-10-10 12:23:30 -05:00
Volker Lendecke
f2050f5a3a r23567: Fix bug 4721 2007-10-10 12:23:30 -05:00
Jeremy Allison
073fdc5a58 r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.
Long overdue fix....
Jeremy.
2007-10-10 12:23:28 -05:00
Simo Sorce
9dcbef9615 r23527: Use existing escaping function pointed by James 2007-10-10 12:23:25 -05:00
Simo Sorce
54ca011212 r23524: Fix bug 2319.
Got report this is all ok form a tester. Close a loong
standing bug preventing people to freely use any character
in their password when printing via cups were involved.
2007-10-10 12:23:25 -05:00
Steve French
500d9236c4 r22982: Do not prompt for password on sec=none for mount.cifs (and allow guest
option to pass to kernel code so it can know when to retry)
2007-10-10 12:22:13 -05:00
Steve French
c8aa60692b r22979: Revert previous checkin (which had some debug junk) and fix misc frees that
valgrind noticed
2007-10-10 12:22:13 -05:00
Steve French
9af97d8ead r22779: Patch for not prompting for password on cifs mounts when "sec=none"
specified
2007-10-10 12:21:56 -05:00
Steve French
4616c29b9f r22560: Clean up frees of realloc memory in mount.cifs (thanks to Alex for
reminding me how to use Valgrind).
2007-10-10 12:19:45 -05:00
Steve French
0548dea6c7 r22526: Support deep tree mounts after share (instead of having to specify
prepath)
2007-10-10 12:19:42 -05:00
Jeremy Allison
7b89a5de57 r22354: Make client select krb5 encrpyt if krb5 already on.
Jeremy.
2007-10-10 12:19:28 -05:00
Jeremy Allison
f1b22c9527 r22155: Fixed warning #4498 from jason@ncac.gwu.edu.
Jeremy.
2007-10-10 12:19:17 -05:00