summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s4-ldb_wrap: Do not vasprintf() the ldb debug messages that will not be shownAndrew Bartlett2012-08-091-5/+7
| | | | | | | | | | This malloc() and free() actually shows up quite high on a call profile of provision of the AD DC. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 9 13:51:06 CEST 2012 on sn-devel-104
* lib/ldb: Do not vasprintf() the tevent debug messages that will not be shownAndrew Bartlett2012-08-096-10/+279
| | | | | | | | | | This malloc() and free() actually shows up quite high on a call profile of provision of the AD DC. This allows the debug handler to decide if the argument list should be printed. Andrew Bartlett
* s4-events: Do not vasprintf() the tevent debug messages that will not be shownAndrew Bartlett2012-08-091-4/+6
| | | | | | | This malloc() and free() actually shows up quite high on a call profile of provision of the AD DC. Andrew Bartlett
* s3-events: Do not vasprintf() the tevent debug messages that will not be shownAndrew Bartlett2012-08-091-4/+6
| | | | | | | This malloc() and free() actually shows up quite high on a call profile of provision of the AD DC (and this is the matching patch for source3). Andrew Bartlett
* lib/ldb: Use tdb_exists() rather than tdb_fetch()/talloc_free()Andrew Bartlett2012-08-091-7/+7
| | | | | | | This avoids pulling the record and doing an allocation when we just want to know if it exists. Andrew Bartlett
* s4-dsdb: Remove strcasecmp() fallback in replmd_ldb_message_element_attid_sortAndrew Bartlett2012-08-091-7/+0
| | | | | | | | | | | In all callers, we must already have a attributeID for each of the values or else we would have already given an error, or could not have obtained the message over DRS. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 9 11:39:54 CEST 2012 on sn-devel-104
* s4-dsdb: Do not reload partition metadata except on transaction startAndrew Bartlett2012-08-091-11/+0
| | | | | | | | This ensures that we do not add objects that should go into a partition, but we simply return that an object is not present if the connection was created before the partition was loaded. It is rare to create a new partition. Andrew Bartlett
* s3:smb2_sesssetup: setup global->[en|de]cryption_keyStefan Metzmacher2012-08-091-0/+36
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Aug 9 09:59:02 CEST 2012 on sn-devel-104
* s3:smb2_read: don't try sendfile if encryption is usedStefan Metzmacher2012-08-091-0/+1
| | | | metze
* s3:smb2_server: add smbd_smb2_request->do_encryptionStefan Metzmacher2012-08-092-0/+2
| | | | | | For now it's always false... metze
* s3:smb2_tcon: set global->encryption_required and enforce itStefan Metzmacher2012-08-091-5/+29
| | | | | | | This the account or client doesn't support encryption we should reject the tree connect. metze
* s3:smb2_sesssetup: set global->encryption_required and enforce itStefan Metzmacher2012-08-091-0/+22
| | | | | | | This the account or client doesn't support encryption we should reject the session setup. metze
* s3:smbXsrv.idl: add encryption_required to smbXsrv_tcon_global0Stefan Metzmacher2012-08-091-0/+1
| | | | metze
* s3:smb2_server: check the session before we could response with an error.Stefan Metzmacher2012-08-091-15/+15
| | | | metze
* s3:smb2_server: do central file_id check if the operation requires itStefan Metzmacher2012-08-091-0/+56
| | | | | | | Note that it's fine to call file_fsp_smb2() twice, the 2nd call just returns smb2req->compat_chain_fsp without a 2nd lookup. metze
* s4-dsdb: Ensure we have indexing enabled during the provisionAndrew Bartlett2012-08-091-1/+6
| | | | | | | | | | | Because we set the schema before we connected the ldb to a file, the @INDEX records were not added until next startup. This cost 100% more time in running provision on my laptop. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 9 08:20:36 CEST 2012 on sn-devel-104
* s4-pydsdb: Provide control of if we should write index attributes when ↵Andrew Bartlett2012-08-092-6/+8
| | | | | | | | reloading a schema This allows us to carefully control the loading of the schema. Andrew Bartlett
* s4-dsdb: Change talloc parentAndrew Bartlett2012-08-091-1/+1
| | | | | | | | | This matches the rest of the function. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 9 06:26:36 CEST 2012 on sn-devel-104
* s4-dsdb: Remove ldb_sequence_type argument from ↵Andrew Bartlett2012-08-092-4/+4
| | | | | | | | partition_primary_sequence_number We always want LDB_SEQ_HIGHEST_SEQ here. Andrew Bartlett
* s4-dsdb: simplify migration of old-style seqence numbers to metadata.tdbAndrew Bartlett2012-08-092-150/+53
| | | | | | This simple operation does not need to be encased in generic ldb extended operations. Andrew Bartlett
* s4-dsdb: Reduce calls to the ldb layer by reloading less oftenAndrew Bartlett2012-08-092-14/+26
| | | | | | | We do not need to reload the partition list to get the global sequence number, as that number is stored in the metadata.tdb, not the ldb files. Andrew Bartlett
* s3:nmbd: log a failure in get_domain_master_name_node_status_success() as ↵Stefan Metzmacher2012-08-081-1/+1
| | | | | | | | | level 1 metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Aug 8 20:14:29 CEST 2012 on sn-devel-104
* s3:nmbd: don't log get_domain_master_name_node_status_fail at level 0Stefan Metzmacher2012-08-081-1/+1
| | | | metze
* s3:smb2_server: s/i/idx in smbd_smb2_request_pending_queue()Stefan Metzmacher2012-08-081-4/+4
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Aug 8 17:32:26 CEST 2012 on sn-devel-104
* s3:smb2_server: make use of SMBD_SMB2_OUT_HDR_PTR() in ↵Stefan Metzmacher2012-08-081-1/+1
| | | | | | smbd_smb2_request_pending_queue() metze
* s3:smb2_server: remove useless variable 'i'Stefan Metzmacher2012-08-081-2/+1
| | | | metze
* s3:smb2_server: rewrite dup_smb2_vec3() using SMBD_SMB2_*_IOV_OFS and helper ↵Stefan Metzmacher2012-08-081-42/+52
| | | | | | variables metze
* s3:smb2_server: make use of SMBD_SMB2_* macros in smbd_smb2_request_done_ex()Stefan Metzmacher2012-08-081-18/+21
| | | | metze
* s3:smb2_server: make use of SMBD_SMB2_* macros in ↵Stefan Metzmacher2012-08-081-8/+14
| | | | | | smbd_smb2_request_verify_sizes() metze
* s3:smb2_server: use the common buffer layout for smbd_smb2_request_pending*Stefan Metzmacher2012-08-081-16/+26
| | | | metze
* s3:smb2_read: use SMBD_SMB2_NUM_IOV_PER_REQ when checking for sendfile() supportStefan Metzmacher2012-08-081-1/+1
| | | | metze
* s3:smb2_read: fix indentation in schedule_smb2_sendfile_read()Stefan Metzmacher2012-08-081-8/+8
| | | | metze
* s3:smb2_server: don't try to update req->in.vector[0] in ↵Stefan Metzmacher2012-08-081-3/+0
| | | | | | | | | | smbd_smb2_request_pending_queue() req->in.vector[0] is reserved for the transport and might be removed in future. This is currently always { NULL, 0 }, as it's not used, by our transport layer code. The SMB2 layer should never touch this! metze
* selftest: Rename samba4.blackbox.pdbtest to samba.blackbox.pdbtestAndrew Bartlett2012-08-081-1/+1
| | | | | | | | | This test covers s3dc as well. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 8 09:57:14 CEST 2012 on sn-devel-104
* s3-torture: Extend pdbtest to also run an authentication unit-testAndrew Bartlett2012-08-082-2/+119
| | | | | | | This tests both the builtin auth_sam against passdb directly and the configured auth module. Andrew Bartlett
* build: Remove pdbtest from the autoconf buildAndrew Bartlett2012-08-081-12/+1
| | | | | | | | | | | pdbtest is internal test utility that is not installed. It is only run from the full (waf) make test, and does not need to be built in the autoconf build. Removing it from the autoconf build makes it easier to expand this test to depend on more parts of Samba. Andrew Bartlett
* libcli/smb: do not set SMB2_TF_MSG_SIZE in the callerStefan Metzmacher2012-08-081-3/+0
| | | | | | | metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Aug 8 07:32:55 CEST 2012 on sn-devel-104
* libcli/smb: smb2_signing_[en|de]crypt_pdu() check and set SMB2_TF_MSG_SIZEStefan Metzmacher2012-08-081-6/+16
| | | | metze
* s3:smb2_sesssetup: remove unused code in smbd_smb2_reauth_generic_return()Stefan Metzmacher2012-08-081-9/+0
| | | | | | A reauth exchange is already signed, with the channel signing key. metze
* s3:smb2_sesssetup: remove TALLOC_FREE(session) from ↵Stefan Metzmacher2012-08-081-9/+0
| | | | | | | | smbd_smb2_[re]auth_generic_return The caller does this via the smbd_smb2_session_setup_state_destructor() metze
* s3:smb2_server: sign the last request at the start of smbd_smb2_request_reply()Stefan Metzmacher2012-08-081-22/+16
| | | | | | This means we correctly sign all responses in a compound chain. metze
* s3: Fix a crash in reply_lockingX_errorVolker Lendecke2012-08-081-4/+11
| | | | | | | | | | | | | | | | A timed brlock with 2 locks comes in and the second one blocks, file is closed. smbd_cancel_pending_lock_requests_by_fid sets blr->fsp to NULL. reply_lockingX_error (called via MSG_SMB_BLOCKING_LOCK_CANCEL) deferences blr->fsp because blr->lock_num==1 (the second one blocked). This patch fixes the bug by only undoing the locks if fsp!=NULL. fsp==NULL is the close case where everything is undone anyway. Thanks to Peter Somogyi, somogyi@hu.ibm.com for this bug report. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Aug 8 04:12:04 CEST 2012 on sn-devel-104
* vfs_dirsort: Remove unnecessary return; statementBjörn Jacke2012-08-081-2/+0
| | | | | Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Aug 8 02:17:13 CEST 2012 on sn-devel-104
* vfs_afsacl.c: Remove some unnecessary return; statementsBjörn Jacke2012-08-081-5/+0
|
* vfs_full_audit: Remove some unnecessary return; statementsBjörn Jacke2012-08-081-9/+0
|
* vfs_time_audit: Remove unnecessary return; statementBjörn Jacke2012-08-081-2/+0
|
* vfs_time_audit: Remove some unnecessary return; statementsBjörn Jacke2012-08-081-7/+0
|
* vfs-mediaharmony: Remove some unnecessary return; statementsVolker Lendecke2012-08-081-3/+0
|
* vfs_media_harmony: fix return of voidBjörn Jacke2012-08-071-3/+6
| | | | | | | caught by the Studio Compiler Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Aug 7 22:22:48 CEST 2012 on sn-devel-104
* s3:smb2_server: fix SMB2 signing of compound responsesStefan Metzmacher2012-08-072-13/+78
| | | | | | | | | | We need to defer the signing until we know the response doesn't change anymore before it goes over the wire. metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Aug 7 20:29:30 CEST 2012 on sn-devel-104