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

32 Commits

Author SHA1 Message Date
Andrew Tridgell
ca6d9be6cb Convert SMB and SMB2 code to use a common buffer handling structure
This converts our SMB and SMB2 code to use a common structure "struct
request_bufinfo" for information on the buffer bounds of a packet,
alignment information and string handling. This allows us to use a
common backend for SMB and SMB2 code, while still using all the same
string and blob handling functions.

Up to now we had been passing a NULL req handle into these common
routines from the SMB2 side of the server, which meant that we failed
any operation which did a bounds checked string extraction (such as a
RenameInformation setinfo call, which is what Vista uses for renaming
files)

There is still some more work to be done on this - for example we can
now remove many of the SMB2 specific buffer handling functions that we
had, and use the SMB ones.
2008-02-14 10:12:33 +11:00
Andrew Tridgell
55af8acc7b fixed up the .in side of SMB2 negprot
fixed the input side of the SMB2 negprot structure and parsers according to the documentation
2008-02-12 12:54:44 +11:00
Jelmer Vernooij
1b947fe0e6 r26430: require explicit specification of loadparm context. 2007-12-21 05:49:58 +01:00
Jelmer Vernooij
7c00866423 r26268: Avoid more use of global_loadparm - put lp_ctx in smb_server and wbsrv_connection. 2007-12-21 05:47:47 +01:00
Jelmer Vernooij
b9e3a4862e r26260: Store loadparm context in gensec context. 2007-12-21 05:47:34 +01:00
Jelmer Vernooij
a9a9634df8 r26221: Add loadparm_context parameter to auth_context_create. 2007-12-21 05:46:58 +01:00
Jelmer Vernooij
c9651e2c5c r25551: Convert to standard bool type. 2007-10-10 15:07:54 -05:00
Jelmer Vernooij
3468952e77 r25446: Merge some changes I made on the way home from SFO:
2007-09-29 More higher-level passing around of lp_ctx.
2007-09-29 Fix warning.
2007-09-29 Pass loadparm contexts on a higher level.
2007-09-29 Avoid using global loadparm context.
2007-10-10 15:07:34 -05:00
Jelmer Vernooij
3fcc960839 r25398: Parse loadparm context to all lp_*() functions. 2007-10-10 15:07:25 -05:00
Jelmer Vernooij
abe8349f9b r25026: Move param/param.h out of includes.h 2007-10-10 15:05:38 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
b7e727186e r23680: Make it easier to setup a domain member server - the 'server role'
will now control the auth methods, but an override is still available,
ex:

auth methods:domain controller = <methods>

Andrew Bartlett
2007-10-10 14:59:00 -05:00
Stefan Metzmacher
0fa4eb7323 r22774: correctly initialize the smbsrv_connection when switching to SMB2
metze
2007-10-10 14:52:17 -05:00
Andrew Tridgell
2365abaa99 r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
2007-10-10 14:37:23 -05:00
Andrew Bartlett
2b569c42e0 r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
2007-10-10 14:25:00 -05:00
Andrew Tridgell
c5423ea22b r19504: - fixed a free error in file_lines_parse
- added a function to test for large file support

- enable CAP_LARGE_FILES only if the test passes

- don't test at large offsets if the server doesn't set
  CAP_LARGE_FILES
2007-10-10 14:24:40 -05:00
Stefan Metzmacher
679ac74e71 r17341: pass a messaging context to auth_context_create()
and gensec_server_start().

calling them with NULL for event context or messaging context
is no longer allowed!

metze
2007-10-10 14:15:17 -05:00
Stefan Metzmacher
ea88c8c99e r16923: remove unused substitude code
metze
2007-10-10 14:10:01 -05:00
Stefan Metzmacher
3b2936a431 r16735: vista beta2 reuses the tcp connect where it does the
SMB negprot

metze
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
6164d1e22e r16464: split client and server min/max protocol settings
metze
2007-10-10 14:09:29 -05:00
Jelmer Vernooij
3ef9326386 r15304: Fix smbd build, more updates on getting --enable-dso to build again 2007-10-10 14:05:08 -05:00
Stefan Metzmacher
67a42a8097 r14041: be a bit less verbose
metze
2007-10-10 13:52:38 -05:00
Andrew Bartlett
9c8350c64b r13911: Make these debug messages clearer. 2007-10-10 13:52:23 -05:00
Stefan Metzmacher
e6275db7b9 r13870: prefix more functions with smbsrv_
metze
2007-10-10 13:52:19 -05:00
Stefan Metzmacher
2af9663275 r13865: prefix functions with smbsrv_
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 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
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
Stefan Metzmacher
5fea278cb6 r11786: move all SMB protocol specific stuff to smb_server/smb/
metze
2007-10-10 13:46:27 -05:00