mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s3-rap: Open printers with the right access mask.
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Sep 12 14:05:42 CEST 2012 on sn-devel-104
This commit is contained in:
parent
937cdd1e46
commit
1f8c9ab88e
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user