summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2010-08-08s3: Lift the smbd_messaging_context from nt_printing_tdb_migrateVolker Lendecke1-1/+1
2010-08-08s3: Lift the smbd_messaging_context from rpc_pipe_open_internalVolker Lendecke1-3/+8
2010-08-08s3: Lift the smbd_messaging_context from np_openVolker Lendecke1-1/+3
2010-08-08s3: Remove a direct reference to smbd_server_connVolker Lendecke1-1/+1
2010-08-08s3:smbd: fix valgrind warning, sizeof(16) != 16...Stefan Metzmacher1-1/+1
metze
2010-08-07s3: Remove some references to smbd_messaging_context()Volker Lendecke1-5/+6
2010-08-07s3: Remove smbd_messaging_context() from send_stat_cache_delete_message()Volker Lendecke2-3/+5
2010-08-07s3: Remove a pointless "else"Volker Lendecke1-1/+3
2010-08-06s3-netlogon: remove global include of netlogon.h.Günther Deschner3-0/+3
This reduces precompiled headers by another 4 MB and also slightly speeds up the build. Guenther
2010-08-06s3-krb5: include krb5pac.h where needed.Günther Deschner2-0/+2
Guenther
2010-08-05s3-popt: Only include popt-common.h when needed.Andreas Schneider1-0/+1
2010-08-05s3-secrets: only include secrets.h when needed.Günther Deschner1-0/+1
Guenther
2010-08-05s3: avoid global include of ads.h.Günther Deschner2-0/+2
Guenther
2010-07-31s3-build: avoid to globally include printing and spoolss headers.Günther Deschner2-0/+2
This shrinks precompiled headers by 3MB and will slightly speed up any build. Guenther
2010-07-29s3: Do the ftruncate write cache optimization in one placeVolker Lendecke1-0/+31
Instead of hand-tuning all the cases that are below this piece of code, this is a general case that we can catch upfront.
2010-07-29Revert "s3: Avoid pwrite calls for the 1-byte writes with zero content"Volker Lendecke1-50/+4
This reverts commit 6763730304627a58139450fd3e03a0ce48e31bb9.
2010-07-29s3: Avoid an unnecessary ftruncate callVolker Lendecke1-1/+1
If we just created the file, it has length 0 by definition. This is still done while holding the share mode lock, so no race around wrt other cifs clients.
2010-07-28smbd: Fix build warningSimo Sorce1-1/+1
2010-07-28s3-uid: Use struct pipes_struct.Andreas Schneider1-1/+1
2010-07-27s3-printing: Added automatic migration of printing tdbs.Andreas Schneider1-2/+26
Signed-off-by: Jim McDonough <jmcd@samba.org>
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.