1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-21 01:59:07 +03:00

1891 Commits

Author SHA1 Message Date
Andrew Tridgell
252b52091c some changes in smbtorture as a result of clientgen interface changes
for smbwrapper

note that Lukes client changes broke smbtorture. This doesn't fix it,
but at least I didn't break it more than it was.
-
Andrew Tridgell
3f34a3cac8 the guts of the smbwrapper code. I may change the layout of this at
some stage.
-
Andrew Tridgell
9bae21abaf several clientgen mods to support smbwrapper. In particular added
cli_list() for directory listing and expended some other functions a
bit.
-
Andrew Tridgell
688d19de50 added sys_getwd() -
Andrew Tridgell
1dcefb3f8e use sys_stat() not file_exist() for codepages. (we don't want dos
translation!)
-
Andrew Tridgell
07dd2aedf1 a couple of mode for smbwrapper -
Andrew Tridgell
686182eb71 makefile support for smbwrapper
dosn't compile by default. You need to do "make smbwrapper/smbwrapper.so"
-
Andrew Tridgell
f15ece5316 got rid of USE_FILES_ARRAY code (it was unused) -
Jeremy Allison
c42fb702b7 Fixed *nasty* bug in nt_lm_owf_gen() - this function was
not ensuring a zero filled buffer before doing crypto stuff.
See PR#10121. Beware of this !
Jeremy.
-
Richard Sharpe
351b9a0f8b Fix another possibly unitialized variable ... -
Jeremy Allison
740784f9cf Implemented directory-relative opens for NT opens.
Jeremy.
-
Luke Leighton
299a723d4e lsa_lookup_sids command added. severe debugging needed on lookup_sids
code.  added "quality of service" capability to lsa_open_policy code.

different lsa_open_policy queries are *not* dealt with in the server code.
answers like "0xC000 0022" - access denied - will have to be made to
lsa_lookup_sids calls when a "quality of service" request is *not* specified
in the lsa_open_policy call.
-
Andrew Tridgell
a655a8a051 set the default fstype for IPC$ to "IPC". I'm not sure if this will
make any difference, but it is the right thing to do.
-
Jeremy Allison
dba55b2d34 Upped default MAX_OPEN_FILES to 10000 after conversation with tridge.
As we're only using 1 bit per fd when idle it doesn't matter too much....
Jeremy.
-
Michael Warfield
3459541abc Removed a redundant include for "includes.h"
Cleaned up a prototype warning message.
smbumount.c now compiles warning free.
-
Jeremy Allison
eca24bd243 (Finally) implemented "max open files" as a global smb.conf parameter.
Sets up the files array correctly - limited by the smb.conf parameter
and by the max fd's per process as found by getrlimit().
Jeremy.
-
Jeremy Allison
6a261517a0 libsmb/clientgen.c: Fixed signed/unsigned compile warnings spotted by Herb.
param/loadparm.c:
smbd/oplock.c: Allow kernel oplocks to be turned off in the smb.conf file.
smbd/server.c: Move init_structs() to after the smb.conf file is loaded - preparation
               for making a "max open files" parameter.
