Stefan Metzmacher
44d655b33f
s3:smbd: add echo handler information to struct smbd_server_connection
...
metze
2010-03-22 17:15:12 +01:00
Stefan Metzmacher
8de8554628
s3:smbd: add smbd_[un]lock_socket() dummies
...
metze
2010-03-22 17:15:11 +01:00
Volker Lendecke
d6a6872506
s3: Abstract access to sessionid.tdb, similar to conn_tdb.c
2010-03-01 17:53:22 +01:00
Jeremy Allison
2f30aea332
Remove the global char *LastDir.
...
This is no longer used for anything.
2010-01-12 14:48:23 -08:00
Volker Lendecke
0f8e2a6ebb
Revert "s3: Move the global variable Protocol to struct smbd_server_connection"
...
This reverts commit c85a4c9ba4
.
2009-11-23 16:34:59 +01:00
Volker Lendecke
c85a4c9ba4
s3: Move the global variable Protocol to struct smbd_server_connection
2009-11-21 20:49:17 +01:00
Stefan Metzmacher
e621b7a52e
s3:smbd: add a generic smbd_dirptr_lanman2_entry() function
...
This can we used by SMB2, the key difference between
SMB1 and SMB2 is that with SMB2 entries are aligned
to 8 bytes and there's no padding at the end of the last entry.
metze
2009-08-19 22:12:42 +02:00
Stefan Metzmacher
b70ae644ed
s3:smbd: make smbd_check_open_rights() function non-static for use in SMB2
...
metze
2009-08-19 19:28:24 +02:00
Stefan Metzmacher
47452b8cec
s3:smbd: add smbd_notify_cancel_by_smbreq()
...
This function will be used by the SMB2 notify code.
metze
2009-08-17 09:25:45 +02:00
Stefan Metzmacher
d60f049eaf
s3:smbd: implement SMB2 Cancel correctly.
...
metze
2009-08-17 09:25:45 +02:00
Jeremy Allison
6a0c2946be
Fix BASE-DELAYWRITE test by removing const from struct smb_filename
...
in smbd_do_qfilepathinfo(). update_stat_ex_mtime() modifies the
stat struct inside the smb_fname so don't make a copy of that
stat struct, use it directly - it's meant to be updated and
represent the state of the file we're returning.
Jeremy.
2009-08-12 15:08:23 -07:00
Stefan Metzmacher
9aa1d25907
s3:smbd: rename conn => sconn for smbd_server_connection structs
...
This should avoid confusion between smbd_server_connection
and connection_struct variables.
metze
2009-08-08 10:48:39 +02:00
Stefan Metzmacher
59c3f5e3ca
s3:smbd: move dptr globals into struct smbd_server_connection
...
metze
2009-08-07 14:18:17 +02:00
Stefan Metzmacher
daa71c4236
s3:smbd: add generic smbd_dirptr_get_entry()
...
metze
2009-08-07 14:18:15 +02:00
Tim Prouty
4b42927ec3
s3: Convert some callers of vfs_stat_smb_fname to SMB_VFS_STAT()
2009-07-22 09:51:17 -07:00
Stefan Metzmacher
ed99bf7317
s3:smbd: make smbd_do_qfsinfo() non static for use in SMB2 GetInfo
...
metze
2009-07-13 14:13:06 +02:00
Stefan Metzmacher
7d735519d7
s3:smbd: make smbd_do_setfilepathinfo() non static for use in SMB2 SetInfo
...
metze
2009-07-13 11:18:59 +02:00
Stefan Metzmacher
0ba532e1b2
s3:smbd: make smbd_do_qfilepathinfo() non static for use in SMB2
...
metze
2009-07-12 16:55:22 +02:00
Stefan Metzmacher
8d534d45a5
s3:smbd: make smbd_do_locking() non static
...
metze
2009-07-10 12:24:24 +02:00
Stefan Metzmacher
909d42278a
s3:smbd: add marshalling layer for SMB2 Lock support
...
metze
2009-07-02 22:25:49 +02:00
Stefan Metzmacher
bc957dc4eb
s3:smbd: add marshalling layer for SMB2 Find (QueryDirectory) support
...
metze
2009-07-02 22:25:49 +02:00
Stefan Metzmacher
74860465ac
s3:smbd: add marshalling layer for SMB2 Break support (SMB 2.002 only)
...
metze
2009-07-02 22:25:49 +02:00
Stefan Metzmacher
d37709d38b
s3:smbd: add marshalling layer for SMB2 SetInfo support
...
metze
2009-07-02 22:25:49 +02:00
Stefan Metzmacher
1df9cb6bc9
s3:smbd: add marshalling layer for SMB2 GetInfo support
...
metze
2009-07-02 22:25:48 +02:00
Stefan Metzmacher
d49a0e5f7d
s3:smbd: add support for SMB2 Notify
...
metze
2009-07-02 09:13:56 +02:00
Stefan Metzmacher
f62a331045
s3:smbd: move global notify_changes_by_mid to smbd_server_connection
...
metze
2009-07-02 09:10:58 +02:00
Stefan Metzmacher
3b25d868ee
s3:smbd: add support for async interim SMB2 responses and prepare SMB2 cancel
...
metze
2009-06-24 21:04:57 +02:00
Stefan Metzmacher
754db207f6
s3:smbd: keep a list of outstanding SMB2 requests
...
metze
2009-06-24 21:04:57 +02:00
Stefan Metzmacher
bea384b277
s3:smbd: add smbd_smb2_send_oplock_break()
...
metze
2009-06-24 21:04:56 +02:00
Stefan Metzmacher
c0b64051d3
s3:smbd: more validation of the incoming SMB2 requests
...
metze
2009-06-09 19:51:02 +02:00
Stefan Metzmacher
76acd7bfad
s3:smbd: keep the chain_fsp for SMB2 requests
...
metze
2009-06-05 20:17:43 +02:00
Stefan Metzmacher
fabdebdcf4
s3:smbd: add support for SMB2 Ioctl
...
We don't implement any level yet.
metze
2009-06-05 17:50:48 +02:00
Stefan Metzmacher
1b806d83b7
s3:smbd: make smbd_server_connection_terminate() a macro
...
metze
2009-06-05 11:31:15 +02:00
Stefan Metzmacher
160ead46dc
s3:smbd: implement smbd_smb2_request_error/done() as macros on top of the _ex() function
...
metze
2009-06-05 11:31:03 +02:00
Jeremy Allison
73e3c85aba
Change smbd_smb2_request_error() to add a __location__.
...
This allows quick identification of smb2 parsing errors.
Jeremy.
2009-06-04 12:47:17 -07:00
Stefan Metzmacher
bfd1f5ddc6
s3:smbd: implement SMB2 Write
...
This only works on file shares.
metze
2009-06-03 17:54:40 +02:00
Stefan Metzmacher
4101f539bf
s3:smbd: implement SMB2 Read
...
This only works works on file shares.
metze
2009-06-03 17:54:40 +02:00
Stefan Metzmacher
0ccef51cbe
s3:smbd: implement SMB2 Flush
...
This works only on file shares yet.
metze
2009-06-03 17:54:40 +02:00
Stefan Metzmacher
ec0553bb6e
s3:smbd: implement SMB2 Close
...
metze
2009-06-03 17:54:40 +02:00
Stefan Metzmacher
261c59e3a1
s3:smbd: implement a simple version of SMB2 Create
...
It only work on file shares and
just ignores any additional Create Context Values.
metze
2009-06-03 17:54:39 +02:00
Stefan Metzmacher
cfc8d4a1f4
s3:smbd: add smbd_smb2_fake_smb_request()
...
metze
2009-06-03 17:54:39 +02:00
Stefan Metzmacher
0099f4758e
s3:smbd: create a connection_struct in SMB2 Tree Connect
...
metze
2009-06-03 17:54:38 +02:00
Stefan Metzmacher
076aaf3f42
s3:smbd: create a user_struct for compat in SMB2 Session Setup
...
metze
2009-06-03 17:54:38 +02:00
Stefan Metzmacher
c862018008
s3:smbd: move tcon specific globals to struct smbd_server_connection
...
metze
2009-06-03 17:54:38 +02:00
Stefan Metzmacher
75d03970b7
s3:smbd: move more session specific globals to struct smbd_server_connection
...
metze
2009-06-03 17:54:37 +02:00
Stefan Metzmacher
356f0336e5
s3:smbd: move some session specific globals to struct smbd_server_connection
...
metze
2009-06-03 17:54:37 +02:00
Stefan Metzmacher
f554af1871
s3:smbd: move already_got_session to struct smbd_server_connection
...
metze
2009-06-03 17:54:37 +02:00
Stefan Metzmacher
d9843b3db4
s3:smbd: move max_recv to struct smbd_server_connection
...
metze
2009-06-03 17:54:37 +02:00
Stefan Metzmacher
e16e7146b3
s3:smbd: move negprot related globals to struct smbd_server_connection
...
metze
2009-06-03 17:54:37 +02:00
Stefan Metzmacher
f20ded603b
s3:smbd: move pending_auth_data list to struct smbd_server_connection
...
metze
2009-06-03 17:54:36 +02:00
Stefan Metzmacher
52f2f9449f
s3:smbd: remove unused global 'orig_inbuf'
...
metze
2009-05-26 16:36:25 +02:00
Stefan Metzmacher
ebc860ebeb
s3:smbd: move SMB1 specific stuff into a substructure of smbd_server_connection
...
metze
2009-05-26 10:48:12 +02:00
Stefan Metzmacher
31c6679bf1
s3:smbd: add support for SMB2 signing
...
metze
2009-05-26 09:53:06 +02:00
Stefan Metzmacher
202509a347
s3:smbd: implement SMB2 Tree Disconnect
...
metze
2009-05-22 14:03:14 +02:00
Stefan Metzmacher
7dfbb2835f
s3:smbd: implement SMB2 Tree Connect
...
For now this only checks if the share is present or not.
metze
2009-05-22 14:03:13 +02:00
Stefan Metzmacher
1f59788516
s3:smbd: implement SMB2 Logoff
...
metze
2009-05-22 10:28:37 +02:00
Stefan Metzmacher
5d3d51e9ad
s3:smbd: check the incoming session id for SMB2 requests
...
metze
2009-05-20 20:53:39 +02:00
Stefan Metzmacher
1ecdc8588d
s3:smbd: implement SMB2 Session Setup with raw NTLMSSP
...
metze
2009-05-20 20:53:34 +02:00
Stefan Metzmacher
eac1235519
s3:smbd: add smbd_smb2_request_done_ex()
...
Some times we have to return a non-error response
with status != NT_STATUS_OK.
metze
2009-05-20 20:53:31 +02:00
Stefan Metzmacher
4abd5f34d9
s3:smbd: add support for SMB2 Keepalive (SMB2 Echo)
...
metze
2009-05-20 15:43:00 +02:00
Stefan Metzmacher
d7d73b08e9
s3:smbd: allow SMB 2.002 dialect in SMB1 negprot
...
We create a dummy SMB2 Negotiate inbuf and pass the
connection to the SMB2 engine.
metze
2009-05-20 15:43:00 +02:00
Stefan Metzmacher
3ef6a5ae9e
s3:smbd: add support for SMB2 Negotiate
...
This is not complete, but a start that makes the
samba4 smb2 client happy.
metze
2009-05-20 15:42:59 +02:00
Stefan Metzmacher
c14dd15c6a
s3:smbd: make negprot_spnego() non static
...
metze
2009-05-20 15:42:58 +02:00
Stefan Metzmacher
688945a994
s3:smbd: add infrastructure for SMB2 support
...
This is disabled by default and activated by
"max protocol = SMB2".
metze
2009-05-20 15:42:24 +02:00
Stefan Metzmacher
c16c90a1cb
s3:smbd: use new simplified snb_signing code in the server
...
We keep the seqnum/mid mapping in the smb_request structure.
This also moves one global variable into the
smbd_server_connection struct.
metze
2009-03-23 12:21:13 +01:00
Stefan Metzmacher
52f6a4436f
s3:smbd: make kernel oplocks event driven
...
And use signal events for Linux oplocks.
metze
2009-01-27 15:28:10 +01:00
Stefan Metzmacher
b8c416fe2a
s3:smbd: convert aio to use tevent_signal
...
metze
2009-01-27 15:28:09 +01:00
Stefan Metzmacher
ac61f650ae
s3:smbd: use signal events for SIGTERM, SIGHUP and SIGCHLD
...
metze
2009-01-27 15:28:07 +01:00
Stefan Metzmacher
196028ab7b
s3:smbd: restructure kernel oplocks code
...
This converts the irix oplocks code to use a fd event
and removes the last special case for file descriptors
for the main sys_select().
metze
2009-01-22 12:37:29 +01:00
Stefan Metzmacher
aeb798c325
s3:smbd: handle incoming smb requests via event handlers
...
We use a fd event and receive incoming smb requests
when the fd becomes readable. It's not completely
nonblocking yet, but it should behave like the old code.
We use timed events to trigger retries for deferred open calls.
metze
2009-01-09 08:45:40 +01:00
Stefan Metzmacher
3dde0cbb76
s3:smbd: move all globals and static variables in globals.[ch]
...
The goal is to move all this variables into a big context structure.
metze
2009-01-08 12:22:21 +01:00