1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00
Commit Graph

1596 Commits

Author SHA1 Message Date
Gerald Carter
52c82b51ba r5578: get 'recurse; dir' working across multiple levels of dfs referrals
note that this does not handle the situation where the same \\server\share
is mounted mutliple times in the dfs tree since I store a single mount
path per struct cli_state *
2007-10-10 10:55:48 -05:00
Gerald Carter
d4443807bc r5577: get recurse; dir working across single level dfs referrals 2007-10-10 10:55:48 -05:00
Gerald Carter
3f5e52e908 r5560: make sure session setup message is displayed after changes to client.c 2007-10-10 10:55:47 -05:00
Gerald Carter
d6a05ffd66 r5545: move cli_cm_XXX() connection handling code to clidfs and out of client.c; client.c still maintains a pointer to the first connection so the change is fairly reansparent to other smbclient functions such as -L and -M 2007-10-10 10:55:46 -05:00
Gerald Carter
5d2624c453 r5542: fix a few more msdfs bugs in smbclient against both smbd and 2k dfs root
shares.
2007-10-10 10:55:46 -05:00
Gerald Carter
3c09b1f30f r5521: allow smbclient to follow multiple leveles of dfs referrals (no loop checking currently) 2007-10-10 10:55:44 -05:00
Gerald Carter
53d6a5f9d1 r5520: fix last remaining dfs issues with smbclient.
* all the unix extension commands should work
* send the correct TRANS2_FINDFIRST format to 2k to
  get a listing from a msdfs root share (tested against
  smbd as well).
* mkdir, rmdir, etc... all seem ok.

I'm sure bugs will pop up so keep testing.

Last thing I plan on doing is to clean up the horrible
mess with connection management in smbclient and global
variables (so i can move the cli_cm_xx() routines to a
separate file).
2007-10-10 10:55:44 -05:00
Gerald Carter
e57fd2c5f0 r5518: Add initial msdfs support to smbclient. Currently I can only
cd up and down the tree and get directory listings.

Still have to figure out how to get a directory listing on a
2k dfs root.  Also have to work out some issues with relative paths
that cross dfs mount points.

We're protected from the new code paths when connecting to
a non-dfs root share ( the flag from the tcon&X is stored
in the struct cli_state* )
2007-10-10 10:55:44 -05:00
Gerald Carter
0449756309 r5495: * add in some code from Mike Nix <mnix@wanm.com.au> for the SMBsplopen
and SMBsplclose commands (BUG 2010)
* clarify some debug messages in smbspool (also from Mike)

my changes:

* start adding msdfs client routines
* enable smbclient to maintain multiple connections
* set the CAP_DFS flag for our internal clienht routines.

I actualy have a dfs referral working in do_cd() but that code
is too ugly to live so I'm not checking it in just yet.
Further work is to merge with vl's changes in trunk to support multiple
TIDs per cli_state *.
2007-10-10 10:55:43 -05:00
Andrew Bartlett
5cb02b569b r5455: Remove bogus DEBUG messages (dump for a failure to parse NTLMSSP,
before trying the alternate format).

This only caused confusion and bug reports...

Andrew Bartlett
2007-10-10 10:55:40 -05:00
Gerald Carter
3fd86a1f9d r5432: compile fixes from Jason Mader <jason@ncac.gwu.edu> -- BUGS 2340 2007-10-10 10:55:40 -05:00
Gerald Carter
82c4e2f37f r5272: BUG 2132, 2134: patch from Jason Mader <jason@ncac.gwu.edu> to remove unused variables 2007-10-10 10:55:36 -05:00
Jeremy Allison
843e85bcd9 r4970: Fix for bug 2092, allowing fallback after kerberos and allow
gnome vfs to prevent auto-anonymous logon.
Jeremy.
2007-10-10 10:55:10 -05:00
Jeremy Allison
3d09c15d8f r4917: Merge some of Derrell.Lipman@UnwiredUniverse.com obvious fixes.
Added text explaining units in pdbedit time fields.
Jeremy.
2007-10-10 10:55:07 -05:00
Volker Lendecke
dc294c52e0 r4570: Replace cli->nt_pipe_fnum with an array of NT file numbers, one for each
supported pipe. Netlogon is still special, as we open that twice, one to do
the auth2, the other one with schannel.

