summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-04-20 00:01:52 +0200
committerVolker Lendecke <vl@samba.org>2008-04-20 00:14:40 +0200
commitcf2442bdcb68d75582da98ba15da8928c37fb058 (patch)
treee4c1cb70658f09da579a05238124abb5672e59a3 /source3/libads
parente1102b8f48aeebe7d4e730d2b432a1503b425210 (diff)
downloadsamba-cf2442bdcb68d75582da98ba15da8928c37fb058.tar.gz
samba-cf2442bdcb68d75582da98ba15da8928c37fb058.tar.bz2
samba-cf2442bdcb68d75582da98ba15da8928c37fb058.zip
Use rpc_pipe_client->user_name instead of rpc_pipe_client->cli->user_name
Also make sure that rpc_pipe_client->user_name is always talloced. (This used to be commit 3f6c5b99664a75a6f490ee3b6980b89cacf7f579)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap_printer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/ldap_printer.c b/source3/libads/ldap_printer.c
index 440f979781..6682ec24d0 100644
--- a/source3/libads/ldap_printer.c
+++ b/source3/libads/ldap_printer.c
@@ -296,7 +296,7 @@ WERROR get_remote_printer_publishing_data(struct rpc_pipe_client *cli,
result = rpccli_spoolss_open_printer_ex(cli, mem_ctx, printername,
"", MAXIMUM_ALLOWED_ACCESS,
- servername, cli->cli->user_name, &pol);
+ servername, cli->user_name, &pol);
if (!W_ERROR_IS_OK(result)) {
DEBUG(3, ("Unable to open printer %s, error is %s.\n",
printername, dos_errstr(result)));