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

360 Commits

Author SHA1 Message Date
Jeremy Allison
e57853000a Sorry Jim we can't assign to global_xxx(), we need to call set_global_xxx()
to ensure the malloc is done.
Jeremy.
-
Jim McDonough
5170a9f7ff Bring smbmount.c in line with jra's global-cide. global_scope was used here... -
Jeremy Allison
82b8f749a3 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.
-
Andrew Bartlett
7501b2a518 Kill append_log from smbmount (thanks vance for reminding me).
Andrew Bartlett
-
Jelmer Vernooij
fdd70614d2 Move testsmbc.c to examples -
Jelmer Vernooij
59ecac901a Don't encourage people to use -P - it's obsolete -
Jeremy Allison
b521abd86b Added new error codes. Fix up connection code to retry in the same way
that app-head does.
Jeremy.
-
Andrew Bartlett
cd41e5ab85 Patch from Steve Langasek <vorlon@netexpress.net> to use nice big integers when
attempting to calculate the bytes/second being transferred.  (Avoid overflow
etc)

Andrew Bartlett
-
Richard Sharpe
d83cae2bbd Make sure that variable does not shadow a parameter. -
Richard Sharpe
1e4ac9615d Commit a fix to smbclient so that it will connect to EMCs and NetApp's machines. -
Tim Potter
0ad19825df Don't uppercase the username and domain in a session setup. -
Volker Lendecke
99017e887e Fixed a little, long standing bug: smbclient -M <name> should resolve
name#03, not name#20.

Volker
-
Simo Sorce
cb0ed2faa5 fix wrong check -
Jeremy Allison
03c49b2e51 Remove strsep - non portable.
Jeremy.
-
Simo Sorce
b275547c9e add a trivial seeking function to xfile (tseek) that does not do SEEK_CUR
and add commands reget and reput to smbclient that continues a transfer that has been onterrupted.

thanks to josef Zlomek that did the original patch.
-
Simo Sorce
fb32fd99b9 fix typos
thanks Josef Zlomek
-
Andrew Bartlett
e57a896f06 Fix the %m security bug again - and try to make it harder to reintroduce in
future.

This moves us from fstrcpy() and global variables to 'get' and 'set' functions.

In particular, the 'set' function sainity-checks the input, in the same way as
we always have.

Andrew Bartlett
-
Andrew Tridgell
e2558baa32 fix for smbtar filename matching
samba-patches 852
-
Andrew Bartlett
3118115876 Looks like I missed this earlier. We should connect as the specified workgroup
- sombody using smbspool won't always have a full smb.conf, and this is how it
was written in the first place anyway.

Again, found by the IRIX compiler.

Andrew Bartlett
-
Andrew Bartlett
30d0998c8c More fixes towards warnings on the IRIX compiler
(and yes, some of these are real bugs)

In particular, the samr code was doing an &foo of various types, to a function
that assumed uint32.  If time_t isn't 32 bits long, that broke.

They are assignment compatible however, so use that and an intermediate
variable.

Andrew Bartlett
-
Andrew Bartlett
62c56f9724 Make smbmnt a standalone program from a linker point of view. Hopefully this
will make it easier to prove this package correct from an audit point of view.

smbumount to follow, but it uses pstrcpy() so I'll need to decide what to do
with that.

Andrew Bartlett
-
Andrew Tridgell
66af95716d - fixed a crash bug for 'print -'
- removed an unused variable
-
Andrew Tridgell
922ab73c3c fixed a prototype problem in client.c -
Andrew Tridgell
91ad9041e9 used findstatic.pl to make some variables static and remove some dead
code
-
Andrew Bartlett
23689b0746 Update cli_full_connection() to take a 'flags' paramater, and try to get a
few more places to use it.

Andrew Bartlett
-
Andrew Bartlett
fa0037a294 And another .cvsignore -
Andrew Bartlett
edb41dad2d Break up samba's object dependencies, and its prototype includes.
Now smbclient, net, and swat use their own proto files - now the global
proto.h

The change to libads/kerberos.c was to break up the dependency on secrets.c -
we want to be able to write an ADS client that doesn't need local secrets.

I have other breakups in the works - I will remove the dependency of
rpc_parse on passdb (and therefore secrets.c) shortly.

(NOTE:  This patch does *not* break up includes.h, or other such forbidden
actions).

Andrew Bartlett
-
Gerald Carter
73ba155a6b removed compiler warning -
Andrew Bartlett
b04561d3fd This removes --with-ssl from Samba.
This option was badly maintained, useless and confused our users and
distirbutors.  (its SSL, therfore it must be good...)

No windows client uses this protocol without help from an SSL tunnel.

I can't see any reason why setting up a unix-side SSL wrapper would
be any more difficult than the > 10 config options this mess added
to samba in any case.

On the Samba client end, I think the LIBSMB_PROG hack should be
sufficient to start stunnel on the unix side.  We might extend this
to take %i and %p (IP and port) if there is demand.

Andrew Bartlett
-
Gerald Carter
d3388d1953 segfault fix merged from SAMBA_2_2 -
Tim Potter
a3cea5e9ae getpid() -> sys_getpid() -
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.
-
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
-
Martin Pool
91e8cb7662 Doc. -
Martin Pool
1cd431b8f1 Make the -L option to smbclient slightly less gross:
smbclient -L //nautilus1/

should definitely not say "unknown host "nautilus1/".  Sheesh.
-
Simo Sorce
6b123adda9 fixes (asprintf) from 2.2 -
Andrew Bartlett
d123d79060 Move the bang (!) command back to the bottom of the list, allowing smbclient
to function again.

Add comment to warn anybody that wants to 'Alphabetize' the list to read crh's
existing comment on the issue.

Andrew Bartlett
-
Jeremy Allison
64301bc5f7 Alphabetize.
Jeremy.
-
Jeremy Allison
794c3e2c76 Added CIFS UNIX extension code to client.
Jeremy.
-
Martin Pool
934aacdb39 browse_fn: FIXME: If the remote machine returns non-ascii characters
in any of these fields, they can corrupt the output.  We
	   should remove them.
-
Martin Pool
5f6feb55d7 FIXME: At the moment, if the user should happen to give the options
ahead of the service name (in standard Unix fashion) then smbclient
just spits out the usage message with no explanation of what in
particular was wrong.  Is there any reason we can't just parse out the
service name and password after running getopt??
-
Herb Lewis
39d6b31e14 merge changes from 2.2 branch to prevent smb.conf from changing debug level
of commands when specified on command line.
-
Andrew Bartlett
2c09907b53 One line fix to get smbmount working again.
This just turns of SPNGO becouse Win2k breaks if you attempt this and DOS
errors at the same time.

Andrew Bartlett
-
Andrew Tridgell
20368455ea - handle kerberos session setup reply with broken null termination
- don't display Domain=[] for auth protocols that don't give us a domain
-
Jeremy Allison
0bea6cf79a Removed global debugf. Replaced with lp_set_logfile(name).
Fixed winbindd to finally stop leaving log. file droppings :-).
Jeremy.
-
Jeremy Allison
e943ace4f0 Fix for extra capabilities from Urban Widmark <urban@teststation.com>.
Jeremy.
-
Jeremy Allison
5700cbbd3f Patch from dan_thibadeau@hp.com to allow domain set in authfile.
Jeremy.
-
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);
-