1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-21 20:23:50 +03:00
Commit Graph

696 Commits

Author SHA1 Message Date
Volker Lendecke
fe8f9e427a Compile endpoint mapper pidl output 2008-05-21 23:35:26 +02:00
Volker Lendecke
93111ea0a1 Simplify fake_file logic 2008-05-16 23:18:50 +02:00
Volker Lendecke
368454a27c Remove "user" from connection_struct 2008-05-10 11:17:01 +02:00
Volker Lendecke
35438a9407 Add a comment explaining server_info in connection_struct 2008-05-10 11:17:01 +02:00
Volker Lendecke
2834dacc8d Remove the unix token info from connection_struct 2008-05-10 11:17:01 +02:00
Volker Lendecke
a3738aef59 Replace nt_user_token with server_info in connection_struct 2008-05-10 11:17:01 +02:00
Volker Lendecke
a34f735217 Next try at making the vuid cache circular
Jeremy, please check!
2008-05-10 11:17:00 +02:00
Volker Lendecke
0f53f9e7db Add "server_info" to connection_struct
This will replace all the user identity stuff in connection_struct, for now it
is just a source where the other fields in connection_struct are filled from.
2008-05-10 11:17:00 +02:00
Volker Lendecke
03944f8d89 Remove unused "force_group" from connection_struct 2008-05-10 11:17:00 +02:00
Volker Lendecke
425ca59cce Remove unused dir_status_struct 2008-05-05 22:53:09 +02:00
Volker Lendecke
420de03523 Remove "userdom_struct user" from "struct user_struct" 2008-05-05 18:28:59 +02:00
Volker Lendecke
74c88a4442 Remove "session_key" from "struct user_struct"
This one took a bit -- I hope I covered all data paths
2008-05-05 18:28:59 +02:00
Volker Lendecke
570a6b80fe Remove "guest" from "struct user_struct" 2008-05-05 18:28:59 +02:00
Volker Lendecke
aa2299d42a Remove the unix token info from "struct user_struct" 2008-05-05 18:28:58 +02:00
Volker Lendecke
51d5d512f2 Remove "nt_user_token" from "struct user_struct" 2008-05-05 18:28:58 +02:00
Volker Lendecke
b36fd84186 Remove "logon_script" from "struct user_struct" 2008-05-05 18:28:58 +02:00
Volker Lendecke
36bfd32f1f Remove unix_homedir from struct user_struct
This makes pdb_get_unix_homedir unused. I wonder if that was ever really used...
2008-05-05 18:28:58 +02:00
Volker Lendecke
41f9afd62d Remove "homedir" from "struct user_struct" 2008-05-05 18:28:58 +02:00
Volker Lendecke
559180f7d3 Remove connection_struct->mem_ctx, connection_struct is its own parent 2008-05-05 11:23:13 +02:00
Jeremy Allison
6bfb06ad95 Remove the "stat_open()" function, flag, and all associated code. It was only
being (correctly) used in the can_read/can_write checks for hide unreadable/unwritable
and this is more properly done using the functions in smbd/file_access.c.
Preparing to do NT access checks on all file access.
Jeremy.
2008-05-02 17:22:10 -07:00
Günther Deschner
554dcfdab0 IDL: build generated nbt code.
Guenther
2008-04-17 14:55:15 +02:00
Stefan Metzmacher
2eab212ea2 smbd: implement the strange write time update logic
We now never call file_ntimes() directly, every update
is done via smb_set_file_time().

This let samba3 pass the BASE-DELAYWRITE test.

The write time is only updated 2 seconds after the
first write() on any open handle to the current time
(not the time of the first write).

Each handle which had write requests updates the write
time to the current time on close().

If the write time is set explicit via setfileinfo or setpathinfo
the write time is visible directly and a following close
on the same handle doesn't update the write time.

metze
2008-04-07 12:29:26 +02:00
Stefan Metzmacher
6aaa2ce0ee locking: store the write time in the locking.tdb
This is needed to implement the strange write time update
logic later. We need to store 2 time timestamps to
distinguish between the time the file system had before
the first client opened the file and a forced timestamp update.

metze
2008-04-07 12:29:25 +02:00
Gerald W. Carter
0c94918fb5 Patch from Nicholas Brealey <nick@brealey.org> to distinguish between WinXP and WinXP64.
Defines a new value for the %a variable when detecting a Windows XP 64-bit client.
2008-03-31 14:34:43 -05:00
Volker Lendecke
f94a63cd8f Use a separate tdb for mutexes
Another preparation to convert secrets.c to dbwrap: The dbwrap API does not
provide a sane tdb_lock_with_timeout abstraction. In the clustered case the DC
mutex is needed per-node anyway, so it is perfectly fine to use a local mutex
only.
2008-03-10 21:08:45 +01:00
Günther Deschner
84a9bf0b73 Use pidl for NTSVCS.
Guenther
2008-02-17 22:32:30 +01:00
Günther Deschner
dc2e563e1f Add krb5pac IDL from samba4.
Guenther
2008-02-17 01:13:05 +01:00
Günther Deschner
d5ebfccebb Use generated DSSETUP client & server rpc functions and remove the hand-written ones.
Guenther
2008-01-25 15:30:43 +01:00
Günther Deschner
1781a57b18 Re-run make idl and use generated ndr based on samba4 security.idl (except for DOM_SID).
Guenther
2008-01-24 13:54:45 +01:00
Volker Lendecke
1f0eaaa591 Move samba_extended_info_version to smbd/trans2.c
This is right now only used there, and in version.c it gave linker errors
because some binaries (e.g. smbmnt) don't link in time.o
2008-01-22 13:00:22 +01:00
Corinna Vinschen
28aa1c199d Get Samba version or capability information from Windows
On Jan 21 16:18, Danilo Almeida wrote:
> Corina wrote:
>
> > +	time_t samba_gitcommitdate;
>
> And:
>
> > +   SIVAL(pdata,28,extended_info.samba_gitcommitdate);
> > +   memcpy(pdata+32,extended_info.samba_version_string,32);
>
> Note that you are dropping bits on a system w/64-bit time_t, and that this has the 2038 problem.

