1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-24 13:57:43 +03:00

388 Commits

Author SHA1 Message Date
Jelmer Vernooij
10c2fe08b6 Convert to popt. -
Andrew Bartlett
fe2bc64bc4 - Make ReadDirName return a const char*.
- Consequential changes from that

 - mark our fstring/pstring assumptions in function prototypes

Andrew Bartlett
-
Steve French
a55acfd7a2 Checkin cifs vfs for Linux mount helper -
Andrew Bartlett
4b1337ee94 If the server went away, don't segfault by attempting to FD_SET -1.
Andrew Bartlett
-
Andrew Bartlett
afe5a3832f Make sure that the 'remote' machine name can only be set once. For some weird
reason, during a Win2003 installation, when you select 'domain join' it sends
one machine name in the name exchange, and litraly 'machinename' during the
NTLMSSP login.

Also fix up winbindd's logfile handling, so that it matches smbd and nmbd.

(This helps me, by seperating the logs by pid).

Andrew Bartlett
-
Steve French
b20bcf8d33 Add early prototype of cifs mount helper for Linux -
Andrew Bartlett
42b5514404 More safe_strcpy() off-by-one bug fixes. (mostly moves to pstrcpy()/fstrcpy())
Andrew Bartlett
-
Richard Sharpe
c416eec2f2 Do my janitorial duties to encourage others to do so.
Fix lingering large offset problems in smbtar etc.
-
Tim Potter
f4492de2d6 Fix breakage done by myself yesterday. -
Tim Potter
923425e497 Fixed up some const related compiler warnings. -
Andrew Bartlett
1a723bcda7 The cli_send_tconX code already determines to send \\server\share to port 139
and share to 445, so doing this only confuses the issue (sending
\\server\\server\share to 139) and makes debugging specific error codes more
difficult.

Andrew Bartlett
-
Simo Sorce
4a3c6c62d9 fix dumb perror used without errno beeing set.
thanks to RedHat developers for the report
-
Andrew Bartlett
ce52f1c2ed Antti Andreimann <Antti.Andreimann@mail.ee> has done some changes to enable
users w/o full administrative access on computer accounts to join a
computer into AD domain.

The patch and detailed changelog is available at:
http://www.itcollege.ee/~aandreim/samba

This is a list of changes in general:

1. When creating machine account do not fail if SD cannot be changed.
   setting SD is not mandatory and join will work perfectly without it.
2. Implement KPASSWD CHANGEPW protocol for changing trust password so
   machine account does not need to have reset password right for itself.
3. Command line utilities no longer interfere with user's existing
   kerberos ticket cache.
4. Command line utilities can do kerberos authentication even if
   username is specified (-U). Initial TGT will be requested in this case.

I've modified the patch to share the kinit code, rather than copying it,
and updated it to current CVS.  The other change included in the original patch
(local realms) has been left out for now.

Andrew Bartlett
-
Alexander Bokovoy
4463ffeed9 Fix typo in WIFSIGNALED (as per Waider's report) -
Martin Pool
fe5582c1b2 waitstatus audit: Correctly handle case where smbmnt is killed by a
signal.  Previously this was incorrectly treated as success.
-
Jeremy Allison
45d4e58ca5 Samba janitors: applying mbp's redundant umask fix.
Jeremy.
-
Tim Potter
22d7aa0e67 smb signing compile fix -
Andrew Bartlett
b1c722e306 More signing updates - start checking that the server isn't being spoofed.
Andrew Bartlett
-
Martin Pool
a580283308 Add FIXME about dodgy argument parser. -
Gerald Carter
251585142b s/WIFSIGNALLED/WIFSIGNALED/g -
Martin Pool
1e33083fe6 One more from waitpid() audit: Correctly interpret waitstatus when a
child fails.  Possibly this was causing smbmount to exit(0) when it
really should have indicated a failure.
-
Andrew Bartlett
fe1cc779d5 Fix a number of client-side fstring/pstring mixups.
Andrew Bartlett
-
Christopher R. Hertel
02986f3e3a Added code to the handling of the -M option to ensure that we default to
port 139 for that option.  The NetBIOS Messenger Service doesn't run on
a non-NBT port.
-
Andrew Bartlett
92a777d0ea BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
-
Herb Lewis
723c4caf64 merge from 2.2 fix for smbclient large files -
Herb Lewis
f3b994326e merge smbtar fixes from 2.2 -
Herb Lewis
c53e10ff87 fix stat reporting on put command -
Andrew Bartlett
49d9698ef0 Link less with smbmnt and smbumount. Also change from a pstrcpy() to a
strncpy() to make it clear that we must operate on a PATH_MAX sized buffer.

Andrew Bartlett
-
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
-