summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-04-15 03:49:53 +0000
committerTim Potter <tpot@samba.org>2002-04-15 03:49:53 +0000
commitfea03cef2be825037b0c610964ca6e296ed6e33d (patch)
tree6c115c0fe3ed052b2873c4975053d0f7f18c314d /source3/printing
parentbffc4efd0fdb93ced54b7edecfcafec28353289a (diff)
downloadsamba-fea03cef2be825037b0c610964ca6e296ed6e33d.tar.gz
samba-fea03cef2be825037b0c610964ca6e296ed6e33d.tar.bz2
samba-fea03cef2be825037b0c610964ca6e296ed6e33d.zip
Merge of print server permission handling fixes from HEAD.
(This used to be commit 62ee1f8c3fbcf83641bed881143a1a8c70f836ba)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 907c3fd8e6..29bc185a6d 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -56,6 +56,22 @@ STANDARD_MAPPING printer_std_mapping = {
PRINTER_ALL_ACCESS
};
+/* Map generic permissions to print server object specific permissions */
+
+GENERIC_MAPPING printserver_generic_mapping = {
+ SERVER_READ,
+ SERVER_WRITE,
+ SERVER_EXECUTE,
+ SERVER_ALL_ACCESS
+};
+
+STANDARD_MAPPING printserver_std_mapping = {
+ SERVER_READ,
+ SERVER_WRITE,
+ SERVER_EXECUTE,
+ SERVER_ALL_ACCESS
+};
+
/* We need one default form to support our default printer. Msoft adds the
forms it wants and in the ORDER it wants them (note: DEVMODE papersize is an
array index). Letter is always first, so (for the current code) additions