summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
AgeCommit message (Collapse)AuthorFilesLines
2010-12-20s3: Remove unused "retry" from cli_full_connectionVolker Lendecke1-1/+1
2010-12-16spoolss: fill in PerMachineConnections add and delete IDL.Günther Deschner1-9/+9
Guenther
2010-11-19s3-spoolss: fix typo in debug message.Günther Deschner1-1/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Nov 19 12:05:10 CET 2010 on sn-devel-104
2010-11-17s3-spoolss: make sure members of "BUILTIN\Print Operators" can open printersGünther Deschner1-1/+3
with admin privileges. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Nov 17 15:05:02 UTC 2010 on sn-devel-104
2010-11-17s3-spoolss: add debug statement for access denied cases in OpenPrinterEx path.Günther Deschner1-0/+3
Guenther
2010-11-10s3-spoolss: fix spoolss GetPrinterData behaviourDavid Disseldorp1-1/+1
Windows sends spoolss GetPrinterData requests with an offered buffer size of zero, Model and TrayFormTable data is commonly requested in this way. Samba's GetPrinterData response for the above case includes the correct error code (WERR_MORE_DATA), however the type field is set to REG_NONE. This causes Windows (seen on XP and 2k3) to give up on the request. If the type field is retained (not set to REG_NONE) when responding with WERR_MORE_DATA, Windows reissues the GetPrinterData request with an increased offered buffer size. Signed-off-by: Günther Deschner <gd@samba.org>
2010-11-10Fix bug 7781 - Samba transforms ShareName to lowercase (sharename) when ↵Jeremy Allison1-4/+5
adding new share via MMC Change the find_service() interface to not depend on fstring, and create a useable talloc-based interface. Jeremy.
2010-10-22Revert "Wrap security_token_has_privilege() with a check for ↵Jeremy Allison1-9/+9
lp_enable_privileges(). Needed" Not needed - privileges code prevents "enable privileges = no" from adding privileges anyway. This reverts commit a8b95686a7bde3f96f141b6938e24e101567ef54. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 22 23:41:36 UTC 2010 on sn-devel-104
2010-10-22Wrap security_token_has_privilege() with a check for lp_enable_privileges(). ↵Jeremy Allison1-9/+9
Needed to maintain compatibility with smb.conf manpage. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 22 18:15:48 UTC 2010 on sn-devel-104
2010-10-12libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett1-0/+1
This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-10-11s3-spoolss: add more userlevel info validation to _spoolss_OpenPrinterEx.Günther Deschner1-0/+9
Guenther
2010-10-11s3-spoolss: let set_printer_hnd_name return WERROR.Günther Deschner1-17/+19
Guenther
2010-10-11s3-spoolss: convert open_printer_hnd to return WERROR.Günther Deschner1-11/+16
Guenther
2010-10-11s3-spoolss: fix set_printer_hnd_name() to match torture test.Günther Deschner1-9/+15
Guenther
2010-10-07s3-spoolss: make it possible to have and announce a [prnproc$] share on the ↵Günther Deschner1-2/+12
printserver. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Oct 7 16:09:14 UTC 2010 on sn-devel-104
2010-10-05Fix bug 7704 - Possible error in fix to rpc_server/srv_spoolss_nt.c.Jeremy Allison1-1/+1
From pjb1008@cam.ac.uk - Service numbers start from 0. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Oct 5 17:32:34 UTC 2010 on sn-devel-104
2010-10-04spoolss: fill in spoolss_SetPort IDL.Günther Deschner1-3/+3
Guenther
2010-10-02s3-spoolss: Strip off ", DrvConvert" and ",LocalOnly" in OpenPrinterEx as ↵Günther Deschner1-0/+13
seen from Win7 clients. These suffixes and their meaning are not documented (yet). Guenther
2010-10-02s3-spoolss: Fixed print job access.Andreas Schneider1-4/+4
2010-10-02s3-spoolss: Fixed print_access_check server_info.Andreas Schneider1-2/+2
2010-10-01s3-spoolss: fix do_drv_upgrade_printer() which must have been broken since theGünther Deschner1-3/+6
days we moved away from fstrings. Guenther
2010-10-01s3-spoolss: make sure we dont crash on NULL setprinter level2 elements as ↵Günther Deschner1-7/+13
seen from win7. Guenther
2010-10-01s3-spoolss: dont overwrite location change notify.Günther Deschner1-3/+3
Guenther
2010-09-30s3-spoolss: make sure to exit early and with the appropriate error code inGünther Deschner1-0/+4
_spoolss_GetPrinterDriver2. Guenther
2010-09-30s3-spoolss: Fix servername/printername handling which turns out to be very ↵Günther Deschner1-81/+181
important to get right. Guenther
2010-09-28s3-spoolss: Fix _spoolss_EnumPrintProcDataTypes error handlingGünther Deschner1-0/+5
2010-09-28s3-spoolss: Fix _spoolss_EnumPrintProcessors error handlingGünther Deschner1-0/+4
2010-09-11s3-privs Convert from user_has_privileges() -> security_token_has_privilege()Andrew Bartlett1-22/+11
This new call is available in the merged privileges code, and takes an enum as the parameter, rather than a bitmask. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11s3:auth Remove NT_USER_TOKENAndrew Bartlett1-9/+9
The all UPPER case typedef is no longer the preferred Samba style and this makes it easier to see that this is the IDL-derivied structure Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-11s3-privs Further changes to remove SE_PRIVAndrew Bartlett1-9/+9
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-10s3-spoolss: Fix _spoolss_GetPrinter().Günther Deschner1-1/+2
In the error case, we need to TALLOC_FREE(r->out.info), don't ask :-) Guenther
2010-09-10s3-spoolss: Don't leak memory on the session counter list.Andreas Schneider1-0/+12
Thanks Günther, please check.
2010-09-10s3-spoolss: Allow multiple client backchannels.Simo Sorce1-77/+116
When we run spoolssd we need to support multiple clients connecting. Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10s3-spoolss: Split function to send notification.Simo Sorce1-127/+162
More digestible this way. Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10s3-spoolss: Use a single structure for all the back channel data.Simo Sorce1-14/+18
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10s3-spoolss: Rename Printer_entry to struct printer_handle.Simo Sorce1-53/+53
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10s3-spoolss: Move Printer_entry to srv_spoolss_nt.cSimo Sorce1-0/+44
It is used only there, and it is a good idea to make this one private and opaque to the rest of the code. Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10s3-spoolss: Allocate printer entries on the pipe struct.Simo Sorce1-1/+2
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10s3-spoolss: Rename session counter structure and use talloc.Simo Sorce1-8/+7
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-10s3-spoolss: allow a short printername w/o servername.Günther Deschner1-6/+1
Verified with RPC-SPOOLSS-PRINTSERVER-enumprinters_old test. Guenther
2010-09-09s3-spoolss: Use systerm server_info for winreg connection.Andreas Schneider1-88/+162
This will ensure that we have the rights we need to access the regsitry.
2010-09-09s3-spoolss: Make auth_serversupplied_info const.Andreas Schneider1-17/+17
2010-09-09s3-spoolss: Fixed some build warnings.Andreas Schneider1-7/+11
2010-09-07s3: Prune the printername cache when a printer is deletedVolker Lendecke1-2/+20
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-03s3-spoolss: fix some debug statements.Günther Deschner1-1/+1
Guenther
2010-08-29s3: Remove some uses of smbd_server_fd()Volker Lendecke1-2/+2
The change in behaviour is that we don't detect "socket option" changes anymore when printers are added or removed.
2010-08-27s3: Cache results of finding printer namesVolker Lendecke1-0/+39
With hundreds of printers or on a slow machine, this can become expensive. Problem reported and patch sponsored by DESY, Hamburg (www.desy.de)
2010-08-26s3-build: only include rpc_misc.h where needed.Günther Deschner1-0/+1
Guenther
2010-08-22s3: Replace calls to check_access by allow_accessVolker Lendecke1-2/+2
We already have both the name and address of the client stored now
2010-08-18s3: Use pipe_struct->client_id->name for pjob.clientmachineVolker Lendecke1-1/+2