summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-01-15 11:44:23 +0100
committerAndreas Schneider <asn@samba.org>2011-01-21 12:30:22 +0100
commita34aa148ca9789ddd7f1f09d548e7c2668876151 (patch)
tree5be2a6e4b5c8969cb8d4c651b20270583f4e6196
parent1b373d6044e56f3678c42dae2c03825ef761cabc (diff)
downloadsamba-a34aa148ca9789ddd7f1f09d548e7c2668876151.tar.gz
samba-a34aa148ca9789ddd7f1f09d548e7c2668876151.tar.bz2
samba-a34aa148ca9789ddd7f1f09d548e7c2668876151.zip
s3:libads: use dcerpc_spoolss_X() functions
metze Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r--source3/libads/ldap_printer.c6
1 files changed, 4 insertions, 2 deletions
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;