Right.  I changed samba_gitcommitdate from time_t to NTTIME and shortened
samba_version_string to 28 bytes.  New patch below.

Thanks,
Corinna
2008-01-22 12:39:47 +01:00
Volker Lendecke
e9bb3d5067 Hide streams from the EA API 2008-01-22 12:29:02 +01:00
Volker Lendecke
6022873cc1 Add streams support
This is the core of the streams support. The main change is that in
files_struct there is now a base_fsp pointer that holds the main file open
while a stream is open. This is necessary to get the rather strange delete
semantics right: You can't delete the main file while a stream is open without
FILE_SHARE_DELETE, and while a stream is open a successful unlink of the main
file leads to DELETE_PENDING for all further access on the main file or any
stream.
2008-01-19 23:25:36 +01:00
Volker Lendecke
3fa0cf3fe5 Add the "allinfo" command to smbclient
Modeled after the Samba4 allinfo command
2008-01-18 11:08:17 +01:00
Günther Deschner
f7100156a7 Finally enable pidl generated SAMR & NETLOGON headers and clients.
Guenther
2008-01-17 16:54:46 +01:00
Günther Deschner
5d8e5cbc3b Use pidl generated data from misc.idl.
Guenther
2008-01-17 16:54:46 +01:00
Günther Deschner
586d6cef52 Include libnet_join.h in the right places.
Guenther
2008-01-15 15:44:04 +01:00
Jeremy Allison
c4e5a50504 Refactor the crypto code after a very helpful conversation
with Volker. Mostly making sure we have data on the incoming
packet type, not stored in the smb header.
Jeremy.
2008-01-04 12:56:23 -08:00
Günther Deschner
9a58cd5795 Happy new year !
Guenther
2008-01-02 12:56:24 +01:00
Jeremy Allison
d241bfa577 Add the capability to set "smb encrypt = required"
on a share (or global) and have the server reply with
ACCESS_DENIED for all non-encrypted traffic (except
that used to query encryption requirements and set
encryption state).
Jeremy.
2007-12-27 23:51:03 -08:00
Jeremy Allison
d78045601a Add SMB encryption. Still fixing client decrypt but
negotiation works.
Jeremy.
2007-12-26 17:12:36 -08:00
James Peach
de3c5b808a Cache the underlying filesystem capabilities at connection time.
This change alters the Samba connection code to cache the filesystem
capabilities when a new client connects. This can be used to enable
filesystem specific optimisations is a general manner.
2007-12-22 14:01:25 -08:00
Michael Adam
cd8c005744 Add combined flag LOOKUP_NAME_LOCAL.
Presence of LOOKUP_NAME_ISOLATED as the only flag is not the sign
for doing local lookups only but the sign for allowing lookups
of unqualified names. The correct sign is absence of the flag
LOOKUP_NAME_REMOTE.

Michael
2007-12-17 13:05:29 +01:00
Michael Adam
537b12647e Add flags for correctly implementing lsa_lookup_name levels.
(Prepare fix for Bug #4801.)

Michael
2007-12-13 10:15:21 +01:00
Jeremy Allison
3f6cc82637 Don't need an fstring here, we can talloc.
Jeremy.
2007-12-10 15:31:05 -08:00
Jeremy Allison
78dc756000 We don't need P_GSTRING or P_UGSTRING anymore.
Jeremy.
2007-12-07 12:43:10 -08:00
Jeremy Allison
9ccac8abb0 Remove more pstrings, from the winbindd protocol def and
inside winbindd. Remove unused pstring types.
Jeremy.
2007-12-03 17:57:46 -08:00
Jeremy Allison
ba9e2be2b5 Remove the explicit TALLOC_CTX * from cli_struct.
Make us very explicit about how long a talloc ctx
should last.
Jeremy.
2007-11-29 13:24:54 -08:00
Jeremy Allison
d50d14c300 Remove the smb_read_error global variable and replace
it with accessor functions. "One global or pstring a day...." :-).
Jeremy.
2007-11-03 15:12:42 -07:00
Jeremy Allison
11c03b75dd Add new parameter, "min receivefile size" (by default set
to zero). If non-zero, writeX calls greater than this
value will be left in the socket buffer for later handling
with recvfile (or userspace equivalent). Definition of
recvfile for your system is left as an exercise for
the reader (I'm working on getting splice working :-).
Jeremy.
2007-10-30 16:22:24 -07:00