summaryrefslogtreecommitdiffstats
path: root/source3/include/proto.h
Commit message (Collapse)AuthorAgeFilesLines
* Make us pass all SMB2 lock tests except MULTIPLE-UNLOCK and CONTEXT. Them ↵Jeremy Allison2010-05-071-2/+5
| | | | | | next :-). Jeremy.
* s3-spoolss: make several notify functions static.Günther Deschner2010-05-061-69/+0
| | | | Guenther
* s3-eventlog: move all eventlog headers to lib/eventlog and only include ↵Günther Deschner2010-05-061-36/+0
| | | | | | where required. Guenther
* s3: only include gen_ndr headers where needed.Günther Deschner2010-05-061-18/+0
| | | | | | | | | | | | | | | | | This shrinks include/includes.h.gch by the size of 7 MB and reduces build time as follows: ccache build w/o patch real 4m21.529s ccache build with patch real 3m6.402s pch build w/o patch real 4m26.318s pch build with patch real 3m6.932s Guenther
* s3-spoolss: Added a generic spoolss_create_default_secdesc function.Andreas Schneider2010-05-051-0/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-spoolss: Added a function to create a default spoolss_DeviceMode.Andreas Schneider2010-05-051-0/+3
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-lib: Create a sec_desc_merge and sec_desc_merge_buf function.Andreas Schneider2010-05-041-1/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* Plumb the SMB2 front end into the blocking lock backend.Jeremy Allison2010-04-301-0/+6
| | | | | | | | | | Metze, you'll probably be happier with this work as it doesn't abuse tevent in the way you dislike. This is a first cut at the code, which will need lots of testing but I'm hoping this will give people an idea of where I'm going with this. Jeremy.
* Carefully label SMB1-specific locking calls.Jeremy Allison2010-04-291-3/+3
| | | | Jeremy.
* Connect set security descriptor into SMB2 code.Jeremy Allison2010-04-281-0/+2
| | | | Jeremy.
* s3-spoolss: add support for SetJobInfo level 1 (for jobfile rename).Günther Deschner2010-04-281-1/+2
| | | | Guenther
* s3-lanman: remove unsupported print_job_set_place().Günther Deschner2010-04-281-1/+0
| | | | Guenther
* s3: use shared registry functions.Günther Deschner2010-04-271-2/+2
| | | | Guenther
* Plumb in get_nt_acl into SMB2.Jeremy Allison2010-04-261-0/+7
| | | | Jeremy.
* s3: use generated rap header.Günther Deschner2010-04-261-3/+6
| | | | Guenther
* Allow smb2 create requests to be cancelled.Jeremy Allison2010-04-231-3/+6
| | | | Jeremy.
* s3-spoolss: Move info_ctr conversion to a public helper.Simo Sorce2010-04-231-0/+2
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-spoolss: Use const values for notify functions.Andreas Schneider2010-04-231-6/+6
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-time: Added a function to get the startup time of the server.Andreas Schneider2010-04-231-0/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* Make deferred opens (NT_STATUS_SHARING_VIOLATION) work over SMB2.Jeremy Allison2010-04-221-1/+1
| | | | | | | | Makes SMB2Create call re-entrant internally. Now this infrastructure is in place, oplocks will follow shortly. Tested with Win7 client and with W2K8R2. Jeremy.
* s3: Cache the username map in gencacheVolker Lendecke2010-04-131-0/+1
| | | | This is for uses with a heavy-weight username map script
* Move to using 64-bit mid values in our internal open file database.Jeremy Allison2010-04-121-12/+12
| | | | | | | This will allow us to share logic much easier between SMB1 and SMB2 servers. Jeremy
* s3: Apply some constVolker Lendecke2010-04-121-3/+5
|
* s3: Move [make|free]_user_info to auth/user_info.cVolker Lendecke2010-04-111-0/+14
|
* s3: Move sanitize_username to lib/util_str.cVolker Lendecke2010-04-111-0/+1
|
* s3: Move make_server_info to auth/server_info.cVolker Lendecke2010-04-111-0/+4
|
* s3: Make check_sam_security publicVolker Lendecke2010-04-111-0/+4
|
* Plumb SMB2 stubs into all the places we defer SMB1 operations.Jeremy Allison2010-04-091-5/+7
| | | | | | | | Rename functions to be internally consistent. Next step is to cope queueing single (non-compounded) SMB2 requests to put some code inside the stubs. Jeremy.
* s3: add iconv_convenience handle to pull/push sz helpers.Günther Deschner2010-04-091-4/+8
| | | | Guenther
* Fix bug #7339 - MSDFS is non-functional in 3.5.xJeremy Allison2010-04-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | In the refactoring around filename_convert, the split between the functions resolve_dfspath() and resolve_dfspath_wcard() was lost, leaving us only with resolve_dfspath_wcard(). Internally resolve_dfspath_wcard() calls dfs_redirect() only with a "allow_wcards" flag of true, wheras the old resolve_dfspath() would call with a value of false. The loss of this case causes dfs_redirect to always masquerade DFS links as directories, even when they are being queried directly by a trans2 QPATHINFO call. We should only masquerade DFS links as directories when called from a SMBsearch or trans2 findfirst/findnext - which was the intent of the "allow_wcards" flag. This patch adds back an allow_wcards bool parameter to resolve_dfspath_wcard(). This bool is set from the state of the ucf_flags when filename_convert() is called. I will follow this up with a new smbclient-based torture test that will prevent us from ever regressing our DFS support again. Jeremy.
* Parameterize "smb2 max read", "smb2 max write", "smb2 max trans".Jeremy Allison2010-04-061-0/+3
| | | | | | Set to 64k by default. Jeremy.
* Fix issue with aio where r/w lock wasn't kept across aio read operations.Jeremy Allison2010-04-051-2/+2
| | | | | | | | Change schedule_aio_read_and_X/schedule_aio_write_and_X to return NTSTATUS. Move the grant and release of the lock into the aio code. Jeremy
* Move initialize_async_io_handler() inside of smbd/aio.c.Jeremy Allison2010-04-011-1/+0
| | | | | | Call from actual aio read or write. No reason to call this globally on startup. Jeremy.
* Fix for bug #7233 - print fails with jobs >4GB from Win7 clients.Jeremy Allison2010-03-301-0/+1
| | | | | | | Contains for by Sebastian Kloska <oncaphillis@snafu.de>. Submitter confirms this fixes the problem. Jeremy.
* s3:rpc_client: remove more unused codeStefan Metzmacher2010-03-291-4/+0
| | | | metze
* s3:rpc_client: add rpccli_is_connected()Stefan Metzmacher2010-03-291-0/+1
| | | | metze
* s3:libsmb: add cli_state_is_connected() functionStefan Metzmacher2010-03-291-0/+1
| | | | metze
* s3: Remove unused bitmap_[allocate|free]Volker Lendecke2010-03-281-2/+0
|
* Fix bug #7240 - Net usershare is not case sensitive.Jeremy Allison2010-03-261-0/+1
| | | | | | | | Updates usershare files in a backwards compatible way. I don't intend to back port this fix to 3.5.x as it depends on a version upgrade in the share_info.tdb share security database. Jeremy.
* s3-printing: avoid mixing cups backend code with nt_printing code in ↵Günther Deschner2010-03-261-1/+4
| | | | | | cups_pull_comment_location. Guenther
* Fix bug #7288 - SMB job IDs in CUPS job names wrong.Jeremy Allison2010-03-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Based on a patch from Michael Karcher <samba@mkarcher.dialup.fu-berlin.de>. I think this is the correct fix. It causes cups_job_submit to use print_parse_jobid(), which I've moved into printing/lpq_parse.c (to allow the link to work). It turns out the old print_parse_jobid() was *broken*, in that the pjob filename was set as an absolute path - not relative to the sharename (due to it not going through the VFS calls). This meant that the original code doing a strncmp on the first part of the filename would always fail - it starts with a "/", not the relative pathname of PRINT_SPOOL_PREFIX ("smbprn."). This fix could fix some other mysterious printing bugs - probably the ones Guenther noticed where job control fails on non-cups backends. Guenther PLEASE CHECK ! Jeremy.
* s3: Make sure our CLEAR_IF_FIRST optimization works for the notify tdbsVolker Lendecke2010-03-251-0/+1
| | | | | | The notify tdb files are opened at tconX time, which leads to one fcntl lock for CLEAR_IF_FIRST detection per smbd. This opens the tdbs in the parent and holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
* s3:ntlmssp: use c99 typesStefan Metzmacher2010-03-241-3/+3
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: remove unused ntlmssp_set_workstation()Stefan Metzmacher2010-03-241-1/+0
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: add const for *sig in ntlmssp_unseal_packet()Stefan Metzmacher2010-03-241-1/+1
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: make whole_pdu const for ntlmssp_[un]seal_packet()Stefan Metzmacher2010-03-241-2/+2
| | | | | | | | Only data needs to be non-const. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: pass names and use_ntlmv2 to ntlmssp_client_start() and store themStefan Metzmacher2010-03-241-1/+5
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: pass names to ntlmssp_server_start() and store them in ntlmssp_stateStefan Metzmacher2010-03-241-1/+7
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: make use of C99 types in ntlmssp_sign.cStefan Metzmacher2010-03-241-11/+11
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:librpc/rpc: move prototypes to dcerpc.hStefan Metzmacher2010-03-231-18/+0
| | | | metze