summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-04-15 04:07:13 +0000
committerTim Potter <tpot@samba.org>2002-04-15 04:07:13 +0000
commit1667a821060b8bbc1cef3db473f6967cd02f5886 (patch)
tree8f8a26c208e1d1df5d28c5a075ed451723a0678a /source3/printing
parent36514b65eed055282f2f391d18128536026d9485 (diff)
downloadsamba-1667a821060b8bbc1cef3db473f6967cd02f5886.tar.gz
samba-1667a821060b8bbc1cef3db473f6967cd02f5886.tar.bz2
samba-1667a821060b8bbc1cef3db473f6967cd02f5886.zip
Merge of print server permission handling fixes from HEAD.
Unit tests rock! (This used to be commit bc673c42045ceb46d9569bc4d88f9c64897fc85a)
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