From e7982bbe0b560dcf37beb3995b5ce8c091a9c21e Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 20 May 2010 00:46:47 +0200 Subject: s3-lanman: Fix various RAP printing calls according to win98 testing and MS-RAP docs. Guenther --- source3/smbd/lanman.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'source3/smbd/lanman.c') diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 91eb135ead..744d460e8b 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -830,9 +830,9 @@ static bool api_DosPrintQGetInfo(connection_struct *conn, uint16 vuid, status = rpccli_spoolss_OpenPrinter(cli, mem_ctx, QueueName, - NULL, + "RAW", devmode_ctr, - SEC_FLAG_MAXIMUM_ALLOWED, + PRINTER_ACCESS_USE, &handle, &werr); if (!NT_STATUS_IS_OK(status)) { @@ -1072,9 +1072,9 @@ static bool api_DosPrintQEnum(connection_struct *conn, uint16 vuid, status = rpccli_spoolss_OpenPrinter(cli, mem_ctx, printername, - NULL, + "RAW", devmode_ctr, - SEC_FLAG_MAXIMUM_ALLOWED, + PRINTER_ACCESS_USE, &handle, &werr); if (!NT_STATUS_IS_OK(status)) { @@ -3113,9 +3113,9 @@ static bool api_RDosPrintJobDel(connection_struct *conn,uint16 vuid, status = rpccli_spoolss_OpenPrinter(cli, mem_ctx, sharename, - NULL, + "RAW", devmode_ctr, - SEC_FLAG_MAXIMUM_ALLOWED, + JOB_ACCESS_ADMINISTER, &handle, &werr); if (!NT_STATUS_IS_OK(status)) { @@ -3411,9 +3411,9 @@ static bool api_PrintJobInfo(connection_struct *conn, uint16 vuid, status = rpccli_spoolss_OpenPrinter(cli, mem_ctx, sharename, - NULL, + "RAW", devmode_ctr, - SEC_FLAG_MAXIMUM_ALLOWED, + PRINTER_ACCESS_USE, &handle, &werr); if (!NT_STATUS_IS_OK(status)) { @@ -4399,9 +4399,9 @@ static bool api_WPrintJobGetInfo(connection_struct *conn, uint16 vuid, status = rpccli_spoolss_OpenPrinter(cli, mem_ctx, sharename, - NULL, + "RAW", devmode_ctr, - SEC_FLAG_MAXIMUM_ALLOWED, + PRINTER_ACCESS_USE, &handle, &werr); if (!NT_STATUS_IS_OK(status)) { -- cgit