summaryrefslogtreecommitdiffstats
path: root/source3/smbd/globals.h
Commit message (Collapse)AuthorAgeFilesLines
* s3:smbd:smb2: change smbXsrv_session0 to smbXsrv_session in struct user_struct.Michael Adam2012-07-031-1/+1
| | | | | smbXsrv_session0 is the internal name of (current) version 0 of the structure. Externally, only smbXsrv_session should be used.
* Make schedule_deferred_open_message_smb2() return an indication of success.Jeremy Allison2012-06-301-1/+1
|
* s3:smbd: make use of smbXsrv_open for smb1/2/3Stefan Metzmacher2012-06-291-3/+11
| | | | | | | | | | | | This makes sure we generate unique persistent file ids, which are stored in smbXsrv_open_global.tdb. Pair-Programmed-With: Michael Adam <obnox@samba.org> metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 29 21:01:11 CEST 2012 on sn-devel-104
* s3:smbd: add smbXsrv_open* infrastructureStefan Metzmacher2012-06-291-0/+20
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smb2_server: implement credit granting similar to windowsStefan Metzmacher2012-06-291-0/+3
| | | | | | This makes it much easier to compare traces. metze
* s3:smb2_server: make sure we don't grant more credits than we allowStefan Metzmacher2012-06-291-4/+39
| | | | | | | | | If the client hasn't consumed the lowest seqnum, but the distance between lowest and highest seqnum has reached max credits. In that case we should stop granting credits. metze
* s3:smbXsrv_session: add smb2srv_session_close_previous_send/recvStefan Metzmacher2012-06-251-0/+7
| | | | metze
* s3:smbd: make use of smbXsrv_session for smb1Stefan Metzmacher2012-06-251-8/+0
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: make use of smbXsrv_tcon for smb1Stefan Metzmacher2012-06-251-4/+0
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: make use of smbXsrv_tcon and smbXsrv_session for smb2Stefan Metzmacher2012-06-251-38/+2
| | | | | | | | | The removes the protocol specific smbd_smb2_session and smbd_smb2_tcon. Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smb2_sesssetup: make use of the smbXsrv_session infrastructureStefan Metzmacher2012-06-251-10/+4
| | | | | | | We still have smbd_smb2_session as primary structure, but that will went away once we got rid of smbd_smb2_tcon. metze
* s3:smbd: add smbXsrv_tcon infrastructureStefan Metzmacher2012-06-251-0/+21
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: add smbXsrv_session infrastructureStefan Metzmacher2012-06-251-0/+19
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: add smbXsrv_version_* infrastructureStefan Metzmacher2012-06-251-0/+3
| | | | metze
* s3:smbd: fix the build with the --with-profiling-data optionStefan Metzmacher2012-06-201-0/+2
| | | | metze
* s3:smb2_server: remember the request_time on an incoming requestStefan Metzmacher2012-06-151-0/+2
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 15 09:17:33 CEST 2012 on sn-devel-104
* s3:smbd: change user_struct->vuid to uint64_tStefan Metzmacher2012-06-061-2/+2
| | | | | | | | | | Only sconn->smb1.sessions.next_vuid remains as uint16_t, so that we do not generate larger values yet. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jun 6 12:07:33 CEST 2012 on sn-devel-104
* s3:smbd: change conn_ctx->vuid to uint64_tStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:smbd: move struct user_struct to globals.hStefan Metzmacher2012-06-061-0/+14
| | | | metze
* s3:smbd: use 'struct user_struct' instead of typedef'ed 'user_struct'Stefan Metzmacher2012-06-061-1/+1
| | | | metze
* build: Rationalise AIO support in configure, ensure on by defaultAndrew Bartlett2012-06-061-1/+1
| | | | | | | | | With this change, the define to check for AIO is HAVE_AIO, consistant with other subsystems. It is now also on by default in the autoconf build, as it has been for waf. Andrew Bartlett
* s3:smbd: move global smbd_msg_state to smbXsrv_connectionStefan Metzmacher2012-05-251-1/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri May 25 11:01:27 CEST 2012 on sn-devel-104
* s3:smbd: move global koplocks to smbd_server_connectionStefan Metzmacher2012-05-251-2/+1
| | | | metze
* s3:smbd: move global oplocks vars to smbd_server_connectionStefan Metzmacher2012-05-251-3/+6
| | | | metze
* s3:smbd: remove global 'smbd_server_conn' !!!Stefan Metzmacher2012-05-241-1/+1
| | | | | | | | | | For now we still use a global 'global_smbXsrv_connection' in order to pass the connection state to exit_server*(). metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu May 24 20:07:20 CEST 2012 on sn-devel-104
* s3:smbd: introduce struct smbXsrv_connectionStefan Metzmacher2012-05-121-0/+37
| | | | | | | | | This will represent a transport connection for SMB 1 or 2 in the server. smbd_server_connection will slowly be moved to the SMB_VFS layer to satisfy the existing modules, but it will hopefully be protocol independend in future. metze
* s3: Remove the sys_notify dependency from notify_internalVolker Lendecke2012-03-231-0/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 23 12:12:51 CET 2012 on sn-devel-104
* s3: Move the notify_ctx to the smbd_server_connectionVolker Lendecke2012-03-211-0/+1
| | | | | | | | | We only need one notify_ctx per smbd. The notify_array can become quite large. It's based on absolute paths, so there's no point in having a copy of the complete array in memory multiple times. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Mar 21 14:26:07 CET 2012 on sn-devel-104
* s3:smb2_server add function to verify creditchargeChristian Ambach2012-03-091-0/+3
| | | | 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-auth: Follow auth_ntlmssp and use auth4_context for Session SetupAndrew Bartlett2012-03-081-1/+1
| | | | | | | | | | 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:smbd: keep 'num_files' and 'files' directly under smbd_server_connectionStefan Metzmacher2012-03-061-1/+2
| | | | | | | | | | 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-061-4/+3
| | | | | | | | | 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-061-2/+3
| | | | | | | 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-auth: Remove security=share (depricated since 3.6).Andrew Bartlett2012-03-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* s3-smbd Remove unused code now we always have SPNEGO via gensecAndrew Bartlett2012-02-161-3/+0
| | | | | | | | This was previously needed because SPNEGO was only available in the AD DC. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: remove pending_auth_data logicStefan Metzmacher2012-01-311-2/+0
| | | | | | This is handled by the gensec_spnego module. metze
* s3-auth use gensec directly rather than via auth_generic_stateAndrew Bartlett2012-01-051-1/+1
| | | | | | | | | This is possible because the s3 gensec modules are started as normal gensec modules, so we do not need a wrapper any more. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Remove the unused "file_existed" parameter from smbd_calculate_access_maskVolker Lendecke2012-01-031-1/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jan 3 15:16:50 CET 2012 on sn-devel-104
* s3-auth rename auth_ntlmssp_state -> auth_generic_stateAndrew Bartlett2011-12-221-1/+1
| | | | | | | | | This structure handles more than NTLMSSP now, at least when we are an AD DC and so changing the name may avoid some confusion in the future. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: remove unused sconn_server_id()Stefan Metzmacher2011-12-161-2/+0
| | | | metze
* s3:smbd/globals: remove unused msg_ctx_to_sconn()Stefan Metzmacher2011-12-151-2/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Dec 15 14:24:59 CET 2011 on sn-devel-104
* s3:smbd/server: maintain the list of child processes under smbd_parent_contextStefan Metzmacher2011-12-141-3/+0
| | | | metze
* s3:smbd/globals: change 'int am_parent' into 'struct smbd_parent_context ↵Stefan Metzmacher2011-12-141-1/+2
| | | | | | | | *am_parent' This is a short term solution on the way to get rid of 'am_parent' completely. metze
* s3:smbd/globals: remove unused extern declarationsStefan Metzmacher2011-12-131-2/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Dec 13 22:06:02 CET 2011 on sn-devel-104
* s3:smb2_server: use sconn->ev_ctx instead of sconn->smb2.event_ctxStefan Metzmacher2011-12-121-1/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Dec 12 16:08:59 CET 2011 on sn-devel-104
* s3:smbd: remember the event context on smbd_server_connectionStefan Metzmacher2011-12-121-0/+1
| | | | metze
* s3:smb2_server: pass explicit defer_times to smbd_smb2_request_pending_queue()Stefan Metzmacher2011-11-151-1/+2
| | | | metze
* s3:smb2_server: always send STATUS_PENDING responses, but delayed by 0.5 ↵Stefan Metzmacher2011-11-151-1/+1
| | | | | | | | milliseconds In future we'll pass the delay from the caller. metze