Jeremy.
-
Jeremy Allison
60c2278e8c Fixed uid->vuid confusion in smbmount (hopefully).
Jeremy.
-
Jeremy Allison
6c08f3b81c Fixed extern definition of cnum in clitar.c
Jeremy
-
Jeremy Allison
e9b7ff0dec Fixed warning in get_time_from_string().
Jeremy.
-
Jeremy Allison
e570db46fc Got very strict about the differences and uses of
uid_t, gid_t and vuid. Added sys_getgroups() to get
around the int * return problem. Set correct datatypes
for all uid, gid and vuid variables.
Jeremy.
-
Luke Leighton
b40a4e6385 missed the pdb_sam_to_smb function needed by nispass.c -
Luke Leighton
5212dd69d0 added in some pdb_xxx routines that are needed by nispass.c -
Luke Leighton
1a1d8d0483 uchar / char typecast issues -
Jeremy Allison
7958787d9b Missed one removed multi-statement line. Grrr.
Jeremy.
-
Jeremy Allison
ea3ab46f12 Fixed bug introduced by me in dead code elimination.
Bug was caused by multiple C statements on a line.
IMHO this is a *BUG* and will be treated as such....
Fixed all such multiple statements in this file.
Jeremy.
-
Alexandre Oliva
078a4b564f added stamp-h -
Alexandre Oliva
796475ad5a fix directory creation mechanism; the optimized version would not work :-( -
Alexandre Oliva
87b3e4347a optimize creation of directories in build tree
ensure that bin exists when needed
-
Alexandre Oliva
90a8a02484 get away with dummy and .dummy files -
Alexandre Oliva
fe5721b952 added WITH_SMBMOUNT -
Richard Sharpe
b665756bfc Now have a better solution to the need to have smblcient find
a WINS server if running on the WINS server.  As suggested by
Andrew, we have a flag, in_client=False by default, and set it
to True in the client.  loadparam.c checks this and sets
szWINSserver to 127.0.0.1 when in_client && bWINSsupport.

BTW, we seem to have picked up and unused value in some of
Luke's new code.
-
Jeremy Allison
14ee57f336 Fixed stupid bug with "cd /" appending a "/" character to the path forever....
Jeremy.
-
Andrew Tridgell
16b6c3e852 got rid of the memcpy() prototype and used includes.h instead.
gcc has a built-in memcpy which conflicts with the prototype.
-
Jeremy Allison
3fd28812f7 Fixed problems found in lint pass over the old code by <cpeterso@microsoft.com>.
These were the problems that still existed in the 2.0 branch.
Jeremy.
-
Herb Lewis
2c6bbc2da7 idb.pl add new argument to call to installcp.sh
mkrelease.sh  use distclean target when cleaning before making packages
-
Jeremy Allison
71ab5c367c Added fix from gildea@intouchsys.com - smbpasswd file could be left
locked.
Jeremy.
-
Jeremy Allison
e0567433bd Changes to test in configure if capabilities are enabled on a system.
Changes to get Samba to compile cleanly with the IRIX compiler
with the options : -fullwarn -woff 1209,1174 (the -woff options
are to turn off warnings about unused function parameters and
controlling loop expressions being constants).
Split prototype generation as we hit a limit in IRIX nawk.
Removed "." code in smbd/filename.c (yet again :-).
Jeremy.
-
Michael Warfield
8a4730f619 Two changes in this ball...
1) Changes to smbmnt.c, smbmount.c, and smbumount.c allow them to compile on
both RedHat 4.x (libc 4.x) systems and RedHat 5.x (glibc 2) systems.

2) Changes to Makefile.in and configure.in (and subsequently configure) are to
configure for smbmount, smbumount, and smbmnt to compile.

This adds a "--with(out)-smbmount" option to configure.  Sanity checking is
not present yet.  You can specify this if you are not on linux, it just
won't compile.
-
Andrew Tridgell
270f4b0f84 made bad boolean values stand out a little better -
Andrew Tridgell
c11f1b9293 fixed the docs for "domain controller" parameter. -
Richard Sharpe
edfc3ab99b Backed out that just as ill-considered change :-(
A more careful change will be needed in the name lookup code.
-
Richard Sharpe
17212991cf The previous fix for WINS on the WINS server was wrong. It
caused nmbd to exit :-(

We now set the variable szWINSserver after the smb.conf file
has been processed, but only of we are a WINS server.
-
Richard Sharpe
a343998666 Make sure that WINS Server = 127.0.0.1 in case we
do not set a value in smb.conf.

This will be the case if we are a WINS server, or if
we don't know what we are doing.

The result is that smbclient can access a WINS server if it
is running on the same machine as the WINS server
-
Alexandre Oliva
237a8e5fe6 automated generation of .dummy files for each subdirectory;
dummy.in files are no longer needed, and new directories will be taken
care of automatically, at configure (or config.status --recheck) time
-
Alexandre Oliva
dc21f6c982 wait_keyboard must still be defined if readline is not available -
Richard Sharpe
2456c95c16 Fixed up more possibly uninitialized variables.
Now only two compilation warnings seem to be left.

Luke may want to check the changes I made.
-
Andrew Tridgell
410d54fa0d changed the default filesystem type to NTFS (from Samba)
I've finally changed this because I've found a real effect that this
has. Win95 shows long filenames in a directory listing in a dos box
only if this is set to NTFS or HPFS (only ones I've found so far
anyway).

If NTFS poses problems of some kind then we should try HPFS

I wonder if this change will trigger any attempts to use ACLs ?
-
Jeremy Allison
bdc3d9f52f Fixed the problem with reply_getatr() being passed a "" name in reply_getatr,
replaced the paranoid code in smbd/filename.c that replaces a "" with a ".".
I am starting to think this code may well be needed.
Jeremy.
-
Jeremy Allison
548634915f Added Kerberos4 support patches from Johan Hedin <johanh@fusion.kth.se>
Jeremy.
-