summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Fix some nonempty blank linesVolker Lendecke2010-03-281-20/+19
|
* s3: Use tdb_transaction_start_nonblock in gencache_stabilizeVolker Lendecke2010-03-281-1/+10
| | | | | This avoids the thundering herd problem when 5000 smbds exit simultaneously because the network went down.
* Revert "s3: Optimize gencache for smbd exit"Volker Lendecke2010-03-281-75/+14
| | | | | | This reverts commit 5ca63676dc59e83ffd9560fdcfa26063f267f283. That does not fully fix the problem, adding a tdb_transaction_start_nonblock to fix it.
* s3: Fix typos in a debug message in vfs_init_customVolker Lendecke2010-03-281-1/+2
|
* Fix bug #7240 - Net usershare is not case sensitive.Jeremy Allison2010-03-264-56/+90
| | | | | | | | 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-selftest: set "lpq cache time = 0" in server configuration.Günther Deschner2010-03-261-0/+1
| | | | | | | This fixes currently broken spoolss tests. (make test variant). Guenther
* s3 ntlm_auth: Don't malloc data that will be talloc_free()dKai Blin2010-03-261-12/+12
| | | | | This fixes bug #7290 Thanks to Mohan <mohann@silver-peak.com> for the bug report.
* tdb: Add a non-blocking version of tdb_transaction_startVolker Lendecke2010-03-261-1/+1
|
* Revert the part of bug fix #7233 - print fails with jobs >4GB from Win7 clients.Jeremy Allison2010-03-261-22/+4
| | | | | | | Submitter reports print file corruption after 2GB when SMBwrite etc. always write at EOF. Still working on the fix. Jeremy.
* s3-util_sock: Rise debug level for getpeername failed messages.Karolin Seeger2010-03-261-4/+6
| | | | | | | | Don't show all getpeername failed messages in debug level 0 and 1. Karolin Signed-off-by: Volker Lendecke <vl@samba.org>
* s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider2010-03-264-6/+6
|
* s3-spoolss: return info for the correct printjob in _spoolss_GetJob().Günther Deschner2010-03-261-4/+6
| | | | Guenther
* s3-printing: avoid mixing cups backend code with nt_printing code in ↵Günther Deschner2010-03-263-26/+40
| | | | | | cups_pull_comment_location. Guenther
* s3-event: switch s3 to using tevent_re_initialise()Andrew Tridgell2010-03-263-9/+2
| | | | | | This correctly initialises the event backend, and checks for errors (thanks to Metze for suggesting this)
* Second part of bug #7288 - SMB job IDs in CUPS job names wrong.Jeremy Allison2010-03-251-2/+0
| | | | | | Forgot to delete the overload of the smbjob bool. Jeremy.
* Fix bug #7288 - SMB job IDs in CUPS job names wrong.Jeremy Allison2010-03-254-20/+32
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix bug 7297 - smbd crashes with CUPS printers and no [printers] share defined.Jeremy Allison2010-03-251-1/+1
| | | | | | Ensure we don't dereference an array with an index of -1. Jeremy.
* s3: vfs_smb_traffic_analyzer.c: remove warnings from developer buildHolger Hetterich2010-03-251-14/+16
| | | | | | | | | | | This patch should remove all warnings coming up when compiling traffic analyzer with configure.developer. Re-activate the smb_traffic_analyzer_rmdir function by adding it's vfs_fn_pointer to vfs_smb_traffic_analyzer_fns. Copy the mode_t used in smb_traffic_analyzer_open to the corresponding data structure.
* s3:passdb: avoid sid_to_gid() if the sid is "domain users"Stefan Metzmacher2010-03-251-3/+7
| | | | | | If the call fails we would use the "domain users" sid anyway. metze
* s3: Add a comment to notify_internal_parent_init, this is pretty confusingVolker Lendecke2010-03-251-0/+6
|
* s3: Add a comment to serverid_parent_init, this is pretty confusingVolker Lendecke2010-03-251-0/+6
|
* s3: Add a comment to messaging_tdb_parent_init, this is pretty confusingVolker Lendecke2010-03-251-0/+6
|
* s3: Make sure our CLEAR_IF_FIRST optimization works for serverid.tdbVolker Lendecke2010-03-253-0/+25
| | | | | | In the child, we fully re-open serverid.tdb, which leads to one fcntl lock for CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
* s3: Make sure our CLEAR_IF_FIRST optimization works for the notify tdbsVolker Lendecke2010-03-253-0/+32
| | | | | | 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: Make sure our CLEAR_IF_FIRST optimization works for messaging.tdbVolker Lendecke2010-03-253-0/+22
| | | | | | In the child, we fully re-open messaging.tdb, which leads to one fcntl lock for CLEAR_IF_FIRST detection per smbd. This opens the tdb in the parent and holds it, so that tdb_reopen_all correctly catches the CLEAR_IF_FIRST bit.
* s3: Fix some nonempty blank linesVolker Lendecke2010-03-251-6/+6
|
* s3-selftest: enable RAP-RPC test against s3.Günther Deschner2010-03-251-1/+1
| | | | Guenther
* Fix some nonempty blank linesVolker Lendecke2010-03-251-3/+3
|
* Fix bug #7269 - Job management commands don't work for CUPS queues.Michael Karcher2010-03-241-1/+9
| | | | | Samba needs to retrieve pjob->sysjob from the CUPS response (as is done in the iprint backend).
* s3-selftest: move printing config to global section.Günther Deschner2010-03-251-8/+9
| | | | | | "make test" variant. Guenther
* Fix bug #7233 - print fails with jobs >4GB from Win7 clients.Jeremy Allison2010-03-241-25/+53
| | | | | | Ensure we always write at end-of-file for older write calls. Jeremy.
* Fix bug #7283 - vfs_acl_tdb does not work as expected.Jeremy Allison2010-03-241-34/+14
| | | | | | | both vfs_acl_common.c and vfs_acl_tdb.c were using the connection handle, thus conflicted. Fix this. Jeremy.
* Fix valgrind warning when source and dest stat are identical.Jeremy Allison2010-03-241-1/+3
| | | | Jeremy.
* s3:ntlmssp: use c99 typesStefan Metzmacher2010-03-243-27/+27
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: use client.netbios_name instead of workstationStefan Metzmacher2010-03-245-11/+14
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: remove unused ntlmssp_set_workstation()Stefan Metzmacher2010-03-242-14/+0
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state unionStefan Metzmacher2010-03-242-51/+63
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: add const for *sig in ntlmssp_unseal_packet()Stefan Metzmacher2010-03-242-2/+2
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: make whole_pdu const for ntlmssp_[un]seal_packet()Stefan Metzmacher2010-03-242-4/+4
| | | | | | | | Only data needs to be non-const. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: use a 'bool ok' variable to make the code more readableStefan Metzmacher2010-03-241-2/+14
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: fix some formatingStefan Metzmacher2010-03-241-58/+89
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: inline ntlmssp_weaken_keys()Stefan Metzmacher2010-03-242-71/+37
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: make send_seal_key and recv_seal_key local variablesStefan Metzmacher2010-03-242-16/+12
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: rename void *auth_context; into void *callback_private;Stefan Metzmacher2010-03-243-12/+15
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: add some constsStefan Metzmacher2010-03-241-3/+3
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: remove unused get_global_myname() and get_domain() from ↵Stefan Metzmacher2010-03-243-15/+0
| | | | | | | | | | ntlmssp_state Inspired by the NTLMSSP merge work by Andrew Bartlett. 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-249-23/+82
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: remove server_name from ntlmssp_state and fill the server.* ↵Stefan Metzmacher2010-03-243-3/+11
| | | | | | | | | | fields also for the client 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-245-44/+131
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: replace server_role by a server.is_standalone in ntlmssp_stateStefan Metzmacher2010-03-243-4/+11
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>