From a34aa148ca9789ddd7f1f09d548e7c2668876151 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 15 Jan 2011 11:44:23 +0100 Subject: s3:libads: use dcerpc_spoolss_X() functions metze Signed-off-by: Andreas Schneider --- source3/libads/ldap_printer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/libads/ldap_printer.c b/source3/libads/ldap_printer.c index e4a7d34cf1..e4bfbcead7 100644 --- a/source3/libads/ldap_printer.c +++ b/source3/libads/ldap_printer.c @@ -19,7 +19,7 @@ #include "includes.h" #include "ads.h" -#include "../librpc/gen_ndr/cli_spoolss.h" +#include "../librpc/gen_ndr/ndr_spoolss_c.h" #include "rpc_client/cli_spoolss.h" #include "registry.h" #include "registry/reg_objects.h" @@ -315,12 +315,14 @@ WERROR get_remote_printer_publishing_data(struct rpc_pipe_client *cli, ADS_MODLIST *mods, const char *printer) { + struct dcerpc_binding_handle *b = cli->binding_handle; WERROR result; char *printername; struct spoolss_PrinterEnumValues *info; uint32_t count; uint32 i; struct policy_handle pol; + WERROR werr; if ((asprintf(&printername, "%s\\%s", cli->srv_name_slash, printer) == -1)) { DEBUG(3, ("Insufficient memory\n")); @@ -392,7 +394,7 @@ WERROR get_remote_printer_publishing_data(struct rpc_pipe_client *cli, ads_mod_str(mem_ctx, mods, SPOOL_REG_PRINTERNAME, printer); - rpccli_spoolss_ClosePrinter(cli, mem_ctx, &pol, NULL); + dcerpc_spoolss_ClosePrinter(b, mem_ctx, &pol, &werr); SAFE_FREE(printername); return result; -- cgit