summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_spoolss.c
AgeCommit message (Collapse)AuthorFilesLines
2013-08-05s3-rpc_cli: pass down ndr_interface_table to cli_rpc_pipe_open_noauth().Günther Deschner1-1/+1
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-24s3-rpcclient: add cmd_spoolss_play_gdi_script_on_printer_ic.Günther Deschner1-0/+103
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-24s3-rpcclient: decode OsVersion{Ex} binary blobs when displaying printerdata.Günther Deschner1-0/+21
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2013-01-17spoolss: make spoolss deal with ndr64 SetForm by using proper container object.Günther Deschner1-4/+4
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-01-17spoolss: make spoolss deal with ndr64 AddForm by using proper container object.Günther Deschner1-6/+6
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-01-17spoolss: make spoolss deal with ndr64 ULONG_PTR of devmode_ptr and secdesc_ptr.Günther Deschner1-2/+2
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2012-12-12s3-rpcclient: Check return value of add_string_to_array().Andreas Schneider1-1/+5
Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
2012-11-29rpcclient: fix usage docs for rpcclient adddriverDavid Disseldorp1-2/+2
The printer driver name is incorrectly referred to as the printer name. Reviewed-by: Andreas Schneider <asn@samba.org>
2012-05-10s3: Fix Coverity ID 242723 Uninitialized scalar variableVolker Lendecke1-1/+1
In an error path we are closing hnd without opening it
2012-05-10s3: Fix Coverity ID 241961 Uninitialized scalar variableVolker Lendecke1-0/+2
2012-05-10s3: Fix Coverity ID 242724 Uninitialized scalar variableVolker Lendecke1-1/+1
In an error path we are closing pol without opening it
2012-04-25s3:registry: remove usage of reg_objects from cmd_spoolss.cGregor Beck1-29/+14
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-01-18s3-rpcclient: pass struct ndr_interface_table downAndrew Bartlett1-36/+36
This will allow the target service (as determined from the IDL) to be passed to GSSAPI (rather than the current, incorrect, "cifs"). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-11s3-rpcclient: add deldriverex flags argumentDavid Disseldorp1-7/+7
The spoolss DeletePrinterDriverEx command offers three flags for controlling how associated files and other versions of the driver are effected: DPD_DELETE_UNUSED_FILES (1), DPD_DELETE_SPECIFIC_VERSION (2) and DPD_DELETE_ALL_FILES (4). This commit adds an optional numeric flags argument to the rpcclient deldriverex command. Signed-off-by: David Disseldorp <ddiss@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Wed Jan 11 14:39:35 CET 2012 on sn-devel-104
2011-06-09s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett1-2/+2
There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
2011-05-18s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett1-2/+2
strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
2011-05-06s3-libsmb: move protos to libsmb/proto.hGünther Deschner1-0/+1
Guenther
2011-05-05s3-rpcclient: run minimal_includes.pl.Günther Deschner1-1/+0
Guenther
2011-03-31s3-rpcclient: include rpc_client/cli_pipe.h globally in rpcclient.hGünther Deschner1-1/+0
Guenther
2011-03-30registry: create and use shared libcli/registry/util_reg.h header.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: no point in including all security headers globally.Günther Deschner1-0/+1
Guenther
2011-03-16libcli/security: move display_sec headers to own header file and add toGünther Deschner1-0/+1
security.h grouping header. Guenther
2011-02-28Fix some typesJelmer Vernooij1-2/+2
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
2011-02-28s3-rpc_client: Move client pipe functions to own header.Andreas Schneider1-0/+1
2011-02-02s3: Remove superfluous ;Günther Deschner1-1/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Feb 2 15:44:21 CET 2011 on sn-devel-104
2011-01-28s3-rpcclient: use struct based dcerpc_spoolss_EnumPrinterData_r() call.Günther Deschner1-43/+38
This is a workaround for a string issue we currently have with argument based generated dcerpc client code (see bug #7804 for details). Guenther
2011-01-21s3-rpcclient: prefer dcerpc_spoolss_X functions.Günther Deschner1-74/+205
Guenther
2011-01-12s3-rpcclient: Fix bug #7880: cmd_spoolss_deletedriver() returned without ↵Björn Baumbach1-1/+5
checking all architectures. Continues now with next architecture if no driver is available. Because of the broken behavior of the rpccli_*() functions, we need special error code handling. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-20s3: Remove unused "retry" from cli_full_connectionVolker Lendecke1-1/+1
2010-11-17s3-rpcclient: exit early in cmd_spoolss_enum_data() when there is a failure.Günther Deschner1-0/+9
Guenther
2010-10-07s3-rpcclient: add openprinter_ex command.Günther Deschner1-1/+47
Guenther
2010-07-31s3-build: avoid to globally include printing and spoolss headers.Günther Deschner1-0/+1
This shrinks precompiled headers by 3MB and will slightly speed up any build. Guenther
2010-06-23Add parse_setjob_command() to make setting job state easier for users.Jeremy Allison1-1/+30
Jeremy.
2010-06-05s3-rpcclient: allow to add access_mask in cmd_spoolss_open_printer_ex().Günther Deschner1-5/+7
Guenther
2010-06-03s3-spoolss: add and use spoolss_printerinfo2_to_setprinterinfo2().Günther Deschner1-63/+6
This fixes some invalid typecasts. Guenther
2010-05-25s3:registry: move reg_objects.h to registry/ and use it only where neededMichael Adam1-0/+1
Every place outside of registry/ where this is used, should probably be changed to use pure reg_api.c code.
2010-05-25s3:rpcclient:spoolss: use regval_ctr/blob accessor functions.Michael Adam1-16/+24
2010-05-18s3-rpc_client: move protos to init_spoolss.hGünther Deschner1-0/+1
Guenther
2010-05-18s3-rpc_client: move protos to cli_spoolss.hGünther Deschner1-0/+1
Guenther
2010-05-18s3-secdesc: remove "typedef struct security_descriptor SEC_DESC".Günther Deschner1-1/+1
Guenther
2010-05-18s3: Remove use of iconv_convenience.Jelmer Vernooij1-2/+2
2010-05-18s3-registry: only include registry headers when really needed.Günther Deschner1-0/+1
Guenther
2010-05-10s3-rpcclient: fix two more invalid typecasts in spoolss commands.Günther Deschner1-9/+47
Guenther
2010-05-03s3-rpcclient: Fix Bug #7277. rpcclient was sending invalid data, causing ↵Günther Deschner1-4/+23
cupsaddsmb to fail. Guenther
2010-04-09s3: add iconv_convenience handle to pull/push sz helpers.Günther Deschner1-2/+2
Guenther
2010-03-05s3-rpcclient: Leave setprinterdata directly if not enough args were passed.Andreas Schneider1-2/+1
If we don't pass enough arguments we don't have to close the connection. Signed-off-by: Günther Deschner <gd@samba.org>
2010-03-05s3-rpcclient: fix rpcclient after spoolss_EnumPrinterDataEx IDL change.Günther Deschner1-5/+4
Guenther
2010-03-05s3-rpcclient: fix rpcclient after spoolss_GetPrinterData{Ex} IDL change.Günther Deschner1-16/+38
Guenther
2010-03-05s3-rpcclient: fix rpcclient after spoolss_SetPrinterData{Ex} IDL change.Günther Deschner1-2/+8
Guenther
2009-12-17s3-spoolss: fix rpcclient after setprinter IDL fixes.Günther Deschner1-2/+2
Guenther