Stefan Metzmacher
bd3162e6a7
r13868: remove useless talloc_free() wrapper
...
metze
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
bb083f17c9
r13866: prefix more functions with smbsrv_
...
metze
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
2af9663275
r13865: prefix functions with smbsrv_
...
metze
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
ab659d8ee0
r13863: this can be static...
...
metze
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
497b219c7d
r13862: rename chain_reply -> smbsrv_chain_reply
...
metze
2007-10-10 13:52:18 -05:00
Stefan Metzmacher
d1bae931b3
r13860: - add support for SMB2 ("SMB 2.001") negotiation in SMB negprot requests
...
- the default max protocol is still NT1
metze
2007-10-10 13:52:17 -05:00
Stefan Metzmacher
7f2a6cfd6f
r13858: - use req_pull_ascii4() instead of doing strlen() on client provided buffers
...
- also terminate the connection if we don't support any protocol the client
provides
metze
2007-10-10 13:52:17 -05:00
Stefan Metzmacher
58af0acafd
r13857: add "Windows for Workgroups 3.1a" support to the server
...
metze
2007-10-10 13:52:17 -05:00
Andrew Tridgell
af6606fe98
r13856: fixed a misleading comment
2007-10-10 13:52:17 -05:00
Jelmer Vernooij
ba62880f5b
r13658: More moving around of files:
...
- Collect the generic utility functions into a lib/util/ (a la GLib is
for the GNOME folks)
- Remove even more files from include/
2007-10-10 13:52:05 -05:00
Stefan Metzmacher
7cf1423bc8
r13620: initialize the CMD with 0 too
...
metze
2007-10-10 13:52:01 -05:00
Andrew Bartlett
7f821097fb
r13403: Try to better handle a case where SPNEGO isn't available (allow us to
...
emulate the behaviour of XP standalone if required).
Andrew Bartlett
2007-10-10 13:51:53 -05:00
Andrew Bartlett
765caa14b3
r13204: Remove extra newline we don't need.
...
Andrew Bartlett
2007-10-10 13:51:33 -05:00
Andrew Bartlett
88198c4881
r12804: This patch reworks the Samba4 sockets layer to use a socket_address
...
structure that is more generic than just 'IP/port'.
It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).
This passes 'make test' as well as kerberos use (not currently in the
testsuite).
The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again. It also removes nbt_peer_addr, which was being used
for a similar purpose.
It is a large change, but worthwhile I feel.
Andrew Bartlett
2007-10-10 13:49:57 -05:00
Jelmer Vernooij
243cf760b0
r12801: Some more include/ cleanups (remove unused macros + move files
...
to specific dirs)
2007-10-10 13:49:57 -05:00
Stefan Metzmacher
f2e97983f2
r12725: some minor updates
...
metze
2007-10-10 13:49:45 -05:00
Jelmer Vernooij
6391761601
r12696: Reduce the size of include/structs.h
2007-10-10 13:49:40 -05:00
Jelmer Vernooij
c722f665c9
r12694: Move some headers to the directory of the subsystem they belong to.
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
70e7449318
r12608: Remove some unused #include lines.
2007-10-10 13:49:03 -05:00
Jelmer Vernooij
0aca5fd513
r12542: Move some more prototypes out to seperate headers
2007-10-10 13:47:55 -05:00
Jelmer Vernooij
87f665a1d5
r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
b24f2583ed
r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
...
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
2007-10-10 13:47:45 -05:00
Stefan Metzmacher
a7baf165c1
r12126: get rid of the local ->terminate hacks, we do that genericly now
...
metze
2007-10-10 13:47:12 -05:00
Stefan Metzmacher
99cf7dbb17
r12115: bring SMB sesssetup_spnego in sync with SMB2 sesssetup
...
metze
2007-10-10 13:47:10 -05:00
Stefan Metzmacher
15973be48e
r12113: in SMB2 we should only allocate a new session
...
when the client sends UID = 0, otherwise we return
NT_STATUS_USER_SESSION_DELETED
metze
2007-10-10 13:47:10 -05:00
Stefan Metzmacher
4d527ac005
r12102: for SMB2 we need to allocate tcons per session
...
metze
2007-10-10 13:47:09 -05:00
Stefan Metzmacher
40b301c6bd
r12095: the most SMB2 opcodes need a valid session and tcon,
...
metze
2007-10-10 13:47:09 -05:00
Stefan Metzmacher
cb9ddf7997
r12094: - implement dummy smb2srv_tcon()
...
- implement smb2srv_tdis()
metze
2007-10-10 13:47:08 -05:00
Stefan Metzmacher
1506be37db
r12093: add missing file
...
metze
2007-10-10 13:47:08 -05:00
Stefan Metzmacher
859ab627f4
r12092: - add dummy functions for the missing SMB2 opcodes
...
- implement keepalive and logoff
metze
2007-10-10 13:47:08 -05:00
Stefan Metzmacher
436c5127ef
r12091: the SMB2 specific level are not available via SMB
...
(get rid of the compiler warnings)
metze
2007-10-10 13:47:08 -05:00
Andrew Tridgell
5c81986bff
r12082: fixed a valgrind error found by kukks in the transs server handling
2007-10-10 13:47:06 -05:00
Andrew Bartlett
e74ca624e7
r11992: Potentially allow SPNEGO to be disabled (as occours on WinXP
...
standalone), and use only NTLMSSP.
(But doing so would break Samba3's client).
Andrew Bartlett
2007-10-10 13:46:56 -05:00
Tim Potter
d479f2d760
r11968: More warning fixes. We're on track to getting to double digits for
...
the number of warnings generated now.
2007-10-10 13:46:52 -05:00
Tim Potter
9c4436a124
r11967: Fix more 64-bit warnings.
2007-10-10 13:46:52 -05:00
Stefan Metzmacher
08b31d5f61
r11789: - add the start of a SMB2 server
...
- it does Negprot and SessionSetup yet
the rest returns NT_STATUS_NOT_IMPLEMENTED
- it's off by default, enable with:
smbsrv:enable smb2 = yes
- negotition in the SMB Negprot isn't supported yet
- it's only tested with smbtorture SMB2-CONNECT
not with vista as client
metze
2007-10-10 13:46:28 -05:00
Stefan Metzmacher
27a2615876
r11788: remove unused header files
...
metze
2007-10-10 13:46:27 -05:00
Stefan Metzmacher
d74f333a84
r11787: add missing file
...
metze
2007-10-10 13:46:27 -05:00
Stefan Metzmacher
5fea278cb6
r11786: move all SMB protocol specific stuff to smb_server/smb/
...
metze
2007-10-10 13:46:27 -05:00
Stefan Metzmacher
eba4f6b706
r11785: rename conn.c into tcon.c
...
metze
2007-10-10 13:46:27 -05:00
Stefan Metzmacher
7eb10048b2
r11783: - make the VIUD field in smbsrv_session 64bit, as SMB2 needs it
...
- add an idtree_limit to limit the max VUID we give the clients
it's UINT16_MAX (0xffff) for the SMB protocol
- add auth_time to the smbsrv_session statistics
- use the session_info as marker for finished and non-finished
session setups
metze
2007-10-10 13:46:26 -05:00
Stefan Metzmacher
f3bf5a2c09
r11782: - make the TID 32bit in the smbsrv_tcon structure, as SMB2 uses
...
them
- add a idtree_limit to the tcons substructure of smbsrv_connection
this controls what the highest TID is we give away to the client
it's UINT16_MAX (0xFFFF) for the SMB protocol
metze
2007-10-10 13:46:26 -05:00
Stefan Metzmacher
acd3e644e0
r11781: rename tree to tcons to match the sessions substructure of smbsrv_connection
...
metze
2007-10-10 13:46:26 -05:00
Stefan Metzmacher
4bceb94749
r11778: - remove unused memory contexts as req is already the temporary context for the current request
...
- just use '0', I'll remove the UID_FIELD_INVALID macro completly later
- why search for the session we have just create
- add TODO notices, I need to dicuss them with abartlet...
metze
2007-10-10 13:46:25 -05:00
Stefan Metzmacher
f89deac1cb
r11774: - move SMB specific initialisation of the smbsrv_connection out of smb_server.c
...
- add a generic incoming packet handler, which handles the first incoming packet
and passes to the protocol specifc packet handler
metze
2007-10-10 13:46:25 -05:00
Stefan Metzmacher
5b5fb17720
r11759: fix up the SEC_SHARE handling, when we want to support that later
...
we need to fake a smbsrv_session for each smbsrv_tcon...
metze
2007-10-10 13:46:24 -05:00
Stefan Metzmacher
b606d5664d
r11757: make smb_server.c independent from the protocol
...
metze
2007-10-10 13:46:23 -05:00
Stefan Metzmacher
7cf6b307bc
r11746: revert my last commits, I now understand how we decide between
...
finished and non-finished sessions
metze
2007-10-10 13:46:21 -05:00
Stefan Metzmacher
92aae176fb
r11745: one more check for a valid session
...
metze
2007-10-10 13:46:21 -05:00
Stefan Metzmacher
0383218a00
r11744: make sure the session is completed authenticated!!!
...
metze
2007-10-10 13:46:20 -05:00