summaryrefslogtreecommitdiff
path: root/source3/libads/ldap_printer.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-09 18:49:34 +0100
committerGünther Deschner <gd@samba.org>2009-02-10 11:05:02 +0100
commit9d05e91ec062e6c745a1b51c99b9d4c3df0961f1 (patch)
treebbe64267cd764f020ce8927b757de66c8241995a /source3/libads/ldap_printer.c
parentb19b6aea1258de18eec6832199f2b736a930b095 (diff)
downloadsamba-9d05e91ec062e6c745a1b51c99b9d4c3df0961f1.tar.gz
samba-9d05e91ec062e6c745a1b51c99b9d4c3df0961f1.tar.bz2
samba-9d05e91ec062e6c745a1b51c99b9d4c3df0961f1.zip
s3-rpcclient: use rpccli_spoolss_openprinter_ex helper.
Guenther
Diffstat (limited to 'source3/libads/ldap_printer.c')
-rw-r--r--source3/libads/ldap_printer.c10
1 files changed, 5 insertions, 5 deletions
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)));