summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Make sure the andX chains are ended correctlyVolker Lendecke2012-03-105-0/+33
| | | | Normally chain_reply took care of this. This will go away soon.
* s3: Fix a 64-bit warningVolker Lendecke2012-03-101-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 10 15:27:09 CET 2012 on sn-devel-104
* Ensure the right tsocket.h is included.Jeremy Allison2012-03-101-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 10 03:47:04 CET 2012 on sn-devel-104
* Fix up Christian Ambach's multi-credit code - the CreditCharge field is a ↵Jeremy Allison2012-03-091-2/+2
| | | | 16-bit int read, not a 32-bit one.
* s3:smb2_server validate message ids with largemtuChristian Ambach2012-03-091-27/+56
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server verify creditchargeChristian Ambach2012-03-096-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>
* s3:smb2_server add function to verify creditchargeChristian Ambach2012-03-092-0/+42
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server: announce LargeMTU for SMB2.1Christian Ambach2012-03-091-4/+27
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server: add supports_multicredit to sconnChristian Ambach2012-03-091-0/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server use the correct variables for max read/writeChristian Ambach2012-03-091-2/+2
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: asprintf->talloc_asprintfVolker Lendecke2012-03-091-4/+6
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 9 19:01:06 CET 2012 on sn-devel-104
* s3: Replace a SMB_ASSERT with an error returnVolker Lendecke2012-03-091-1/+5
|
* s3-auth: Follow auth_ntlmssp and use auth4_context for Session SetupAndrew Bartlett2012-03-083-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
* s3: piddir creation fix.Ira Cooper2012-03-071-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>
* s3-rpc_server: Register embedded RPC services after starting lsasd and spoolssdAndrew Bartlett2012-03-071-4/+4
| | | | | | | This ensures that these services are not accidentally registered in these child processes. Andrew Bartlett
* s3-smbd make change_to_user_by_session staticAndrew Bartlett2012-03-072-4/+2
|
* s3:smbd: keep 'num_files' and 'files' directly under smbd_server_connectionStefan Metzmacher2012-03-062-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
* s3:smbd: keep 'num_connections' and 'connections' directly under ↵Stefan Metzmacher2012-03-065-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
* s3:smbd: keep 'num_users' and 'users' directly under smbd_server_connectionStefan Metzmacher2012-03-064-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
* s3:msdfs: set the 'cnum' field to invalid for faked connection_structsStefan Metzmacher2012-03-061-0/+1
| | | | metze
* s3: Move a talloc_strdup out of the main code pathVolker Lendecke2012-03-061-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
* s3: Move the drain_socket on error to reply_write_and_XVolker Lendecke2012-03-052-9/+9
| | | | | That's the only case where this can happen, so we should not clutter the main code path.
* s3: Use "goto out;" in reply_write_and_XVolker Lendecke2012-03-051-18/+9
|
* s3: Remove "size" param from switch_messageVolker Lendecke2012-03-051-3/+3
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Mar 5 15:13:49 CET 2012 on sn-devel-104
* s3: Remove "size" param from smb_dumpVolker Lendecke2012-03-051-4/+5
|
* s3-smbd: vuser and session_info cannot be NULL hereAndrew Bartlett2012-03-041-37/+31
| | | | | | | The callers always supply it. (this is a hold-over from the security=share removal). Andrew Bartlett
* s3-auth: Remove security=share (depricated since 3.6).Andrew Bartlett2012-03-0410-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 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
* s3:smbd/globals.h: remove unused pollfd pointerStefan Metzmacher2012-03-041-6/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Mar 4 23:18:10 CET 2012 on sn-devel-104
* change low FDs are handled in SambaAndrew Bartlett2012-03-041-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
* s3:smbd:smb2_write: improve logging in the error caseMichael Adam2012-03-031-4/+14
|
* s3:smb2_server: use SMB2_WATCH_TREEChristian Ambach2012-03-021-1/+1
| | | | | it makes the code easier to understand if it uses the names specified in MS-SMB2 instead of just the underlying values
* s3:smb2_server fix a typoChristian Ambach2012-03-021-1/+1
|
* s3: Fix some blank line endingsVolker Lendecke2012-03-031-5/+5
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 3 03:41:03 CET 2012 on sn-devel-104
* s3: Further fix for bug 8777Brad Smith2012-03-021-2/+2
|
* s3: Enable statvfs usage on NetBSDVolker Lendecke2012-03-021-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).
* Add open_dir_with_privilege() to ensure we're opening the correct directory ↵Jeremy Allison2012-03-015-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
* Implement FLAG_TRANS2_FIND_BACKUP_INTENT for trans2 with privileges.Jeremy Allison2012-02-291-4/+46
|
* Add accessor functions to set a bool "priv" on a directory handle. Not yet ↵Jeremy Allison2012-02-292-0/+13
| | | | used, but will be part of FLAG_TRANS2_FIND_BACKUP_INTENT code.
* Add the implementation of check_reduced_name_with_privilege(). Now to plumb intoJeremy Allison2012-02-294-8/+161
| | | | SMB1 requests.
* Add check_reduced_name_with_privilege(), filename_convert_with_privilege() ↵Jeremy Allison2012-02-293-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.
* s3: Introduce "req" helper var in reply_lockingX_successVolker Lendecke2012-02-291-3/+5
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Feb 29 03:08:53 CET 2012 on sn-devel-104
* s3: Fix a const warningVolker Lendecke2012-02-291-1/+1
|
* s3: More fix for smbd -iVolker Lendecke2012-02-281-1/+1
| | | | | We need a full re-initialize, otherwise we don't re-init the USR1 signal handler
* Fix problem reported by Tom Lee <tlee2951@gmail.com> - when calculatingJeremy Allison2012-02-281-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
* smbd: detect EOF on stdin in --foreground modeAndrew Tridgell2012-02-281-0/+25
| | | | if EOF is detected on stdin then exit
* libcli/smb/smb2_signing: pass down 'protocol' to smb2_signing_[sign|check]_pdu()Stefan Metzmacher2012-02-271-0/+4
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Feb 27 14:26:32 CET 2012 on sn-devel-104
* s3-param: Align lp_{max,min}protocol with lib/param namesAndrew Bartlett2012-02-273-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
* s3: Fix a typoVolker Lendecke2012-02-251-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Feb 25 11:16:41 CET 2012 on sn-devel-104
* s3: Fix bug 8777, sys_statvfs() wrapper support for OpenBSD/FreeBSD/DragonFlyBrad Smith2012-02-251-3/+40
|
* s3-auth rename vuid_serverinfo to session_infoAndrew Bartlett2012-02-251-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