summaryrefslogtreecommitdiff
path: root/source3/rpc_server
AgeCommit message (Collapse)AuthorFilesLines
2010-04-07s3-spoolss: Fix some issues in _spoolss_AddForm.Günther Deschner1-1/+19
Found by torture test. Guenther
2010-04-07s3-spoolss: Fix potential memleak in _spoolss_AddForm and _spoolss_SetForm.Günther Deschner1-2/+4
Guenther
2010-04-07s3-spoolss: Added a winreg_getform1 function.Andreas Schneider2-0/+147
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a winreg_setform1 function.Andreas Schneider2-0/+120
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a winreg_deleteform1 function.Andreas Schneider2-0/+90
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a winreg_addform1 function.Andreas Schneider2-0/+124
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a winreg_enumforms1 function.Andreas Schneider2-0/+251
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Fixed winreg_printer_openkey to be used in a more generic way.Andreas Schneider1-19/+72
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a delete_printer_key function using the winreg pipe.Andreas Schneider2-0/+195
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a enum_printer_key function using the winreg pipe.Andreas Schneider2-0/+250
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a delete_printer_dataex function using the winreg pipe.Andreas Schneider2-3/+90
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a enum_printer_dataex function using the winreg pipe.Andreas Schneider2-0/+264
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a get_printer_dataex function using the winreg pipe.Andreas Schneider2-0/+146
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a set_printer_dataex function using the winreg pipe.Andreas Schneider2-0/+106
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a function to open a regkey using the winreg pipe.Andreas Schneider2-0/+192
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-26s3-spoolss: return info for the correct printjob in _spoolss_GetJob().Günther Deschner1-4/+6
Guenther
2010-03-24s3:ntlmssp: use client.netbios_name instead of workstationStefan Metzmacher1-1/+2
metze Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-16s3-winreg: change notify call has no meaning when called remotely.Günther Deschner1-4/+0
Just return not supported to make smbtorture happy. Guenther
2010-03-16s3-lsa: fix _lsa_lsaRSetForestTrustInformation server stub.Günther Deschner1-1/+1
Guenther Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-15s3-spoolss: Fix _spoolss_EnumPrinterData.Günther Deschner1-3/+5
Guenther
2010-03-13s3-spoolss: wrap _spoolss_EnumPrinterData() around _spoolss_EnumPrinterDataEx().Günther Deschner1-64/+40
This removes some dependencies to registry code. Guenther
2010-03-12s3-netlogon: Fix bug #7237: _netr_SamLogon segfaults for clients sending ↵Günther Deschner1-6/+12
NULL domain. Thanks to Marc Muehlfeld <muehlfeld@medizinische-genetik.de>. Guenther
2010-03-11s3-winreg: make QueryValue pass RPC-WINREG test again.Günther Deschner1-0/+4
Guenther
2010-03-11s3-winreg: fix some function names in debug statements.Günther Deschner1-3/+3
Guenther
2010-03-11s3-winreg: Fix _winreg_QueryValue crash bugs and implement windows behavior.Günther Deschner1-11/+8
Found by RPC-WINREG smbtorture test. Guenther
2010-03-10Try and fix bug #7233 - print fails with jobs >4GB from Win7 clients.Jeremy Allison1-3/+3
Remove an arbitrarty 4G B limit that *doesn't need to be there* ! Jeremy.
2010-03-10s3-winreg: add some debug statements to _winreg_QueryValue().Günther Deschner1-2/+6
Guenther
2010-03-05Fix for bug #7189 - Open txt files with notepad on samba shares creates problem.Jeremy Allison1-0/+2
Ensure we don't use any of the create_options for Samba private use. Add a new parameter to the VFS_CREATE call (private_flags) which is only used internally. Renumber NTCREATEX_OPTIONS_PRIVATE_DENY_DOS and NTCREATEX_OPTIONS_PRIVATE_DENY_FCB to match the S4 code). Rev. the VFS interface to version 28. Jeremy.
2010-03-05s3-rpc_server: Document rpc_pipe_open_internal.Andreas Schneider1-1/+27
Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-05s3-spoolss: fix _spoolss_EnumPrinterDataEx after idlGünther Deschner1-11/+2
Guenther
2010-03-05s3-spoolss: fix _spoolss_GetPrinterDataEx after IDL change.Günther Deschner1-11/+27
Guenther
2010-03-05s3-spoolss: fix _spoolss_SetPrinterData{Ex} after IDL change.Günther Deschner1-10/+3
Guenther
2010-03-04srv_pipe.c doesn't reference current_user anymore. Remove it.Jeremy Allison1-2/+0
Jeremy.
2010-02-26spoolss: fix build and version in spoolss_PrinterInfo0 (aka ↵Günther Deschner1-2/+3
PRINTER_INFO_STRESS). Guenther
2010-02-25s3-spoolss: Save entire devicemode.Günther Deschner1-13/+10
found by RPC-SPOOLSS-PRINTER torture test. Guenther
2010-02-23schannel_tdb: make code compilable in both treesSimo Sorce2-3/+6
2010-02-23s3:schannel streamline interfaceSimo Sorce2-15/+9
Make calling schannel much easier by removing the need to explicitly open the database. Let the abstraction do it instead.
2010-02-23s3:schannel more readable check logicSimo Sorce1-5/+39
Make the initial schannel check logic more understandable. Make it easy to define different policies depending on ther caller's security requirements (Integrity/Privacy/Both/None)
2010-02-23s3:spoolss: construct the devmode the same way for level 2 and 8Stefan Metzmacher1-17/+3
metze
2010-02-22s3 Fix the buildSimo Sorce1-3/+3
I didn't mean to puch the GetForestTrustInformation patch just yet, now that it is in fix the s3 build ...
2010-02-18More fixes for bug #7146 - Samba miss-parses authenticated RPC packets.Jeremy Allison1-16/+31
Alignment space calculations are tricky :-). Jeremy.
2010-02-19s3-spoolss: add support for _spoolss_SetPrinter level 8.Günther Deschner1-1/+65
Guenther
2010-02-18More fixes for bug #7146 - Samba miss-parses authenticated RPC packets.Jeremy Allison1-14/+16
Ensure we calculate the space correctly (including the ss_padding_len) when constructing reply packets. Jeremy.
2010-02-18s3-spoolss: Fix _spoolss_EnumPrinters servername handling.Günther Deschner1-1/+1
Guenther
2010-02-18s3-spoolss: fix return code of spoolss_DeletePrinter.Günther Deschner1-1/+1
When the printer has been removed by the "deleteprinter command", we need to check if it is still there and then fail, not fail if we successfully removed it (found by RPC-SPOOLSS-PRINTER). Guenther
2010-02-18s3-spoolss: in spoolss_EnumPrinters r->in.server is a *unique* pointer!Günther Deschner1-3/+5
Guenther
2010-02-18s3-spoolss: more AddPrinter{Ex} checks.Günther Deschner1-0/+18
Windows will allow to add a non-shared printer that is returned by EnumPrinters. Samba has no notion of non-shared local printers yet, so just make sure to behave like we do elsewhere: a printer autoloaded by samba or added to samba is shared. Guenther
2010-02-18s3-spoolss: add some printer info validation for AddPrinter calls.Günther Deschner1-0/+22
Guenther
2010-02-17Fix bug #7146 - Samba miss-parses authenticated RPC packets.Jeremy Allison1-120/+311
Parts of the Samba RPC client and server code misinterpret authenticated packets. DCE authenticated packets actually look like this : +--------------------------+ |header | | ... frag_len (packet len)| | ... auth_len | +--------------------------+ | | | Data payload | ... .... | | +--------------------------+ | | | auth_pad_len bytes | +--------------------------+ | | | Auth footer | | auth_pad_len value | +--------------------------+ | | | Auth payload | | (auth_len bytes long) | +--------------------------+ That's right. The pad bytes come *before* the footer specifying how many pad bytes there are. In order to read this you must seek to the end of the packet and subtract the auth_len (in the packet header) and the auth footer length (a known value). The client and server code gets this right (mostly) in 3.0.x -> 3.4.x so long as the pad alignment is on an 8 byte boundary (there are some special cases in the code for this). Tridge discovered there are some (DRS replication) cases where on 64-bit machines where the pad alignment is on a 16-byte boundary. This breaks the existing S3 hand-optimized rpc code. This patch removes all the special cases in client and server code, and allows the pad alignment for generated packets to be specified by changing a constant in include/local.h (this doesn't affect received packets, the new code always handles them correctly whatever pad alignment is used). This patch also works correctly with rpcclient using sign+seal from the 3.4.x and 3.3.x builds (testing with 3.0.x and 3.2.x to follow) so even as a server it should still work with older libsmbclient and winbindd code. Jeremy
2010-02-16s3:rpc streamline memory handlingSimo Sorce1-13/+5