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

300 Commits

Author SHA1 Message Date
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
Stefan Metzmacher
96345b1c46 r11724: - move checks packet size and protocol version,
before we create the request structure
- move code into one function

metze
2007-10-10 13:46:18 -05:00
Andrew Tridgell
6a47cd65a8 r11713: separate out the setting of the fde in the packet context from the
enabling of packet serialisation
2007-10-10 13:46:17 -05:00
Stefan Metzmacher
d677ebf43d r11650: - as every call that goes down to the ntvfs layer need a valid tcon and session
ntcancel also needs to have AS_USER
- move the SIGNING_NO_REPLY logic as global option, because this needs to be set
  for the error replies too.
- as we currently don't know how to generate signatures for ntcancel replies
  we just skip the sending of the reply
- w2k3 first checks the VUID and then the TID, so we do now
- ntcreateX also uses ERRbaduid when getting a wrong VUID

metze
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
0c520e19a0 r11646: fix typos
metze
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
913d5356eb r11643: fix compiler warnings
metze
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
9399e4d260 r11641: remove unused parameter vuid
metze
2007-10-10 13:46:05 -05:00
Stefan Metzmacher
5fb5d1a864 r11640: just a nicer format, and make adding more special cases easier
metze
2007-10-10 13:46:05 -05:00
Stefan Metzmacher
3389544c2b r11637: we need a session and a tcon for ntioctl() and ntrename()
metze
2007-10-10 13:46:03 -05:00
Andrew Tridgell
6ab8082234 r11621: some minor fixes from comments by metze 2007-10-10 13:45:59 -05:00
Andrew Tridgell
9eee7bafa1 r11607: switched the smb server to use the generic packet send code 2007-10-10 13:45:58 -05:00
Andrew Tridgell
0fc496bb6f r11603: converted the smb server to use the new generic packet code 2007-10-10 13:45:57 -05:00
Andrew Bartlett
abff53b633 r11367: Ensure to intialise the new logon_parameters (0 for session setups).
Andrew Bartlett
2007-10-10 13:45:26 -05:00
Jelmer Vernooij
24e1030090 r11244: Relative path names in .mk files 2007-10-10 13:45:06 -05:00
Jelmer Vernooij
7fffc5c917 r11214: Remove scons files (see http://lists.samba.org/archive/samba-technical/2005-October/043443.html) 2007-10-10 13:45:03 -05:00
Andrew Bartlett
205f77c579 r11200: Reposition the creation of the kerberos keytab for GSSAPI and Krb5
authentication.  This pulls the creating of the keytab back to the
credentials code, and removes the special case of 'use keberos keytab
= yes' for now.

This allows (and requires) the callers to specify the credentials for
the server credentails to GENSEC.  This allows kpasswdd (soon to be
added) to use a different set of kerberos credentials.

The 'use kerberos keytab' code will be moved into the credentials
layer, as the layers below now expect a keytab.

We also now allow for the old secret to be stored into the
credentials, allowing service password changes.

Andrew Bartlett
2007-10-10 13:45:00 -05:00
Volker Lendecke
256cf928d7 r11120: calling_name is used later in sesssetup_nt1, so hang the names to the right
talloc context.

Volker
2007-10-10 13:44:53 -05:00
Andrew Bartlett
11957c5f37 r10946: Use the right name for the remote workstation, and always initialise it.
Should fix a valgrind error volker is seeing.

Andrew Bartlett
2007-10-10 13:39:44 -05:00