summaryrefslogtreecommitdiffstats
path: root/source3/include
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:libsmb: move cli->vuid to cli->smb1.uid and hide it behind ↵Stefan Metzmacher2011-07-211-1/+1
| | | | | | cli_state_[g|s]et_uid() metze
* s3-rpc_server: Move pipe/handles functionsSimo Sorce2011-07-211-192/+2
| | | | | | | | | | | | Put InternalPipes related functions in rpc_handles.c and out of rpc_ncacn_np.c rpc_handles.c is the only file that really uses them after all and ncacn_np.c is the wrong place for that stuff. While ther remove unnecessary wrapper functions now that the InternalPipes static variable is directly accessible. Also move all pipes_struct related header stuff in its own rpc_pipes.h header. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:afs make path argument to afs_syscall constChristian Ambach2011-07-211-1/+1
|
* s3:libsmb: move cli->cnum to cli->smb1.tid and hide it behind ↵Stefan Metzmacher2011-07-201-1/+1
| | | | | | cli_state_[g|s]et_tid() metze
* s3:libsmb: move cli->pid to cli->smb1.pid and hide it behind cli_[g|s]etpid()Stefan Metzmacher2011-07-201-1/+1
| | | | metze
* s3:libsmb: add cli->smb1.vc_num and hide it behind cli_state_get_vc_num()Stefan Metzmacher2011-07-201-0/+1
| | | | | | This makes it clearer, why we send the pid value in the session setup. metze
* s3:libsmb: move cli->mid to cli->smb1.midStefan Metzmacher2011-07-201-1/+4
| | | | metze
* s3-auth Use the common auth_session_infoAndrew Bartlett2011-07-204-21/+21
| | | | | | | | | | | This patch finally has the same structure being used to describe the authorization data of a user across the whole codebase. This will allow of our session handling to be accomplished with common code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth import auth3_session_info into IDLAndrew Bartlett2011-07-201-24/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth remove extra from auth3_session_infoAndrew Bartlett2011-07-201-7/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Remove unused nss_token variableAndrew Bartlett2011-07-201-5/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth: Remove unused lm_session_key from auth3_session_infoAndrew Bartlett2011-07-201-1/+0
| | | | | | | | | | | | The long term authorization state needs only the final, negotiated session key, and not the original LM key that may possibly have been an input. The special case of the guest account simply needs both values filled back in with the zeros to avoid changing behaviour in the cached server_info. Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use system boolean in auth_user_info_unixAndrew Bartlett2011-07-201-2/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use guest boolean in auth_user_info_unixAndrew Bartlett2011-07-201-1/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use struct auth_user_info_unix for unix_name and sanitized_usernameAndrew Bartlett2011-07-201-10/+1
| | | | | | | | This is closer to the layout of struct auth_session_info in auth.idl Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use *unix_token rather than utok in struct auth3_session_infoAndrew Bartlett2011-07-201-1/+1
| | | | | | | | | | | | | | | | This brings this structure one step closer to the struct auth_session_info. A few SMB_ASSERT calls are added in some key places to ensure that this pointer is initialised, to make tracing any bugs here easier in future. NOTE: Many of the users of this structure should be reviewed, as unix and NT access checks are mixed in a way that should just be done using the NT ACL. This patch has not changed this behaviour however. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Use struct auth3_session_info outside the auth subsystemAndrew Bartlett2011-07-204-21/+21
| | | | | | | | | | | | | | | This seperation between the structure used inside the auth modules and in the wider codebase allows for a gradual migration from struct auth_serversupplied_info -> struct auth_session_info (from auth.idl) The idea here is that we keep a clear seperation between the structure before and after the local groups, local user lookup and the session key modifications have been processed, as the lack of this seperation has caused issues in the past. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Add struct auth3_session_info to aid transition to auth_session infoAndrew Bartlett2011-07-201-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow a gradual conversion of the required elements from the current struct auth_serversupplied_info. This commit adds the structure definition and some helper functions to copy between the two structures. At this stage these structures and functions are IDENTICAL to the existing code, and so show the past history of that code. The plan is to slowly modify them over the course of the patch series, so that the changes being made a clear. By using a seperate structure to auth_serversupplied_info we can remove elements that are not needed after the authentication, and we can choose a layout that best reflects the needs of runtime users, rather than the internals of the authentication subsystem. By eventually using the auth_session_info from auth.idl, we will gain a single session authorization structure across the whole codebase, allowing more code to be shared, and a much more transparent process for forwarding authorization credentials over the named pipe proxy. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-lib Remove unused get_cmdline_auth_info_copyAndrew Bartlett2011-07-141-2/+0
|
* s4-param finish services hooks for s4->s3 loadparm contextAndrew Bartlett2011-07-141-0/+2
|
* s3:libsmb: remove unused cli_smb_inbuf()Stefan Metzmacher2011-07-131-1/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jul 13 01:19:51 CEST 2011 on sn-devel-104
* s3:libsmb: remove unused cli_oplock_handler()Stefan Metzmacher2011-07-121-3/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jul 12 10:53:52 CEST 2011 on sn-devel-104
* s3:include: remove SMBkeepaliveStefan Metzmacher2011-07-121-1/+0
| | | | metze
* s3:libsmb: remove unused cli->privilegesStefan Metzmacher2011-07-121-1/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jul 12 09:30:49 CEST 2011 on sn-devel-104
* s3:libsmb: remove unused cli_set_port()Stefan Metzmacher2011-07-111-1/+0
| | | | metze
* s3:libsmb: also remember the local socket address after connectStefan Metzmacher2011-07-111-0/+1
| | | | metze
* s3:libsmb: remove unused cli->inbuf and cli->bufsizeStefan Metzmacher2011-07-081-2/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jul 8 15:21:46 CEST 2011 on sn-devel-104
* s3:libsmb: remove unused smb_dos_errstr()Stefan Metzmacher2011-07-081-1/+0
| | | | metze
* s3:libsmb: don't use the cli->inbuf to store the last errorStefan Metzmacher2011-07-082-12/+1
| | | | | | | We keep the raw error in cli->raw_status now, until we fixed all caller to get the NTSTATUS from the function calls. metze
* s3:libsmb: remove unused enum smb_read_errors infrastructureStefan Metzmacher2011-07-083-19/+0
| | | | metze
* lib/param: Merge struct loadparm_service into commonAndrew Bartlett2011-07-081-1/+1
| | | | | | | | | | | | | | | | | This is handled by a common header and a .c file that is included into both loadparm.c files. In the process, _lp functions were renamed to lp__ to allow the common function definition declarations to be used by source3 and source4 (which have different macro definitions). The only parameter to change type is 'strict_locking' which was a bool, and is now an int, to accommodate the 'Auto' value from source3. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Jul 8 12:35:56 CEST 2011 on sn-devel-104
* lib/util Move bitmap.c to lib/utilAndrew Bartlett2011-07-082-14/+0
|
* param: Add hooks to s3 parm_struct and the parameters void * pointerAndrew Bartlett2011-07-081-1/+4
| | | | | | | | This is to that the pyparam hooks can use the hooks to connect with the s3 loadparm system. This now also includes per-service parameters. Andrew Bartlett
* s3-param Remove lp_set_passdb_backend()Andrew Bartlett2011-07-081-1/+0
|
* s3:libsmb: add smb2cli_tcon*() and smb2cli_tdis*()Stefan Metzmacher2011-07-081-0/+5
| | | | | | Based on the initial patch from Volker Lendecke <vl@samba.org>. metze
* s3:libsmb: add smb2cli_negprot*()Stefan Metzmacher2011-07-081-0/+11
| | | | | | Based on the initial patch from Volker Lendecke <vl@samba.org>. metze
* s3:libsmb: add basic smb2 client infrastructureStefan Metzmacher2011-07-081-0/+7
| | | | | | Based on the initial patch from Volker Lendecke <vl@samba.org>. metze
* s3:libsmb: finally remove unused cli_state->outbufStefan Metzmacher2011-07-071-1/+0
| | | | metze
* s3:libsmb: use clistr_pull_talloc() for short_name in interpret_long_filename()Stefan Metzmacher2011-07-071-1/+1
| | | | metze
* s3-printing: move spoolss_create_default_devmode/secdesc to init_spoolss.hGünther Deschner2011-07-071-7/+0
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: move driver_info_ctr_to_info8 to init_spoolss.hGünther Deschner2011-07-071-3/+0
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: move os2 related functions to printing/nt_printing_os2.c.Günther Deschner2011-07-071-2/+0
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-build We no longer require to redefine _SAMBA_BUILD_Andrew Bartlett2011-07-061-5/+0
|
* libcli/smb move FILE_TYPE constants in commonAndrew Bartlett2011-07-061-8/+0
| | | | | | This allows us to remove another _SAMBA_BUILD_ conditional Andrew Bartlett
* libcli/smb move enum protocol_types to a common headerAndrew Bartlett2011-07-061-12/+0
|
* s3: Calculate&store the maximum share access maskVolker Lendecke2011-07-051-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Return "granted" from share_access_checkVolker Lendecke2011-07-051-2/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-lib Move event_add_idle() to source3/lib/events.cAndrew Bartlett2011-07-041-1/+9
| | | | | | This allows libauth not to depend on smbd_base. Andrew Bartlett
* s3: RIP 'struct client_address'.Andreas Schneider2011-07-041-5/+0
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-rpc_server: Remove client_id and server_id from pipes struct.Andreas Schneider2011-07-041-2/+0
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>