From: Andreas Schneider Date: Wed, 12 Sep 2012 10:12:58 +0000 (+0200) Subject: s3-rap: Open printers with the right access mask. X-Git-Tag: samba-4.0.0rc1~40 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f8c9ab88e7a2e28e503e99baabb88c3cebbc4b6;p=thirdparty%2Fsamba.git s3-rap: Open printers with the right access mask. Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Wed Sep 12 14:05:42 CEST 2012 on sn-devel-104 --- diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index b22619ff356..d54e1d51e67 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -3525,7 +3525,7 @@ static bool api_WPrintQueueCtrl(struct smbd_server_connection *sconn, QueueName, NULL, devmode_ctr, - SEC_FLAG_MAXIMUM_ALLOWED, + PRINTER_ACCESS_ADMINISTER, &handle, &werr); if (!NT_STATUS_IS_OK(status)) { @@ -4986,7 +4986,7 @@ static bool api_WPrintJobEnumerate(struct smbd_server_connection *sconn, name, NULL, devmode_ctr, - SEC_FLAG_MAXIMUM_ALLOWED, + PRINTER_ACCESS_USE, &handle, &werr); if (!NT_STATUS_IS_OK(status)) { @@ -5186,7 +5186,7 @@ static bool api_WPrintDestGetInfo(struct smbd_server_connection *sconn, PrinterName, NULL, devmode_ctr, - SEC_FLAG_MAXIMUM_ALLOWED, + PRINTER_ACCESS_USE, &handle, &werr); if (!NT_STATUS_IS_OK(status)) {