diff options
author | Günther Deschner <gd@samba.org> | 2010-05-20 00:46:47 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-05-20 13:35:49 +0200 |
commit | e7982bbe0b560dcf37beb3995b5ce8c091a9c21e (patch) | |
tree | 8221130601c96ee2c7c729643b0f05d21c496c00 /source3 | |
parent | 29629b93907fd32e48d347c109333e9c0ad244eb (diff) | |
download | samba-e7982bbe0b560dcf37beb3995b5ce8c091a9c21e.tar.gz samba-e7982bbe0b560dcf37beb3995b5ce8c091a9c21e.tar.bz2 samba-e7982bbe0b560dcf37beb3995b5ce8c091a9c21e.zip |
s3-lanman: Fix various RAP printing calls according to win98 testing and MS-RAP docs.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/lanman.c | 20 |
1 files changed, 10 insertions, 10 deletions
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)) { |