diff options
author | Andreas Schneider <asn@samba.org> | 2012-09-12 12:12:58 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-09-12 14:05:42 +0200 |
commit | 1f8c9ab88e7a2e28e503e99baabb88c3cebbc4b6 (patch) | |
tree | abeb903dd76d5f40a5b6da7c1d1daa33fd17b8c9 | |
parent | 937cdd1e463b19bc2b99e51734cd811d78f3e1e5 (diff) | |
download | samba-1f8c9ab88e7a2e28e503e99baabb88c3cebbc4b6.tar.gz samba-1f8c9ab88e7a2e28e503e99baabb88c3cebbc4b6.tar.bz2 samba-1f8c9ab88e7a2e28e503e99baabb88c3cebbc4b6.zip |
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
-rw-r--r-- | source3/smbd/lanman.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index b22619ff35..d54e1d51e6 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)) { |