summaryrefslogtreecommitdiffstats
path: root/source3/include
Commit message (Collapse)AuthorAgeFilesLines
* auth: Remove .get_challenge (only used for security=server)Andrew Bartlett2012-07-031-11/+0
| | | | | | | | | | | | | With NTLMSSP, for NTLM2 we need to be able to set the effective challenge, so if we ever did use a module that needed this functionlity, we would downgrade to just NTLM. Now that security=server has been removed, we have no such module. This will make it easier to make the auth subsystem async, as we will not need to consider making .get_challenge async. Andrew Bartlett
* Add uint64_t mid field to the files_struct.Jeremy Allison2012-06-301-0/+1
| | | | Ensure it is initialized so we know what mid created this file.
* s3:smbd: make use of smbXsrv_open for smb1/2/3Stefan Metzmacher2012-06-291-0/+1
| | | | | | | | | | | | 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
* Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls.Jeremy Allison2012-06-281-0/+3
| | | | | | Will allow thread-specific credentials to be added by modifying the central definitions. Deliberately left the setXX[ug]id() call in popt as this is not used in Samba.
* s3:smb2_server: remove unused and confusing ↵Stefan Metzmacher2012-06-291-1/+0
| | | | | | DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR metze
* s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett2012-06-271-1/+1
| | | | | | | | | | | | | | | | | This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
* s3-printing: pass lpq command to job_submitDavid Disseldorp2012-06-261-1/+3
| | | | | | | | | | | Currently the generic print backend does not fill the printing backend job identifier (sysjob) on submission of a new job. The sysjob identifier is required to correctly map jobs in the printer queue to corresponding spoolss print jobs. Passing the lpq command to job_submit allows the generic print backend to check the printer queue for the new job following submission. This behaviour will come in a later commit.
* s3-printing: remove unused print_job_fname()David Disseldorp2012-06-261-1/+0
|
* s3-printing: return talloced print jobsDavid Disseldorp2012-06-261-1/+3
| | | | | | | | | print_job_find() currently returns print jobs to callers via a statically allocated variable, this is particularly messy as the device mode is talloced under the static variable. This change adds or passes a talloc context to all callers, giving them ownership of the returned print job.
* s3-printing: clean up print_job_pause/resume interfaceDavid Disseldorp2012-06-261-4/+4
| | | | | Currently both return a bool and sometimes set a werr pointer argument, always return werror instead.
* s3-printing: remove print_parse_jobid()David Disseldorp2012-06-261-1/+0
| | | | With all callers fixed, it is now safe to remove.
* s3-printing: rename queue->job sysjobDavid Disseldorp2012-06-261-1/+1
| | | | | | | | | | | | | | | Print jobs maintain two job identifiers, the jobid allocated by the spoolss layer (pj->jobid), and the job identifier defined by the printing backend (pj->sysjob). Printer job queues currently only contain a single job identifier variable (queue->job), the variable is sometimes representative of the spoolss layer job identifier, and more often representative of the printing backend id. This change renames the queue job identifier from queue->job to queue->sysjob, in preparation for a change to only store the printing backend identifier.
* s3-printing: store print jobid as part of struct printjobDavid Disseldorp2012-06-261-1/+2
| | | | | | | Printing code in some places relies upon the spool-file format to retrieve the print jobid. By storing the jobid as part of struct printjob, and hence in the printing TDB, we can move away from this ugly behaviour.
* s3:smbd: make use of smbXsrv_tcon for smb1Stefan Metzmacher2012-06-252-2/+1
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* s3:smbd: make use of smbXsrv_tcon and smbXsrv_session for smb2Stefan Metzmacher2012-06-251-0/+1
| | | | | | | | | The removes the protocol specific smbd_smb2_session and smbd_smb2_tcon. Pair-Programmed-With: Michael Adam <obnox@samba.org> metze
* util_tdb: move timeout chainlock variants from source3/lib/util/util_tdb.cRusty Russell2012-06-221-7/+0
| | | | | | | We're about to use them for dbwrap. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3:move serverid_equal() to serverid.cMichael Adam2012-06-211-0/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:util: rename procid_equal() to serverid_equal()Michael Adam2012-06-211-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:util: remove (now) unused cluster_id_equal()Michael Adam2012-06-211-2/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:include: add START/END_PROFILE_STAMP()Stefan Metzmacher2012-06-201-7/+23
| | | | | | This is needed when the profiling spans multiple functions. metze
* Revert "s3-lib Remove unused sys_fcntl_long()"Stefan Metzmacher2012-06-191-0/+1
| | | | | | | | This reverts commit 846a697e20478798288afb43cdb7a9f389a15c69. This is still used in source3/smbd/oplock_irix.c metze
* lib/param: Create a seperate server role for "active directory domain ↵Andrew Bartlett2012-06-151-1/+1
| | | | | | | | | | | | | | | controller" This will allow us to detect from the smb.conf if this is a Samba4 AD DC which will allow smarter handling of (for example) accidentially starting smbd rather than samba. To cope with upgrades from existing Samba4 installs, 'domain controller' is a synonym of 'active directory domain controller' and new parameters 'classic primary domain controller' and 'classic backup domain controller' are added. Andrew Bartlett
* s3:smbd: remember the request_time on an incoming requestStefan Metzmacher2012-06-151-0/+2
| | | | metze
* s3:vfs: change files_struct.fnum from int to uint64_tMichael Adam2012-06-151-1/+1
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 15 05:22:41 CEST 2012 on sn-devel-104
* s3:lib: add a utility function "fsp_fnum_dbg" for logging the fnum of an fspMichael Adam2012-06-151-0/+1
| | | | | | This is to unify logging of an files_struct. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd: change FNUM_FIELD_INVALID from -1 to 0Michael Adam2012-06-151-1/+1
| | | | | | | | | | | | This is in preparation for changing the type of files_struct.fnum to unit64_t. This can safely be done, since all checks have been converted to using FNUM_FIELD_INVALID and fsp->fnum is only ever set to either FNUM_FIELD_INVALID or some i + FILE_HANDLE_OFFSET with i >= 0 and FILE_HANDLE_OFFSET > 0. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:include: define FNUM_FIELD_INVALID - the invalid value for the fnumMichael Adam2012-06-151-0/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Add cli_state->pw_nt_hashVolker Lendecke2012-06-121-0/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Add user_auth_info->use_pw_nt_hashVolker Lendecke2012-06-121-0/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmbclient: Add OptionUseNTHashVolker Lendecke2012-06-122-0/+12
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Add CLI_FULL_CONNECTION_USE_NT_HASHVolker Lendecke2012-06-121-0/+1
| | | | | | ... as an indicator that the password supplied is the NT hash Signed-off-by: Stefan Metzmacher <metze@samba.org>
* S3: Add ntlmssp_set_password_hashVolker Lendecke2012-06-121-0/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmbclient: Make SMBC_call_auth_fn staticVolker Lendecke2012-06-121-9/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:include: change lock_struct->fnum to uint64_tMichael Adam2012-06-061-1/+1
| | | | | | | | | Note: this changes the format of brlock.tdb! Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Jun 6 23:22:00 CEST 2012 on sn-devel-104
* s3:include: change lock_context->tid to uint32_tMichael Adam2012-06-061-1/+1
| | | | | | Note: this changes for format of brlock.tdb! Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:include: change connection_struct->cnum to uint32_tMichael Adam2012-06-061-1/+1
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:include: change smb_request->tid to uint32_tMichael Adam2012-06-061-1/+1
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smb: change the value of TID_FIELD_INVALID from -1 to 0Michael Adam2012-06-061-1/+1
| | | | | | This paves the way to change the tid/cnum types to systematic uint32_t. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tidMichael Adam2012-06-061-0/+1
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:connections: add a CNUM_OFFSET for mapping between cnum and the bitmap indexMichael Adam2012-06-061-0/+2
| | | | | | | | | This moves the start of the range of valid cnum values up from 0 to CNUM_OFFSET (currently 1), so that in a later step we can use 0 as invalid cnum value instead of the current -1. This will allow us to change the type of cnum to uint32_t from a mix of int and unsigned. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:smb.h: fix a comment typoMichael Adam2012-06-061-1/+1
|
* s3:smbd: change user_struct->vuid to uint64_tStefan Metzmacher2012-06-061-1/+1
| | | | | | | | | | 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: let open_fake_file() take a uint64_t vuidStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:printing: let print_spool_open() take a uint64_t vuidStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:include: change current_user->vuid to uint64_tStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:include: change smb_request->vuid to uint64_tStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:include: move struct smb_request to vfs.hStefan Metzmacher2012-06-062-61/+61
| | | | metze
* s3:include: change files_struct->vuid to uint64_tStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:include: change connection_struct->vuid to uint64_tStefan Metzmacher2012-06-061-1/+1
| | | | metze
* s3:includes: change vuid_cache_entry->vuid to uint64_tStefan Metzmacher2012-06-061-1/+1
| | | | metze