1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

752 Commits

Author SHA1 Message Date
Luke Leighton
1a9a22c657 rpcclient srvsvc commands. -
Andrew Tridgell
0a733ce59d new prototypes -
Andrew Tridgell
a5405f1ab0 got smbwrapper working on IRIX 6.4. Things got a bit tricky,
especially as the headers get the syscall numbers wrong!
-
Andrew Tridgell
8aa6c16eeb test for creat64() -
Andrew Tridgell
3860269305 test for loff_t and offset_t to support llseek() on Solaris and Linux. -
Alexandre Oliva
f604fd1a8b revert 64-bit file support; it's hard-coded already -
Alexandre Oliva
43ec91ac1f added 64-bit file support -
Andrew Tridgell
2087e0ce89 added pread pread64 pwrite pwrite64 and open64 -
Andrew Tridgell
7a7b5ee168 added a function set_maxfiles() to set our file rlimit to the max
possible and return the max.
-
Andrew Tridgell
bdf02378c6 tests for readdir64 -
Andrew Tridgell
32695b1606 reran autoconf -
Alexandre Oliva
8f95ee8fc3 bin/cvsignore: deleted, so that bin can be removed from the repository
.cvsignore: added bin; it is no longer part of the source tree

smbwrapper/smbsh: now auto-generated from smbsh.in
smbwrapper/.cvsignore: added smbsh

configure.in: generate @builddir@
configure, include/stamp-h.in: regen

