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

337 Commits

Author SHA1 Message Date
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
Jelmer Vernooij
d2f80c0457 r10588: Remove more unused files, macros 2007-10-10 13:39:08 -05:00
Jelmer Vernooij
b53313dc51 r10586: Add MergedObject() builder. Default to Library() rather
then StaticLibrary()
2007-10-10 13:39:08 -05:00
Jelmer Vernooij
a5b88bcd42 r10513: Reduce some use of pstring. The main reason some parts of the code still
use pstring is next_token() now.
2007-10-10 13:38:58 -05:00
Jelmer Vernooij
4f0d7f75b9 r10348: Add scons scripts for remaining subsystems. Most subsystems build now,
but final linking still fails (as does generating files asn1, et, idl and proto
files)
2007-10-10 13:38:30 -05:00
Tim Potter
5f1cd6382c r10256: Fix some unhandled enumeration warnings. There's one still left,
RAW_SEARCH_UNIX_INFO find_fill_info(), which I think is a bug.
2007-10-10 13:38:12 -05:00
Alexander Bokovoy
95d96c79a5 r9321: Fix potential bug found by Coverity. src_len has to be int but later we do pass it as size_t. In case src_len is negative, we need to register a failure and return to the caller 2007-10-10 13:33:24 -05:00
Andrew Tridgell
cf1a7bbe96 r8893: fixed the valgrind error on stream termination due to prototol errors 2007-10-10 13:30:15 -05:00
Jelmer Vernooij
fac77f5fa2 r8811: Fix the build.. 2007-10-10 13:30:07 -05:00
Andrew Bartlett
c3cc14542e r8706: My previous patch oversimplied the previous change to session setup -
we didn't cope with the 'anonymous NTLM under SPNEGO' login.

Andrew Bartlett
2007-10-10 13:29:56 -05:00
Andrew Bartlett
ecbd2235a3 r8700: Propmted by tridge's need to do plaintext auth in ejs, rework the
user_info strcture in auth/

This moves it to a pattern much like that found in ntvfs, with
functions to migrate between PAIN, HASH and RESPONSE passwords.

Instead of make_user_info*() functions, we simply fill in the control
block in the callers, per recent dicussions on the lists.  This
removed a lot of data copies as well as error paths, as we can grab
much of it with talloc.

Andrew Bartlett
2007-10-10 13:29:55 -05:00
Andrew Tridgell
b1d577f48d r8658: move use of lp_security() and lp_nt_status_support() into the connection structure.
This massively reduces the number of lp_*() calls made
2007-10-10 13:29:50 -05:00
Andrew Tridgell
b40fb6a456 r8627: fixed a big memory leak in the spnego gensec code in session
setup. Andrew, please check over this.

What happens is this:

 - run the BASE-SECLEAK test
 - with each failed session setup using spnego a gensec ctx is leaked into the smb_conn structure
 - after the client disconnects these are finally cleaned up as they
   are all children of the connection structure
 - the cleanup of the millions of memory objects takes long enough
   that the next operation in test_posix.sh sometimes fails with a timeout

Andrew, can you also look at the talloc_reference() on line 332 of
sesssetup.c ? I suspect it isn't needed (I don't think it does any
actual harm though)
2007-10-10 13:29:45 -05:00
Andrew Tridgell
658befc1e4 r8577: added management calls to list current tree connects 2007-10-10 13:29:40 -05:00