summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-05-24 19:17:27 +0000
committerGerald Carter <jerry@samba.org>2002-05-24 19:17:27 +0000
commit73bc5782d4832b05379f539057fba8bf510a9ee9 (patch)
tree66d5940d6e64435305841ceeb5e8b65e5e835065
parent5b76d846f87fa138e64e0526925bad5a4a51a263 (diff)
downloadsamba-73bc5782d4832b05379f539057fba8bf510a9ee9.tar.gz
samba-73bc5782d4832b05379f539057fba8bf510a9ee9.tar.bz2
samba-73bc5782d4832b05379f539057fba8bf510a9ee9.zip
merge from SAMBA_2_2
(This used to be commit f0226a1d836b69d179a1a2eda79fa26911b78096)
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 3f86768379..1a436f8c7c 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -1103,7 +1103,9 @@ Can't find printer handle we created for printer %s\n", name ));
printer_default->access_required = PRINTER_ACCESS_USE;
}
- if (!print_access_check(&user, snum, printer_default->access_required)) {
+ /* check smb.conf parameters and the the sec_desc */
+
+ if (!user_ok(uidtoname(user.uid), snum) || !print_access_check(&user, snum, printer_default->access_required)) {
DEBUG(3, ("access DENIED for printer open\n"));
close_printer_handle(p, handle);
return WERR_ACCESS_DENIED;