The client interface is completely unchanged for those who only use a single
pie. cli->pipe_idx is used as the index for everything except the "real"
client rpc calls, which have been explicitly converted in my last commit. Next
step is to get winbind to just use a single smb connection for multiple pipes.

Volker
2007-10-10 10:53:47 -05:00
Jeremy Allison
efc1b688cf r4291: More *alloc fixes inspired by Albert Chin (china@thewrittenword.com).
Jeremy
2007-10-10 10:53:42 -05:00
Jeremy Allison
94779ccb39 r4212: Ensure we only look at the bottom bit of large_readx.
Set the 14 word version of write if size > 0xffff as
well as 64-bit offset.
Jeremy.
2007-10-10 10:53:37 -05:00
Jeremy Allison
9d4e57f06c r4188: Ensure we add in the upper length in the right place !
Jeremy.
2007-10-10 10:53:36 -05:00
Jeremy Allison
831cb21a87 r4186: Fix client & server to allow 127k READX calls.
Jeremy.
2007-10-10 10:53:36 -05:00
Jeremy Allison
620f2e608f r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
functions so we can funnel through some well known functions. Should help greatly with
malloc checking.
HEAD patch to follow.
Jeremy.
2007-10-10 10:53:32 -05:00
Jeremy Allison
6f6b4c61e0 r4020: Fix for crash reported by Bård Kalbakk <baard@inett.biz>.
Don't go fishing for the authorisation data unless we
know it's there.
Jeremy.
2007-10-10 10:53:28 -05:00
Jeremy Allison
b926480d05 r4005: Fix for bug #2071 reported by Jason Mader <jason@ncac.gwu.edu>.
Use correct enum type for comparisons.
Jeremy.
2007-10-10 10:53:27 -05:00
Jeremy Allison
8e979772a6 r3931: Fix all "may be used uninitialized" and "shadow" warnings.
Jeremy.
2007-10-10 10:53:25 -05:00
Jeremy Allison
eead77919b r3892: Fix "might be used uninitialized" error.
Jeremy.
2007-10-10 10:53:24 -05:00
Volker Lendecke
84ac54aef2 r3843: If a connection to a DC is requested, open connections simultaeneously to all
DCs found. The first one to reply wins.

