summaryrefslogtreecommitdiff
path: root/source3/libads/ldap_printer.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-02-09 19:44:50 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-02-09 19:44:50 +0100
commit4f29e8a75c7ea63601724be2fd63eb776f839fde (patch)
tree2ea03ea359a2fd51353f135e7ade99efbd4d5751 /source3/libads/ldap_printer.c
parent0d0aec18a2d2a49095da3fe1ac1dd51797c72d7d (diff)
parenta734c85c287ccf3280e7cefe69fae6b772b4ea8d (diff)
downloadsamba-4f29e8a75c7ea63601724be2fd63eb776f839fde.tar.gz
samba-4f29e8a75c7ea63601724be2fd63eb776f839fde.tar.bz2
samba-4f29e8a75c7ea63601724be2fd63eb776f839fde.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/libads/ldap_printer.c')
-rw-r--r--source3/libads/ldap_printer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/libads/ldap_printer.c b/source3/libads/ldap_printer.c
index 023acaa638..c9c43f0e10 100644
--- a/source3/libads/ldap_printer.c
+++ b/source3/libads/ldap_printer.c
@@ -310,20 +310,19 @@ WERROR get_remote_printer_publishing_data(struct rpc_pipe_client *cli,
const char *printer)
{
WERROR result;
- char *printername, *servername;
+ char *printername;
REGVAL_CTR *dsdriver_ctr, *dsspooler_ctr;
uint32 i;
POLICY_HND pol;
- if ((asprintf(&servername, "\\\\%s", cli->desthost) == -1)
- || (asprintf(&printername, "%s\\%s", servername, printer) == -1)) {
+ if ((asprintf(&printername, "%s\\%s", cli->srv_name_slash, printer) == -1)) {
DEBUG(3, ("Insufficient memory\n"));
return WERR_NOMEM;
}
result = rpccli_spoolss_open_printer_ex(cli, mem_ctx, printername,
"", MAXIMUM_ALLOWED_ACCESS,
- servername, cli->auth->user_name,
+ cli->srv_name_slash, cli->auth->user_name,
&pol);
if (!W_ERROR_IS_OK(result)) {
DEBUG(3, ("Unable to open printer %s, error is %s.\n",