1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

2788 Commits

Author SHA1 Message Date
Tim Potter
c72de36748 Broke out vfs structures to separate header file.
Some cpp hackery to avoid redefining types used by vfs header file.

Added a vfs_connection_struct to connection_struct so it can be
freed when a VFS share is disconnected.
0001-01-01 00:00:00 +00:00
Tim Potter
ee6f826ccc Changed arguments to fsync() function to break dependency on
connection_struct.
0001-01-01 00:00:00 +00:00
Tim Potter
373ffe7759 Broke out of smb.h
Changed arguments to fsync() function to break dependency on
connection_struct.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5fb06c603e open_socket_in() takes a different number of parameters in the head
branch. We need that merge soon!
0001-01-01 00:00:00 +00:00
Andrew Tridgell
12d55d208a fixed a typo 0001-01-01 00:00:00 +00:00
Andrew Tridgell
a116228d37 damn, new files need to be added to the head branch first, I've told
other people this before then forgot myself :)
0001-01-01 00:00:00 +00:00
Tim Potter
fdbe79c1c3 Removed unused vfs_read_data() function at the request of tridge.
Removed unnecessary SSL stuff from vfs_write_data().
0001-01-01 00:00:00 +00:00
Tim Potter
deb6dfb4e0 Fix compile warning in nametouid(). 0001-01-01 00:00:00 +00:00
Matthew Chapman
4ed67ccf1c Allow "Yes" and "No" as well as "True" and "False" in the three-state
enumeration.
0001-01-01 00:00:00 +00:00
Matthew Chapman
4a23a358b5 Trying to improve DC location & browsing performance for the average user
who doesn't know what an LMB or DMB is.

* check_master_browser_exists now performs the check the first time
around, so if there is indeed no master browser then Samba takes up the job
much faster.

* Upped default OS level to 32. There is no reason why some stupid little
Windows box should become LMB instead of a Samba *server*.

* "domain master" now defaults to "auto". Currently this attempts to
become DMB iff Samba is the PDC (ala Windows NT). "preferred master" also
defaults to "auto", which enables preferred master iff Samba is DMB.

* lp_server_role now just returns the predetermined role, rather than
working it out each time, since the server role is becoming very heavily
used (esp for the BDC code).
0001-01-01 00:00:00 +00:00
Matthew Chapman
60a8b478ac Fixed rpcclient's samuser command. 0001-01-01 00:00:00 +00:00
Matthew Chapman
c518cef78d Incorrect length (number of unicode characters rather than buffer size)
passed to ascii_to_unibuf in make_buffer2 was breaking User Manager.
0001-01-01 00:00:00 +00:00
Tim Potter
d04c530836 Modification to compile under egcs 2.91.63. 0001-01-01 00:00:00 +00:00
John Terpstra
5feb10ef13 Put this back after it dropped off. 0001-01-01 00:00:00 +00:00
Matthew Chapman
6f2b37bfc5 Mainly BDC-related changes.
* Added SEC_CHAN_BDC
* Added -b switch to smbpasswd (for a BDC (server) trust account).
* Propagate sec_chan into the various functions which change trust account
  passwords, so they can be used for domain control and inter-domain
  trusts.
0001-01-01 00:00:00 +00:00
Matthew Chapman
ca540c21f7 Mainly BDC-related changes.
* Added SEC_CHAN_BDC
* Propagate sec_chan into the various functions which change trust account
  passwords, so they can be used for domain control and inter-domain
  trusts.
0001-01-01 00:00:00 +00:00
Matthew Chapman
7b830350eb Mainly BDC-related changes.
* Added SEC_CHAN_BDC
* Propagate sec_chan into the various functions which change trust account
  passwords, so they can be used for domain control and inter-domain
  trusts.
* Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. A
  BUFFER2 is really a "unibuf" in my terminology and we should treat it as
  such.