Volker
2007-10-10 10:53:20 -05:00
Jeremy Allison
4d52bf7c8b r3714: Getfacl now seems to work on files and directories. Next do setfacl
and port to Samba4.
Jeremy.
2007-10-10 10:53:16 -05:00
Jeremy Allison
1bd3f13344 r3713: Implementation of get posix acls in UNIX extensions. Passes valgrind.
Need to add printout functions in client and set posix acl in server.
SteveF - take a look at this for the cifsfs client !
Once this is working and tested the next step is to write this up for
the UNIX extensions spec. documents.
Jeremy.
2007-10-10 10:53:16 -05:00
Jeremy Allison
34275bae78 r3538: Fix the build with the latest Heimdal code.
Jeremy.
2007-10-10 10:53:09 -05:00
Jeremy Allison
b08e3bf6fb r3535: Tidy up error reporting. Memory leak with MIT krb5 1.3.5 turns
out to be in the kerberos libraries, not in Samba. Now to test
with Heimdal.
Jeremy
2007-10-10 10:53:08 -05:00
Volker Lendecke
4c4da26aa1 r3525: Fix a memleak
Volker
2007-10-10 10:53:08 -05:00
Günther Deschner
05619cfdbf r3439: Finally fix build for platforms without kerberos.
Guenther
2007-10-10 10:53:07 -05:00
Volker Lendecke
b144ce557f r3407: Fix the build 2007-10-10 10:53:06 -05:00
Jeremy Allison
30b8807cf6 r3379: More merging of kerberos keytab and salting fixes from Nalin Dahyabhai <nalin@redhat.com>
(bugid #1717).
Jeremy.
2007-10-10 10:53:05 -05:00
Jeremy Allison
7565019286 r3377: Merge in first part of modified patch from Nalin Dahyabhai <nalin@redhat.com>
for bug #1717.The rest of the code needed to call this patch has not yet been
checked in (that's my next task). This has not yet been tested - I'll do this
once the rest of the patch is integrated.
Jeremy.
2007-10-10 10:53:05 -05:00
Jeremy Allison
eefb911d0c r3345: More MIT/Heimdal tests for comparing enctypes now.
Jeremy.
2007-10-10 10:53:05 -05:00
Jeremy Allison
c9b8049012 r3342: More MIT/Heimdal fixes to allow an enctype to be explicitly set in a krb5_creds
struct.
Jeremy.
2007-10-10 10:53:05 -05:00
Jeremy Allison
55d23cb253 r3294: Fix for SMB signing with 56-bit DES session keys. From Nalin Dahyabhai <nalin@redhat.com>.
Jeremy.
2007-10-10 10:53:04 -05:00
Gerald Carter
c7036f8246 r3264: fix lmhosts lookup so that we don't say we found something when we really didn't 2007-10-10 10:53:03 -05:00
Volker Lendecke
2af98ec054 r3143: Allow for multiple DC's to be named as #1c names in lmhosts.
Volker
2007-10-10 10:53:02 -05:00
Jeremy Allison
b35f48ad8e r3138: Fix from Sorin Manolache <sorinm@gmail.com> for memory leak.
Jeremy.
2007-10-10 10:53:01 -05:00
Richard Sharpe
3eb33fbc64 r2959: If we want to support writes >= 65536 with cli_write, then it had better
return a size_t, not an ssize_t, and we had better left shift the upper
part of the write count, not right shift it.
2007-10-10 10:52:57 -05:00
Günther Deschner
69b745fb98 r2942: Add client-side support of triggering ads printer publishing over msrpc
setprinter calls inside the net-tool.

This is usefull to mimic the same queries a windows-client does. At
least win2k returns WERR_IO_PENDING when printer is published via
setprinter, samba returns WERR_OK but this does not hurt.

Guenther
2007-10-10 10:52:57 -05:00
Tim Potter
1327d83d90 r2899: Change some #if DEBUG_PASSWORD's to #ifdef DEBUG_PASSWORD.
Bugzilla #1903.
2007-10-10 10:52:56 -05:00
Tim Potter
7f161702fa r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid of
'..' from all #include preprocessor commands.   This fixes bugzilla #1880
where OpenVMS gets confused about the '.' characters.
2007-10-10 10:52:55 -05:00
Tim Potter
588de0d4a8 r2834: Netapps can return NT_STATUS_ACCESS_DENIED when trying to return the
security descriptor for a file.  Return an error in this case instead
of panicing trying to unpack a zero length buffer.  Found by Brett
Funderburg.
2007-10-10 10:52:54 -05:00
Gerald Carter
316302ca4a r2770: oops; internal_resolve_name() should stay static in 3.0 2007-10-10 10:52:52 -05:00
Gerald Carter
57db8ca91f r2768: BUG 1519: save the hostname used in the open_printer_ex() for later reuse when filling in the spolss replies (also gets rid of get_called_name() 2007-10-10 10:52:52 -05:00
Jeremy Allison
8a7741dddf r2665: Ensure the UNIX info level returned enough data.
Jeremy.
2007-10-10 10:52:49 -05:00
Jeremy Allison
b25cc59641 r2651: Added 'stat' command to smbclient to exercise the UNIX_FILE_BASIC
info level. Outputs data on the file in the same format the the
stat command in Linux. Should be useful to people wanting to learn
how to parse the UNIX extension output.
Yes I will add the docs later :-).
Jeremy.
2007-10-10 10:52:48 -05:00
Jeremy Allison
fc51c97ea8 r2575: Return correct error codes on old SEARCH call (from Samba4 torture tester).
Jeremy.
2007-10-10 10:52:47 -05:00