From 9d05e91ec062e6c745a1b51c99b9d4c3df0961f1 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 9 Feb 2009 18:49:34 +0100 Subject: s3-rpcclient: use rpccli_spoolss_openprinter_ex helper. Guenther --- source3/libads/ldap_printer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/libads/ldap_printer.c') diff --git a/source3/libads/ldap_printer.c b/source3/libads/ldap_printer.c index 1bcb86e996..a61df3c9bd 100644 --- a/source3/libads/ldap_printer.c +++ b/source3/libads/ldap_printer.c @@ -319,11 +319,11 @@ WERROR get_remote_printer_publishing_data(struct rpc_pipe_client *cli, DEBUG(3, ("Insufficient memory\n")); return WERR_NOMEM; } - - result = rpccli_spoolss_open_printer_ex(cli, mem_ctx, printername, - "", MAXIMUM_ALLOWED_ACCESS, - cli->srv_name_slash, cli->auth->user_name, - &pol); + + result = rpccli_spoolss_openprinter_ex(cli, mem_ctx, + printername, + SEC_FLAG_MAXIMUM_ALLOWED, + &pol); if (!W_ERROR_IS_OK(result)) { DEBUG(3, ("Unable to open printer %s, error is %s.\n", printername, win_errstr(result))); -- cgit