* Added some more common NT structures (BIGINT, BUFHDR2, BUFFER4).
* Added NET_SAM_SYNC (-> NetDatabaseSync2) RPC for account replication.
  Still experimental and incomplete, with a few too many NULL security
  descriptors lying around (must go look at Jeremy's SD code). Haven't
  worked out password encryption yet either.
  However, the XXX_INFO structures I've added to rpc_netlogon.h are quite
  nice as they give some insight into how these objects are stored in the
  SAM.
0001-01-01 00:00:00 +00:00
Matthew Chapman
74d6dec25d Mainly BDC-related changes.
* Added SEC_CHAN_BDC
* Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. A
  BUFFER2 is really a "unibuf" in my terminology and we should treat it as
  such.
* Added some more common NT structures (BIGINT, BUFHDR2, BUFFER4).
* Added NET_SAM_SYNC (-> NetDatabaseSync2) RPC for account replication.
  Still experimental and incomplete, with a few too many NULL security
  descriptors lying around (must go look at Jeremy's SD code). Haven't
  worked out password encryption yet either.
  However, the XXX_INFO structures I've added to rpc_netlogon.h are quite
  nice as they give some insight into how these objects are stored in the
  SAM.
0001-01-01 00:00:00 +00:00
Matthew Chapman
7ef76320b7 Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. A
BUFFER2 is really a "unibuf" in my terminology and we should treat it as
such.
0001-01-01 00:00:00 +00:00
Tim Potter
0f37e900fa Always do a compile before CVS commit! )-: 0001-01-01 00:00:00 +00:00
Tim Potter
c1cbe07c03 Forgot about closedir() function for VFS. Hoo embarassing. 0001-01-01 00:00:00 +00:00
Tim Potter
2d2c5ae7cd Changed calls to strncat() to safe_strcat(). Fix from SAMBA_2_0 branch. 0001-01-01 00:00:00 +00:00
Luke Leighton
2f02a083b2 Dejan Ilic: spotted "NETLOGON" bug, failure of NT_STATUS WRONG_PASSWORD. 0001-01-01 00:00:00 +00:00
Tim Potter
e15da68824 Under IRIX, a void function may return a value, even if that value is
void!
0001-01-01 00:00:00 +00:00
Tim Potter
abf31ca66f Fix incorrect conversion of fd_attempt_open() calls to vfs_ops.open().
Use VFS I/O for fd_attempt_open() and check_access_allowed_for_current_user().
0001-01-01 00:00:00 +00:00
Tim Potter
5ece1fcffb Use VFS I/O for stat_cache_lookup() 0001-01-01 00:00:00 +00:00
Tim Potter
cbfd8a8990 Disable VFS routines if no libdl available. 0001-01-01 00:00:00 +00:00
Tim Potter
753596246c Documentation for VFS construction. 0001-01-01 00:00:00 +00:00
Tim Potter
e8fa4fbf8b Fixed spelling typo in Kerberos configure option. 0001-01-01 00:00:00 +00:00
Tim Potter
f40a133962 Updated for VFS merge. 0001-01-01 00:00:00 +00:00
Tim Potter
17d007daa3 Fixed up incorrect calls to read_file(). 0001-01-01 00:00:00 +00:00
Tim Potter
7ced7fd395 Use VFS operations for file I/O.
Modified args to read_predict to pass in fsp.

Renamed sync_file() function to sys_sync_file().
0001-01-01 00:00:00 +00:00
Tim Potter
ef24fcb7b2 Use VFS operations for file I/O.
Modified invocations of fd_attempt_close as it now takes a fsp instead
of a fd.
0001-01-01 00:00:00 +00:00
Tim Potter
666afcdf1d #ifdef'ed out functions obsoleted by VFS:
dos_opendir
	dos_readdirname
	dos_file_exist

Added warning comments to dos_mkdir() as it's used in client code.
0001-01-01 00:00:00 +00:00
Tim Potter
db60aa209c Added smbd/vfs.o and smbd/vfs-wrap.o to object list for smbd. 0001-01-01 00:00:00 +00:00
Tim Potter
ddde0ab9a1 Wrote VFS initialisation routines.
Converted some useful routines from doscalls.c and changed them to use
VFS I/O functions:

	dos_file_exist
	dos_read_data
	dos_write_data
	dos_transfer_file
	dos_readdirname

Some of these functions have been #ifdef'ed out of doscalls.c as they
are not used anywhere else.  Not sure whether they should be deleted
or not.  The remaining dos_* calls seem to be used by clients and for
locking stuff.  This should be cleaned up sometime.
0001-01-01 00:00:00 +00:00
Tim Potter
6e607ef760 Wrapped up all VFS disk I/O functions for portability. I remember
tridge telling me why this needed to be done but I have since
forgotten.  (-:
0001-01-01 00:00:00 +00:00
Tim Potter
cfddbdb624 Use VFS operations for file I/O. 0001-01-01 00:00:00 +00:00
Tim Potter
15805164fe Call VFS initialisation, share connect and share disconnect functions.
Initialise VFS function pointers with symbols from the 'vfs object'
file, use disk pointers otherwise.

Added a hook to check for a 'default' VFS share (like the [homes]
section).  Currently empty - I'm unsure whether this will be useful or
not.
0001-01-01 00:00:00 +00:00
Tim Potter
c40124bc9a Use VFS operations for file I/O.
Changed arg to fd_attempt_close() from fd to fsp_struct.
0001-01-01 00:00:00 +00:00
Tim Potter
6479abc5b9 Use VFS operations for file I/O.
Pass files_struct and connection_struct to read_predict() and
do_read_prediction() functions, respectively.
0001-01-01 00:00:00 +00:00
Tim Potter
5051a21061 Use VFS operations for file I/O.
Changed calls to dos_{opendir,readdir} to vfs_{opendir,readdir}
equivalents.
0001-01-01 00:00:00 +00:00
Tim Potter
20bfa71c95 Use VFS operations for file I/O. 0001-01-01 00:00:00 +00:00
Tim Potter
6998bdbfa8 Added struct vfs_ops describing virtual filesystem operations.
Created constants for pstring and fstring lengths.
0001-01-01 00:00:00 +00:00
Tim Potter
a7af7193e3 Added configuration parameter 'vfs object' to specify loadable object
file containing a VFS implementation.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
cae71af453 new files needed by profiling code 0001-01-01 00:00:00 +00:00
Andrew Tridgell
ef3d61a80a Ken McDonell from SGI was interested in adding some profiling
capabilities to Samba so that Samba could talk to the SGI PCP
(Performance Co-Pilot) apps.

This change adds a profiling shared memory area and uses it to count
two fairly trivial things, the number of uid switches and the number
of SMB packets processes. To add more just edit include/profile.h and
then increment it at the right place.

I've also added a -P switch to smbstatus to dump the profile area.
0001-01-01 00:00:00 +00:00
Alexandre Oliva
dfcfeb743a declare ttarf as double, as in client.c 0001-01-01 00:00:00 +00:00
Alexandre Oliva
b482ac8fc4 use double instead of SMB_BIG_UINT for dir_total and ttarf
(by tridge, merged from branch)
0001-01-01 00:00:00 +00:00
Luke Leighton
ac070dfd39 added SamrQueryDomainInfo call info level 0x3 for kix32.exe support 0001-01-01 00:00:00 +00:00