summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2012-03-09Fix up Christian Ambach's multi-credit code - the CreditCharge field is a ↵Jeremy Allison1-2/+2
16-bit int read, not a 32-bit one.
2012-03-09s3:smb2_server validate message ids with largemtuChristian Ambach1-27/+56
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-09s3:smb2_server verify creditchargeChristian Ambach6-0/+37
for all requests that have max_???? checks, also do a check of the creditcharge the client has sent (when using largemtu) Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-09s3:smb2_server add function to verify creditchargeChristian Ambach2-0/+42
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-09s3:smb2_server: announce LargeMTU for SMB2.1Christian Ambach1-4/+27
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-09s3:smb2_server: add supports_multicredit to sconnChristian Ambach1-0/+1
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-09s3:smb2_server use the correct variables for max read/writeChristian Ambach1-2/+2
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-09s3: asprintf->talloc_asprintfVolker Lendecke1-4/+6
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 9 19:01:06 CET 2012 on sn-devel-104
2012-03-09s3: Replace a SMB_ASSERT with an error returnVolker Lendecke1-1/+5
2012-03-08s3-auth: Follow auth_ntlmssp and use auth4_context for Session SetupAndrew Bartlett3-45/+22
This patch ensures consistency in behaviour between NTLMSSP and NTLM session setup handlers. By calling the same layer that auth_ntlmssp calls, we can not only allow redirection of all authentication to the AD DC, we ensure that map to guest and username map handling is consistent, even in the file server alone. Andrew Bartlett
2012-03-07s3: piddir creation fix.Ira Cooper1-0/+3
Since the piddir got moved from the lockdir by default, the default piddir wasn't getting created stopping some configurations from running. Signed-off-by: Jeremy Allison <jra@samba.org>
2012-03-07s3-rpc_server: Register embedded RPC services after starting lsasd and spoolssdAndrew Bartlett1-4/+4
This ensures that these services are not accidentally registered in these child processes. Andrew Bartlett
2012-03-07s3-smbd make change_to_user_by_session staticAndrew Bartlett2-4/+2
2012-03-06s3:smbd: keep 'num_files' and 'files' directly under smbd_server_connectionStefan Metzmacher2-8/+9
The plan is to have files_struct as some kind of low level abstraction for a smb1/smb2 opens, that can be used by SMB_VFS modules. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Mar 6 23:04:01 CET 2012 on sn-devel-104
2012-03-06s3:smbd: keep 'num_connections' and 'connections' directly under ↵Stefan Metzmacher5-154/+52
smbd_server_connection The plan is to have connection_struct as some kind of low level abstraction for a smb1/smb2 tree connects, that can be used by SMB_VFS modules. metze
2012-03-06s3:smbd: keep 'num_users' and 'users' directly under smbd_server_connectionStefan Metzmacher4-20/+17
The plan is to have users_struct as some kind of low level abstraction for a smb1/smb2 session, that can be used by SMB_VFS modules. metze
2012-03-06s3:msdfs: set the 'cnum' field to invalid for faked connection_structsStefan Metzmacher1-0/+1
metze
2012-03-06s3: Move a talloc_strdup out of the main code pathVolker Lendecke1-15/+31
This is only used for AS_GUEST requests Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Mar 6 14:29:50 CET 2012 on sn-devel-104
2012-03-05s3: Move the drain_socket on error to reply_write_and_XVolker Lendecke2-9/+9
That's the only case where this can happen, so we should not clutter the main code path.
2012-03-05s3: Use "goto out;" in reply_write_and_XVolker Lendecke1-18/+9
2012-03-05s3: Remove "size" param from switch_messageVolker Lendecke1-3/+3
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 5 15:13:49 CET 2012 on sn-devel-104
2012-03-05s3: Remove "size" param from smb_dumpVolker Lendecke1-4/+5
2012-03-04s3-smbd: vuser and session_info cannot be NULL hereAndrew Bartlett1-37/+31
The callers always supply it. (this is a hold-over from the security=share removal). Andrew Bartlett
2012-03-04s3-auth: Remove security=share (depricated since 3.6).Andrew Bartlett10-613/+63
This patch removes security=share, which Samba implemented by matching the per-share password provided by the client in the Tree Connect with a selection of usernames supplied by the client, the smb.conf or guessed from the environment. The rationale for the removal is that for the bulk of security=share users, we just we need a very simple way to run a 'trust the network' Samba server, where users mark shares as guest ok. This is still supported, and the smb.conf options are documented at https://wiki.samba.org/index.php/Public_Samba_Server At the same time, this closes the door on one of the most arcane areas of Samba authentication. Naturally, full user-name/password authentication remain available in security=user and above. This includes documentation updates for username and only user, which now only do a small amount of what they used to do. Andrew Bartlett -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SHARE | | security=share | | | | | | 5 March | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
2012-03-04s3:smbd/globals.h: remove unused pollfd pointerStefan Metzmacher1-6/+0
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Mar 4 23:18:10 CET 2012 on sn-devel-104
2012-03-04change low FDs are handled in SambaAndrew Bartlett1-10/+2
We now only close fds 0, 1, 2 when we are a forked daemon, and take care not to close a file descriptor that we might need for foreground stdin monitoring. This should fix stdout logging in the lsa and epmapper deamons (ie in make test). Andrew Bartlett
2012-03-03s3:smbd:smb2_write: improve logging in the error caseMichael Adam1-4/+14
2012-03-02s3:smb2_server: use SMB2_WATCH_TREEChristian Ambach1-1/+1
it makes the code easier to understand if it uses the names specified in MS-SMB2 instead of just the underlying values
2012-03-02s3:smb2_server fix a typoChristian Ambach1-1/+1
2012-03-03s3: Fix some blank line endingsVolker Lendecke1-5/+5
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 3 03:41:03 CET 2012 on sn-devel-104
2012-03-02s3: Further fix for bug 8777Brad Smith1-2/+2
2012-03-02s3: Enable statvfs usage on NetBSDVolker Lendecke1-30/+30
linux_statvfs is pretty much what you use when you have susv4. No real code change, this moves linux_statvfs to the bottom of the (LINUX) to #ifdef (STAT_STAVFS).
2012-03-01Add open_dir_with_privilege() to ensure we're opening the correct directory ↵Jeremy Allison5-3/+72
when doing backup requests. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 1 03:50:40 CET 2012 on sn-devel-104
2012-02-29Implement FLAG_TRANS2_FIND_BACKUP_INTENT for trans2 with privileges.Jeremy Allison1-4/+46
2012-02-29Add accessor functions to set a bool "priv" on a directory handle. Not yet ↵Jeremy Allison2-0/+13
used, but will be part of FLAG_TRANS2_FIND_BACKUP_INTENT code.
2012-02-29Add the implementation of check_reduced_name_with_privilege(). Now to plumb intoJeremy Allison4-8/+161
SMB1 requests.
2012-02-29Add check_reduced_name_with_privilege(), filename_convert_with_privilege() ↵Jeremy Allison3-5/+103
(currently unimplemented) in order to prepare for adding SeBackup/SeRestore code to the main fileserver. Not yet plumbed into the main SMB1/SMB2 code.
2012-02-29s3: Introduce "req" helper var in reply_lockingX_successVolker Lendecke1-3/+5
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Feb 29 03:08:53 CET 2012 on sn-devel-104
2012-02-29s3: Fix a const warningVolker Lendecke1-1/+1
2012-02-28s3: More fix for smbd -iVolker Lendecke1-1/+1
We need a full re-initialize, otherwise we don't re-init the USR1 signal handler
2012-02-28Fix problem reported by Tom Lee <tlee2951@gmail.com> - when calculatingJeremy Allison1-3/+28
the share security mask, take priviliges into account for the connecting user. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Feb 28 20:21:26 CET 2012 on sn-devel-104
2012-02-28smbd: detect EOF on stdin in --foreground modeAndrew Tridgell1-0/+25
if EOF is detected on stdin then exit
2012-02-27libcli/smb/smb2_signing: pass down 'protocol' to smb2_signing_[sign|check]_pdu()Stefan Metzmacher1-0/+4
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Feb 27 14:26:32 CET 2012 on sn-devel-104
2012-02-27s3-param: Align lp_{max,min}protocol with lib/param namesAndrew Bartlett3-12/+12
This adds an alisas to ensure that both our loadparm systems know all the names. I would like to move to the 'server ..' name as canonical, and this will be raised on the list. Andrew Bartlett
2012-02-25s3: Fix a typoVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Feb 25 11:16:41 CET 2012 on sn-devel-104
2012-02-25s3: Fix bug 8777, sys_statvfs() wrapper support for OpenBSD/FreeBSD/DragonFlyBrad Smith1-3/+40
2012-02-25s3-auth rename vuid_serverinfo to session_infoAndrew Bartlett1-8/+8
This matches the name used elsewhere in the code. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Feb 25 05:24:19 CET 2012 on sn-devel-104
2012-02-25Move dptr code over to TALLOC.Jeremy Allison1-18/+9
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 25 03:50:24 CET 2012 on sn-devel-104
2012-02-24Make dptr_path() and dptr_wcard() const.Jeremy Allison3-7/+5
2012-02-24Fix const warnings.Jeremy Allison1-2/+2
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Feb 24 23:10:56 CET 2012 on sn-devel-104