summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2010-07-27s3-smbd: Convert reply_printqueue to use spoolss.Simo Sorce1-22/+91
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27s3-smbd: Use the right check to test if we can print.Simo Sorce1-1/+1
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27s3-printing: Moved printing.c headers to include/printing.h.Simo Sorce1-0/+1
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27s3-smbd: Migrated to new spoolss functions for printing.Simo Sorce5-20/+18
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27s3-spoolss: Use winreg_delete_printer_key to delete printers.Simo Sorce1-1/+1
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27s3-printing: Converted printer publishing functions.Simo Sorce1-3/+24
Use spoolss_PrintInfo2 and winreg calls. Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-25s3: use dump_data in query FILE_BASIC_UNIX_INFOVolker Lendecke1-8/+3
Jeremy, please check! To me this is a lot more readable than the decimal listing of the bytes.
2010-07-20Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL ↵Jeremy Allison3-27/+22
contexts. Jeremy.
2010-07-20Fix one more data_blob -> data_blob_talloc. Move away from implicit NULL ↵Jeremy Allison1-2/+2
context tallocs. Jeremy.
2010-07-20Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduceJeremy Allison3-16/+20
use of malloc, and data_blob(). Jeremy.
2010-07-20Fix warning - no return value for a non-void fn.Jeremy Allison1-0/+1
Jeremy.
2010-07-20s3-auth: Move auth_ntlmssp wrappers in their own fileSimo Sorce3-0/+3
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-20s3-auth: Refactor and rename auth_ntlmssp_server_info()Simo Sorce2-2/+3
Rename it to auth_ntlmssp_steal_server_info() to make it clear that the server_info struct is stolen from the auth_ntlmssp_state structure. Use talloc_move instead of manual steal&clear Add comments to explain what is going on. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19Remove gen_negTokenInit() - change all callers to spnego_gen_negTokenInit().Jeremy Allison1-3/+3
We now have one function to do this in all calling code. More rationalization to follow. Jeremy.
2010-07-19Move the addition of the 16 byte guid out of spnego_gen_negTokenInit() andJeremy Allison3-26/+34
into negprot_spnego() where it belongs (it's not an SPNEGO operation). Add a TALLOC_CTX for callers of negprot_spnego(). Closer to unifying all the gen_negTokenXXX calls. Jeremy.
2010-07-19Remove parse_negTokenTarg(), as it's actually incorrect. We're processingJeremy Allison1-1/+1
negTokenInit's here. Use common code in spnego_parse_negTokenInit(). Jeremy.
2010-07-19s3: Avoid pwrite calls for the 1-byte writes with zero contentVolker Lendecke1-4/+50
When a write cache is empty and we write one 0, there is no point in actually writing into the write cache, which would trigger a potentially superfluous write cache flush. We can rely on posix semantics to give us 0's when subsequent read calls want to read from file areas not written yet. Jeremy, please check!
2010-07-19s3-auth: Use talloc hierarchies to properly free auth_ntlmssp_state contextsSimo Sorce4-13/+13
Turn auth_ntlmssp_end into a destructor and attach it to auth_ntlmssp_state. Remote auth_ntlmssp_end and use TALLOC_FREE in the callers. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19s3-auth: Simplify how we free the auth_contextSimo Sorce3-8/+5
Turn the freeing function into a destructor and attach it to the auth_context. Make all callers TALLOC_FREE() the auth_context instead of calling the free function. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-18s3: Work better without the aio sighandlerVolker Lendecke1-7/+22
Refuse async I/O if we can't set up the signal handler
2010-07-16Make the "map to guest" parameter work correctly with NTLMSSP (spnegoJeremy Allison2-10/+34
and raw) under SMB2. Still need to investigate fixing this with krb5 auth (does this make sense ?). Jeremy.
2010-07-15s3: Fix crashes in the printing codeVolker Lendecke1-0/+3
create_conn_struct did not create the conn->sconn!=NULL assumption we now depend on. Thanks to Andreas Schneider for testing!
2010-07-14s3:auth Change auth_ntlmssp_server_info API to return NTSTATUSAndrew Bartlett2-4/+5
This fixes a bug where register_existing_vuid() could be called with a NULL server_info if the alloction failed. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-07-14s3:smbd Give the kerberos session key a parentAndrew Bartlett1-0/+2
Nothing will free this, so this prevents a memory leak. Andrew Bartlett Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-07-14s3:smbd Fix segfault if register_existing_vuid() failsAndrew Bartlett1-4/+12
The register_existing_vuid() call will handle both the ntlmssp_end and vuid invalidation internally, so we don't want to do it again. Andrew Bartlett Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-07-13Revert "Remove the global char *LastDir."Jeremy Allison3-1/+22
Volker pointed out I'd missed the "last directory" cache part of this code. Return us to caching the directory we're in (reduces sys call load). Mea maxima culpa. Jeremy. This reverts commit 2f30aea3324f32f9b8555e961256fc1280da2871.
2010-07-09s3: Cleanup of the initial SMB2 counters patch.Ira Cooper1-89/+191
This reorganizes smbd_smb2_request_dispatch to have a central exit point, and use the normal profiling macros. Signed-off-by: Jeremy Allison <jra@samba.org>
2010-07-09s3: Optimize the write cache for sequential writesVolker Lendecke1-0/+20
In case of the one-byte allocating writes we don't work work optimally because we start the write cache at the current offset. This patch tries to avoid this case.
2010-07-08s3-rpc: when using rpc_pipe_open_internal, make sure to go through NDR.Günther Deschner1-8/+8
Otherwise a lot of information that is usually generated in the ndr_push remains in an uninitialized state. Guenther
2010-07-07s3: Add SMB2 performance counters.Ira Cooper1-19/+58
A performance counter was added for every base type of SMB2 op.
2010-07-07s3-notify: use autogenerated FILE_NOTIFY_INFORMATION marshalling in smbd.Günther Deschner1-52/+29
Guenther
2010-07-06s3:smbd: Align change notify replies on 4-byte boundaryChere Zhou1-0/+10
MS-CIFS section 2.2.7.4.2 states this is mandatory. WinXP clients don't seem to care, but a Win7 client will send an immediate Close() to the directory handle when receiving an incorrectly aligned change notify response.
2010-07-05s3: Remove procid_self() from cancel_pending_lock_requests_by_fid_smb2()Volker Lendecke1-1/+1
2010-07-05s3: Remove procid_self() from remove_pending_lock()Volker Lendecke1-1/+1
2010-07-05s3: Remove procid_self() from fill_deferred_open_entry()Volker Lendecke2-6/+12
2010-07-05s3: Remove smbd_messaging_context() from shutdown_other_smbds()Volker Lendecke1-12/+19
2010-07-05s3: Remove smbd_messaging_context() from make_connection_snum()Volker Lendecke1-1/+1
2010-07-05s3: Remove smbd_messaging_context() from reprocess_blocked_smb2_lock()Volker Lendecke1-1/+1
2010-07-05s3: Remove smbd_messaging_context() from remove_pending_lock()Volker Lendecke1-1/+1
2010-07-05s3: Remove smbd_messaging_context() from push_blocking_lock_request_smb2()Volker Lendecke1-1/+1
2010-07-05s3: Remove procid_self() from irix_oplocks_read_fde_handler()Volker Lendecke1-1/+1
2010-07-05s3: Remove smbd_messaging_context() from smb_set_posix_lock()Volker Lendecke1-2/+2
2010-07-05s3: Remove smbd_messaging_context() from linux_oplock_signal_handler()Volker Lendecke1-1/+1
2010-07-05s3: Remove procid_self() from blocking_lock_cancel_smb1()Volker Lendecke1-1/+1
2010-07-05s3: Remove procid_self() from process_blocking_lock_queue()Volker Lendecke1-2/+2
2010-07-05s3: Remove procid_self() from remove_pending_lock_requests_by_mid_smb1()Volker Lendecke1-1/+1
2010-07-05s3: Remove procid_self() from cancel_pending_lock_requests_by_fid()Volker Lendecke1-1/+1
2010-07-05s3: Remove procid_self() from generic_blocking_lock_error()Volker Lendecke1-1/+2
2010-07-05s3: Remove procid_self() from push_blocking_lock_request()Volker Lendecke1-1/+1
2010-07-05s3: Remove smbd_messaging_context() from blocking_lock_cancel_smb1()Volker Lendecke1-2/+2