Makefile.in: new target `smbwrapper'; sped up directory creation
-
Andrew Tridgell
c4e4508178 more solaris 2.5 fixups. It now seems to be working pretty well. -
Andrew Tridgell
e5c7cabae4 started basic support for solaris 2.5 in smbwrapper. -
Andrew Tridgell
a4e607c17d - modified resolve_name() to take a name_type
- cleaned up resolve_name() (split into separate functions for each resolver)
- if can't find local master then use #1B name
- support listing of foreign workgroups in /smb/
-
Andrew Tridgell
64699810e2 support NetServerEnum in smbwrapper. You can now do a ls in /smb/ and
it will list all servers in your workgroup. You can set your workgroup
with the SMBW_WORKGROUP environment variable.
-
Andrew Tridgell
7bd738c30a add support for unlink() on printer shares in smbwrapper. unlink()
will remove the job from the pirnt queue.
-
Andrew Tridgell
080fb61b69 added support for printing via smbwrapper
You can print using "cp filename /smb/SERVER/PRINTER/jobname"

You can list the current printqueue using ls
-
Andrew Tridgell
cc1a0cf82b set a default 16k client buffer size -
Andrew Tridgell
c728d1c5d6 modified cli_read() and cli_write() to issue multiple outstanding
read/write requests for large reads. up to max_mux requests may be
outstanding. This gives _much_ better throughput and should allow
smbsh to saturate just about any network.

this is an implementation of the "fast SMB" method I described on the
CIFS list a couple of months back.
-
Andrew Tridgell
60a6834656 use dummy file descriptors opened on /dev/null to ensure that the smbw
file descriptor allocation order is identical to the kernels.
-
Andrew Tridgell
04e92e692e more smbw cleanups.
- cleaned up prototyping. Unfortunately we can't auto-prototype
  wrapped.c because it replaces system functions.
- split stat functions into smbw_stat.c
-
Andrew Tridgell
1dcc84b942 fixed vi on smbwrappper (it was a problem in cli_read()) -
Andrew Tridgell
5674fb4e9d added simple device/inode number support based on a checksum of the
filename
-
Andrew Tridgell
67ca971b0b added lseek() support for directories -
Andrew Tridgell
40af9fee1a updated prototypes -
Andrew Tridgell
48de03824e define O_ACCMODE if not defined -
Andrew Tridgell
b85d961447 added unlink() and rename() support to smbwrapper -
Andrew Tridgell
a42155f77a updated prototypes -
Andrew Tridgell
76b5c82437 added capabilities ab win95 fields to client structure. Used for
detecting win95 server for bug handling
-
Luke Leighton
bcf39ffdcc Makefile.in :
- added srvsvc client files

clientgen.c :

	- replaced cli_error(cli, int *cls, int *err) with
	  cli_error(cli, uint8 cls, uint32 *err).  this version detects
	  32 bit status messages.  the DOS error "MORE_DATA", the
	  equivalent of the 32 bit *warning* 0x8000 0005
	  (STATUS_BUFFER_OVERFLOW), was being processed as an error,
	  terminating the cli_receive_trans() call.

cli_pipe.c :

	- replaced calls that had been incorrectly modified from
	  32 bit warnings (0x8000 0005 - STATUS_BUFFER_OVERFLOW)
	  to 8 bit DOS errors (0x01 0xEA - MORE_DATA).
	  the use of the old version of cli_error (DOS only)
	  instead of the new one (DOS and 32 bit) caused the
	  dce/rpc client code to fail.

	- replaced 2 space indentation with tab indentation in all functions.

cli_srvsvc.c :
cmd_srvsvc.c :

	- added these files back in, fixing them up to use jeremy's
	  modified versions of the dce/rpc client functions.

parse_srv.c :

	- added back in some "unused" functions required by dce/rpc
	  client-side code.  it would be helpful if all such "unused"
	  functions could be added back in.

rpcclient.c :

	- added "session", "file", "share", "connection" enumeration
	  functions back in.  these are equivalent to nt's "NetXXXXXEnum"
	  Win32 (MSDN) functions.

	- added "srvinfo" function back in.  this is equivalent to
	  nt's NetServerGetInfo Win32 (MSDN) function.
-
Luke Leighton
a4e7cc3e46 - static function "create_new_hashes" was identical to "nt_lm_owf_gen".
create_new_hashes didn't zero the buffer for the md4hash: nt_lm_owf_gen
  did, because jeremy sorted this out a couple of days ago.  call
  nt_lm_owf_gen instead.

- call SMBOWFencrypt from SMBencrypt and SMBNTencrypt.

- added #ifdef DEBUG_PASSWORD debug password calls.
-
Andrew Tridgell
07dd2aedf1 a couple of mode for smbwrapper -
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.
-
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.
-
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
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 -
Alexandre Oliva
078a4b564f added stamp-h -
Alexandre Oliva
90a8a02484 get away with dummy and .dummy files -
Alexandre Oliva
fe5721b952 added WITH_SMBMOUNT -
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.
-
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
-
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
548634915f Added Kerberos4 support patches from Johan Hedin <johanh@fusion.kth.se>
Jeremy.
-
Jeremy Allison
e8be306f23 Makefile.in: Fixed bug with continuation line causing proto to fail.
Added $(PROGS) $(SPROGS) as targets for make clean.
acconfig.h: Added HAVE_IRIX_SPECIFIC_CAPABILITIES.
configure.in: Added sys/capability.h header check.
              Added function checks for srandom random srand rand.
              Added HAVE_IRIX_SPECIFIC_CAPABILITIES test.
includes.h: Added #include <sys/capability.h>.
ntdomain.h: Moved struct acct_info into here from smb.h
smb.h: Added KERNEL_OPLOCK_CAPABILITY define.
       Moved enum action_type into rpcclient.h
       Moved struct cli_state into client.h
       Moved struct nt_client_info, struct tar_client_info, struct client_info
             into rpcclient.h
lib/genrand.c: Changed to use sys_random() & friends.
lib/smbrun.c: Lose capabilities after fork.
lib/system.c: Added set_process_capability(), set_inherited_process_capability()
              sys_random(), sys_srandom().
lib/util.c: Added Ander's EFBIG lock check to fcntl_lock for 64 bit access to an
            32 bit mounted NFS filesystem.
nmbd/nmbd.c: Changed to use sys_random() & friends.
nmbd/nmbd_browsesync.c: Changed to use sys_random() & friends.
passdb/ldap.c: Missed one pdb_encode_acct_ctrl call.
passdb/passdb.c: Changed to Ander's code for ' ' characters.
passdb/smbpass.c: Added Ander's code to reset ACB_PWNOTREQ.
script/mkproto.awk: Added 'long' to prototypes.
smbd/chgpasswd.c: Lose capabilities after fork.
smbd/open.c: Do the mmap *after* the kernel oplock.
smbd/oplock.c: Removed stub code from kernel oplock path.
               Added set_process_capability(), set_inherited_process_capability() calls.
smbd/reply.c: Initialize count = 0, offset = 0.
smbd/server.c: Added set_process_capability(), set_inherited_process_capability() calls.
tests/summary.c: Ensure we have RANDOM or RAND.
utils/smbpasswd.c: Added Ander's code to reset ACB_PWNOTREQ.
utils/torture.c: Changed to use sys_random() & friends.

Jeremy.
-
Jeremy Allison
535ac8a7c2 Added missing display enum.
Jeremy.
-
Luke Leighton
3a00023efe rpcclient: got samr command "enumusers -g -u" working -
Jeremy Allison
2831e5c9c4 Moved the extra struct definitions Luke added to smb.h into rpcclient.h
and client.h. They are still included from smb.h so nothing should
change (or break) but this keeps the new definitions easier to
maintain. This is similar to what I did with ntdomain.h
Jeremy.
-